Errors

exception mwr_raw2l1.errors.CorruptRectype[source]

Bases: WrongInputFormat

Raised if record type cannot be interpreted, e.g. if not integer

exception mwr_raw2l1.errors.DimensionError(dims_required, var, n_dims_var)[source]

Bases: MWRError

Raised if specified dimensions do not match variable dimension

exception mwr_raw2l1.errors.DimensionMismatch[source]

Bases: MWRDataError

Raised if data dimensions do not match

exception mwr_raw2l1.errors.EmptyLineError[source]

Bases: WrongInputFormat

Raised if trying to do operations on an empty csv line

exception mwr_raw2l1.errors.FileFormatError[source]

Bases: MWRFileError

Raised if the data in the input file do not correspond to the expected format

exception mwr_raw2l1.errors.FileTooLong[source]

Bases: MWRFileError

Raised if file seems too long, e.g. if binary stream is not entirely consumed after reading is finished

exception mwr_raw2l1.errors.FileTooShort[source]

Bases: MWRFileError

Raised if file seems too short, e.g. if parameter n_meas > rest of buffer

exception mwr_raw2l1.errors.FilenameError[source]

Bases: MWRFileError

Raised if the filename does not correspond to the expected pattern

exception mwr_raw2l1.errors.MWRConfigError[source]

Bases: MWRError

Raised if something with the configuration file is wrong

exception mwr_raw2l1.errors.MWRDataError[source]

Bases: MWRError

Base exception if some feature of data triggers and error in a function

exception mwr_raw2l1.errors.MWRError[source]

Bases: Exception

Base exception for MWR

exception mwr_raw2l1.errors.MWRFileError[source]

Bases: MWRError

Base exception for MWR Files

exception mwr_raw2l1.errors.MWRInputError[source]

Bases: MWRError

Base exception for calling of MWR reader/helper function or generating measurement from it

exception mwr_raw2l1.errors.MWROutputError[source]

Bases: MWRError

Raised when something with the output file goes wrong

exception mwr_raw2l1.errors.MWRTestError[source]

Bases: MWRError

Raised if something goes wrong during set up or clean up of testing

exception mwr_raw2l1.errors.MissingConfig[source]

Bases: MWRConfigError

Raised if a mandatory entry of the config file is missing

exception mwr_raw2l1.errors.MissingData[source]

Bases: MWRFileError

Raised if no observation data is found in file

exception mwr_raw2l1.errors.MissingDataSource[source]

Bases: MWRInputError

Raised if a mandatory data source for creation of Measurement is missing in input

exception mwr_raw2l1.errors.MissingHeader[source]

Bases: MWRFileError

Raised if a required header or column header has not been found an ASCII input file

exception mwr_raw2l1.errors.MissingInputArgument[source]

Bases: MWRInputError

Raised if a required input argument to a function or class initiation is missing

exception mwr_raw2l1.errors.MissingTimeInput[source]

Bases: MWRInputError

Raised if time is missing in an input file but is required by the reader

exception mwr_raw2l1.errors.MissingVariable[source]

Bases: MWRFileError

Raised if file seems not to contain a mandatory variable. Might be due to a modified header in the input file

exception mwr_raw2l1.errors.OutputDimensionError[source]

Bases: MWROutputError

Raised if requested output dimensions do not match data

exception mwr_raw2l1.errors.TimeMismatch[source]

Bases: MWRDataError

Raised if time period covered by different data sources does not match

exception mwr_raw2l1.errors.TimerefError[source]

Bases: MWRError

Raised if time reference is local but UTC is required

exception mwr_raw2l1.errors.UnknownFileType[source]

Bases: MWRFileError

Raised if the filetype of the datafile is not in the known range of file ID types

exception mwr_raw2l1.errors.UnknownFlagValue[source]

Bases: MWRInputError

Raised if the value of a flag in the input files does not correspond to the range of known values

exception mwr_raw2l1.errors.UnknownFrequencyBand[source]

Bases: MWRDataError

Raised if the frequencies of the data cannot be attributed to a band expected for the retrieval of T or q

exception mwr_raw2l1.errors.UnknownManufacturer[source]

Bases: MWRInputError

Raised if the manufacturer specified in Measurement is not known

exception mwr_raw2l1.errors.UnknownRecordType[source]

Bases: MWRFileError

Raised if Radiometrics file contains a record type number that is not known, i.e. can’t be matched with header

exception mwr_raw2l1.errors.WrongFileType[source]

Bases: MWRFileError

Raised if the filetype does not match with the chosen reader

exception mwr_raw2l1.errors.WrongInputFormat[source]

Bases: MWRInputError

Raised if format of input to a function or class does not correspond to expectations

exception mwr_raw2l1.errors.WrongNumberOfChannels[source]

Bases: MWRError

Raised if a wrong number of frequency channels is assumed for reading the file -> this can happen for old-version BLB files where n_freq is read after being used