helikite.instruments.maeth

Attributes

maeth

Classes

MAeth

Helper class that provides a standard way to create an ABC using

Module Contents

class helikite.instruments.maeth.MAeth(name: str, dtype: dict[Any, Any] = {}, na_values: list[Any] | None = None, header: int | None = 0, expected_header_value: str | None = None, delimiter: str = ',', lineterminator: str | None = None, comment: str | None = None, names: list[str] | None = None, index_col: bool | int | None = None, cols_export: list[str] = [], cols_housekeeping: list[str] = [], cols_final: list[str] | None = None, export_order: int | None = None, pressure_variable: str | None = None, temperature_variable: str | None = None, rh_variable: str | None = None, registry_name: str | None = None, coupled_columns: list[tuple[str, Ellipsis]] | None = None, rename_dict: dict[str, str] | None = None)

Bases: helikite.instruments.Instrument

Helper class that provides a standard way to create an ABC using inheritance.

__repr__()
data_corrections(df, *args, **kwargs) pandas.DataFrame

Default callback function for data corrections.

Return with no changes

set_time_as_index(df: pandas.DataFrame) pandas.DataFrame

This function is used to set the date in the file to the index

By default no action is taken, but this can be overridden in the instrument class to set the date as the index.

read_data() pandas.DataFrame

Read data into dataframe

This allows a custom read function to parse the CSV/TXT into a dataframe, for example cleaning dirty data at the end of the file in memory without altering the input file (see flight computer conf).

normalize(df: pandas.DataFrame, reference_instrument: helikite.instruments.Instrument, verbose: bool, *args, **kwargs) pandas.DataFrame

Apply normalization to the data, i.e., normalization to STP conditions

static _stp_convert_dry(x, t, p1)
static _convert_babs_stp_to_ebc(babs_stp, wavelength)

Convert STP-corrected absorption (Mm^-1) to eBC (µg/m3).

helikite.instruments.maeth.maeth