uwacan.analysis.SpectralProbability.save#

SpectralProbability.save(path, append_dim=None, **kwargs)#

Save the data to a Zarr file at the specified path.

The class name is stored as an attribute, so it can be used later to reconstruct the object.

Parameters:
pathstr or pathlib.Path

The file path where the data will be saved. The directory will be created if it doesn’t exist.

append_dimstr, optional

A dimension which should be used to append to existing data in the path.

**kwargsdict, optional

Additional keyword arguments passed to the xarray.Dataset.to_zarr method, which is responsible for saving the data to the Zarr format.