spectrochempy.NDDataset.from_netcdf๏ƒ

classmethod NDDataset.from_netcdf(filename, **kwargs)[source]

Reconstruct an NDDataset from the xarray-backed NetCDF prototype.

Same-dimension CoordSet auxiliary 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 is scipy.

Returns:

NDDataset โ€“ Reconstructed dataset.

Examples using spectrochempy.NDDataset.from_netcdf๏ƒ

Interoperability with xarray and NetCDF

Interoperability with xarray and NetCDF