EEMS NetCDF I/O¶
The EEMS NetCDF I/O library contains EEMSRead and EEMSWrite used for reading variables from NetCDF datasets and
writing variables to NetCDF datasets respectively.
- EEMSRead(InFileName, InFieldName, MissingVal, DataType)¶
The
EEMSReadcommand reads a single variable from a NetCDF dataset. MultipleEEMSReadcommands can read different variables from the same NetCDF dataset.- Parameters:
InFileName – (Path) The NetCDF dataset to read from.
InFieldName – (String) The name of the NetCDF variable to read.
MissingVal – (Number) Optional. A mask value, which indicates missing data. Any occurrences of this value will be masked in the loaded array.
DataType – (Data Type) Optional. The type to convert incoming data to. Valid values are:
Float,Integer,Positive Float,Positive Integer,Fuzzy. The default isFloat.
- EEMSWrite(OutFileName, OutFieldNames, DimensionFileName, DimensionFieldName)¶
The
EEMSWritecommand writes one or more variables to a NetCDF dataset. If the dataset already exists, it will be overwritten.- Parameters:
OutFileName – (Path) The NetCDF dataset to create.
OutFieldNames – (List [Result]) A list of results to write to the CSV.
DimensionFileName – (Path) An existing NetCDF data to use as a template for the new dataset.
DimensionFieldName – (String) An existing variable in the
DimensionFileNamedataset to use as a template for the new variable(s).