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 at path.

Parameters:
  • accessor) (frames (omit if using) – The Dataset to save

  • path – The path at which to save it

  • complevel – The level of gzip compression which will be applied to all variables in the Dataset, by default 9

  • optional – The level of gzip compression which will be applied to all variables in the Dataset, by default 9

Notes

This function/accessor method wraps xarray.Dataset.to_netcdf() but not numpy.any().