cdm_reader_mapper.read

Contents

cdm_reader_mapper.read#

cdm_reader_mapper.read(source, mode='mdf', **kwargs)[source]#

Read either original marine-meteorological data or MDF data or CDM tables from disk.

Parameters:
  • source (str) – Source of the input data.

  • mode (str, {mdf, data, tables}, default: mdf) –

    Read data mode:

    • “mdf” to read original marine-meteorological data from disk and convert them to MDF data

    • “data” to read MDF data from disk

    • “tables” to read CDM tables from disk. Map MDF data to CDM tables with DataBundle.map_model().

Return type:

DataBundle

Returns:

DataBundle

See also

read_mdf

Read original marine-meteorological data from disk.

read_data

Read MDF data and validation mask from disk.

read_tables

Read CDM tables from disk.

write

Write either MDF data or CDM tables on disk.

write_data

Write MDF data and validation mask to disk.

write_tables

Write CDM tables to disk.

Note

kwargs are the keyword arguments for the specific mode reader.