act.io.Icartt#

class act.io.Icartt[source]#

Container for an ICARTT FFI 1001 file: the full header model plus the data records. Reads and writes the format described by ESDS-RFC-029v2.

Attributes are named after the fields in the standard, so the header can be inspected and edited directly before writing.

Examples

from act.io.icartt import Icartt

ict = Icartt.from_file('AAFNAV_COR_20181104_R0.ict')
print(ict.NV, ict.keywords['PLATFORM'])
ds = ict.to_xarray()

from_file(filename[, delimiter])

Read an ICARTT FFI 1001 file.

from_xarray(ds[, filename])

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

to_xarray()

Convert to an xarray.Dataset with a time coordinate.

write([filename, fmt, delimiter])

Write the object to an ICARTT FFI 1001 file.

NCOM

Normal comment lines, rebuilt from the parsed parts.

NLHEAD

Number of header lines.

NNCOML

Number of normal comment lines.

NSCOML

Number of special comment lines.

NV

Number of dependent variables (header line 10).

VMISS

Missing data flags, one per dependent variable (header line 12).

VSCAL

Scale factors, one per dependent variable (header line 11).

times

Time steps of the data as a numpy.datetime64[ns] array.

variables

All variables, independent first, keyed by short name.