shnitsel.core.xrhelpers.save_frames¶
- save_frames(frames, path, complevel=9)¶
Save a
Dataset
, presumably (but not necessarily) consisting of frames of trajectories, to a file atpath
.- Parameters:
accessor) (frames (omit if using) – The
Dataset
to savepath – The path at which to save it
complevel – The level of
gzip
compression which will be applied to all variables in theDataset
, by default 9optional – The level of
gzip
compression which will be applied to all variables in theDataset
, by default 9
Notes
This function/accessor method wraps
xarray.Dataset.to_netcdf()
but notnumpy.any()
.