xarray_helpers module¶
HSTB.kluster.xarray_helpers Module¶
Functions¶
|
Some code to handle dropping data variables from xarray Datasets in different containers. |
|
Build a dataset from a list of Xarray DataArrays, given a list of names for each array. |
|
xarray open_mfdataset only retains the attributes of the first dataset. |
|
So far, mostly used with Applanix POSPac SBETs. |
|
Simple method for indexing a list of arrays |
|
Operations with xarray datasets require that the index is monotonic increasing and unique. |
|
Given ping time and beamwise time addition (delay), return a 2d interpolated version of the provided 1d Dataarray. |
|
Takes in xarr and interpolates to new_times. |
|
Trying to address the limitations of the existing xr.open_mfdataset function. |
|
To handle NaN values in our input arrays, we flatten and index only the valid values. |
|
After writing new data to the zarr data store, you need to refresh the xarray Dataset object so that it sees the changes. |
|
Takes in the path to a zarr group and resizes the time dimension according to the provided finaltimelength |
|
Xarray objects are chunked for easy parallelism. |
|
Slice the input xarray dataset/dataarray by provided start_time and end_time. |
|
To handle NaN values in our input arrays, we flatten and index only the valid values. |
|
Takes in an xarray Dataset and pushes it to netcdf. |
|
Takes in an xarray Dataset and pushes it to zarr store. |