earth2studio.data
.DataArrayFile#
- class earth2studio.data.DataArrayFile(file_path, **xr_args)[source]#
A local xarray dataarray file data source. This file should be compatable with xarray. For example, a netCDF file.
- Parameters:
file_path (str) – Path to xarray data array compatible file.
xr_args (Any)
- __call__(time, variable)[source]#
Function to get data.
- Parameters:
time (datetime | list[datetime] | TimeArray) – Timestamps to return data for.
variable (str | list[str] | VariableArray) – Strings or list of strings that refer to variables to return.
- Returns:
Loaded data array
- Return type:
xr.DataArray