Utilities#
|
Create an empty 2D (x, y) DataArray. |
|
Create an empty transient 2D (time, x, y) DataArray. |
|
Create an empty 2D (x, y) DataArray. |
|
Create an empty transient 3D (time, layer, x, y) DataArray. |
|
Wrapped version of xarray's |
|
Change directory, and change it back after the with block. |
Contextmanager to ignore RuntimeWarnings as they are frequently raised by the Dask delayed scheduler. |
|
|
Prints error instead of raising it. |
|
Convert string to datetime. |
|
Extracts dx, xmin, xmax for a coordinate DataArray, where x is any coordinate. |
Extracts spatial reference from DataArray. |
|
|
Extract the spatial reference information from the DataArray coordinates, into an affine.Affine object for writing to e.g. rasterio supported formats. |
|
Convert a structured DataArray or Dataset into its UGRID-2D quadrilateral equivalent. |
|
Ensures the xarray Dataset will be written to a UGRID netCDF that will be accepted by MDAL. |
|
Undo some of the changes of |