Main

mwr_raw2l1.main.get_meas_constructor(name)[source]

get constructor method for Measurement class from string

Parameters:

name – name of the constuctor as string. Known constructors are from_attex, from_radiometrics and from_rpg

mwr_raw2l1.main.get_reader(name)[source]

get data reader from string

Parameters:

name – name of the reader as string. Known readers are reader_attex, reader_radiometrics and reader_rpg

mwr_raw2l1.main.process_files(files, reader, meas_constructor, conf_inst, conf_qc, conf_nc, output_timestamp_style)[source]

process the input files with indicated reader, meas_constructor and conf dictionaries.

All input files will be concatenated to one output file

mwr_raw2l1.main.run(inst_config_file, nc_format_config_file=None, qc_config_file=None, concat=False, halt_on_error=True, timestamp_src='instamp_min', **kwargs)[source]

main function reading in raw files, generating and processing measurement instance and writing output file

Parameters:
  • inst_config_file – yaml configuration file for the instrument to process

  • nc_format_config_file (optional) – yaml configuration file defining the output NetCDF format. Defaults to the E-PROFILE file standard defined in mwr_raw2l1/config/L1_format.yaml

  • qc_config_file (optional) – yaml configuration file specifying the quality control parameters

  • concat (optional) – concatenate data to single output file instead of generating an output for each timestamp. Defaults to False.

  • halt_on_error (optional) – stop execution if an error is encountered. If False the error will be logged while the function continues with the next bunch of files. Defaults to True.

  • timestamp_src (optional) – source of output file timestamp. Can be ‘instamp_min’/’instamp_max’ for using smallest/largest timestamp of input filenames or ‘time_min’/’time_max’ for smallest/largest time in data. Care for instamp options: each file matching search pattern and having a timestamp is subject to provide the output timestamp even if the file is not of a type readable by the package. Defaults to ‘instamp_min’.

  • **kwargs – Keyword arguments passed over to get_files(), typically ‘time_start’ and ‘time_end’

Returns:

list of file bunches with successful processing. Not necessarily each file in bunch has been

processed (the ones not matching known extensions or suffixes are simply ignored) but none caused an error.

files_fail: list of file bunches which caused an error in processing. Often just one or a few files of each

bunch cause an error (see log messages).

Return type:

files_success