Working with XArray

There are two functions for working with XArray Datasets, one for converting a CDF to a DataSet, and one for going the other way. To use these you need the xarray package installed.

These will attempt to determine any ISTP Compliance, and incorporate that into the output.

cdflib.xarray Package


cdf_to_xarray(filename[, to_datetime, ...])

This function converts CDF files into XArray Dataset Objects.

xarray_to_cdf(xarray_dataset, file_name[, ...])

This function converts XArray Dataset objects into CDF files.