act.io.Icartt.from_xarray#

classmethod Icartt.from_xarray(ds, filename='')[source]#

Build an Icartt from an xarray.Dataset produced by read_icartt().

Reverses the mapping applied by to_xarray, including the qc_flag to quality_flag rename.

Parameters:
  • ds (xarray.Dataset) – Dataset to convert.

  • filename (str or pathlib.Path, optional) – Name to record on the object.

Returns:

ict (Icartt)