EEMS CSV I/O

The EEMS CSV I/O library contains EEMSRead and EEMSWrite used for reading variables from CSV files and writing variables to CSV files respectively.

EEMSRead(InFileName, InFieldName, MissingVal, DataType)

The EEMSRead command reads a single variable from a CSV file. Multiple EEMSRead commands can read different variables from the same CSV file.

Parameters:
  • InFileName – (Path) The CSV file to read from.

  • InFieldName – (String) The name of the column to read from.

  • 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. Either Float or Integer, converts incoming data to this type. The default is Float.

EEMSWrite(OutFileName, OutFieldNames)

The EEMSWrite command writes one or more variables to a CSV file. If the file already exists, it will be overwritten.

Parameters:
  • OutFileName – (Path) The CSV file to create.

  • OutFieldNames – (List [Result]) A list of results to write to the CSV.