act.io.write_icartt#
- act.io.write_icartt(ds, filename, **kwargs)[source]#
Write an xarray.Dataset to an ICARTT FFI 1001 file.
Intended as the inverse of
read_icartt(), so a Dataset produced by it round-trips back to a valid ICARTT file. Header metadata is taken from the Dataset attributes, and anything absent falls back to ‘N/A’.- Parameters:
ds (xarray.Dataset) – Dataset to write. Must have a
timecoordinate.filename (str or pathlib.Path) – Destination path.
**kwargs (keywords) – keywords to pass on through to Icartt.write, such as
fmt.