xarray
xarray integration: conversions between dascore and xarray objects.
Everything here treats xarray (and dask, for the spool tree) as an optional dependency: the submodules import them lazily, except dascore.xarray.index, whose classes subclass xarray classes and which is therefore only imported behind an optional-import guard.
Functions
| Name | Description |
|---|---|
| patch_to_xarray | Return a data array with patch contents. |
| spool_to_xarray | Convert a spool to a lazy, dask-backed xarray DataTree. |
| xarray_to_patch | Convert an xarray dataarray to a patch. |
Modules
| Name | Description |
|---|---|
| patch | Conversions between a Patch and an xarray DataArray. |
| spool | Convert a spool to a lazy, dask-backed xarray DataTree. |
| accessor |
The .dc accessor: DASCore’s patch methods on an xarray DataArray.
|
| index | A lazy, evenly sampled datetime/timedelta index for xarray. |