helikite.instruments.cpc3007

CPC3007 Total particle concentration in size range of 7 - 2000 nm.

Attributes

cpc

Classes

CPC

Instrument definition for the cpc3007 sensor system.

Module Contents

class helikite.instruments.cpc3007.CPC(*args, **kwargs)

Bases: helikite.instruments.base.Instrument

Instrument definition for the cpc3007 sensor system.

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

Default callback function for data corrections.

Return with no changes

file_identifier(first_lines_of_csv: list[str]) bool

Default file identifier callback

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.base.Instrument, verbose: bool, *args, **kwargs) pandas.DataFrame

Normalize CPC3007 concentrations to STP conditions and insert the results right after the existing CPC columns.

Parameters: df (pd.DataFrame): DataFrame containing CPC measurements and metadata.

Returns: df (pd.DataFrame): Updated DataFrame with STP-normalized columns inserted.

plot_raw_and_normalized(df: pandas.DataFrame, verbose: bool, *args, **kwargs)

Plot together raw and normalized data. If only raw data is available, plot raw data.

helikite.instruments.cpc3007.cpc