xarray_utils#
Provides basic xarray utils.
Functions#
|
Calculate the climatology from an xarray DataArray. |
|
Crop an xarray.Dataset to the given lon/lat bounds, handling coordinate order. |
|
Calculate climatology from a Dataset or DataArray. |
|
Return the lat or lon coordinate name used in the xarray dataset. |
|
Get the spatial extent of a dataset as (lon_min, lon_max, lat_min, lat_max) from its bounds. |
|
Return a simple dtype string without forcing data into memory. |
|
Return the inclusive overlapping time window of two time-indexed objects. |
|
Get the data var name from a dataset that only contains one data variable. |
|
Check if one of the data_vars is part of the file name and select it as the most probable data_var. |
|
Normalize latitude and longitude dimension and coordinate names to 'lat' and 'lon'. |
|
Rename latitude/longitude dimensions and assign exact target coordinates. |
|
Calculate Spearman rank correlation between two xarray DataArrays. |
Map a median timedelta to a pandas frequency alias. |