spectrochempy.NDDataset.from_netcdf
- classmethod NDDataset.from_netcdf(filename, **kwargs)[source]
Reconstruct an
NDDatasetfrom the xarray-backed NetCDF portable subset.Same-dimension
CoordSetauxiliary coordinates are restored automatically from the xarray coordinate attributes.- Parameters:
filename (path-like or file-like) – Source NetCDF file.
**kwargs – Additional keyword arguments forwarded to
xarray.open_dataset(). The default engine isscipy.
- Returns:
NDDataset – Reconstructed dataset.