dctools.utilities.xarray_utils
Functions for processing xr.Datasets and DataArrays.
Functions
|
Assign a coordinate with values and attributes to a dataset. |
|
Create an empty xarray Dataset from a dictionary of dimensions. |
|
Filter a dataset (Argo-like) by keeping only values close to depth_vals within depth_tol. |
|
Filters an xarray Dataset to only include data within a specified spatial area. |
|
Filters an xarray Dataset to only include data within a specified time range. |
|
Filter an xarray Dataset by keeping only some variables/coordinates. |
|
Analyze the main time axis of an xarray Dataset. |
|
Convert NetCDF file to Zarr (fully written, no lazy graph left). |
|
Display a summary of the dataset handling memory constraints. |
|
Rename coordinates/dimensions of an xarray Dataset using swap_dims. |
|
Rename variables and coordinates according to given dictionaries. |
|
Rename variables according to a given dictionary. |
|
Reset time coordinates values to a sequence starting at 0. |
Prepare dataset for Zarr writing by cleaning encoding and converting data types. |
|
|
Extract a sub-dataset containing only listed variables, preserving attributes. |