helikite.instruments.flight_computer

Attributes

logger

flight_computer_v1

flight_computer_v2

Classes

FlightComputer

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

FlightComputerV1

This flight computer relates to the first version used in campaigns

FlightComputerV2

This flight computer relates to the second version used in campaigns

Module Contents

helikite.instruments.flight_computer.logger
class helikite.instruments.flight_computer.FlightComputer(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.base.Instrument

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

__repr__()
property T1_column: str
Abstractmethod:

property T2_column: str
Abstractmethod:

property H1_column: str
Abstractmethod:

property H2_column: str
Abstractmethod:

property lat_column: str | None
Abstractmethod:

property long_column: str | None
Abstractmethod:

class helikite.instruments.flight_computer.FlightComputerV1(*args, **kwargs)

Bases: FlightComputer

This flight computer relates to the first version used in campaigns in 2023, 2024. A new version was designed in 2024. See FlightComputerV2.

property T1_column: str
property T2_column: str
property H1_column: str
property H2_column: str
property lat_column: str | None
property long_column: str | None
data_corrections(df: pandas.DataFrame, *, start_altitude: float | None = None, start_pressure: float | None = None, start_temperature: float | None = None, start_duration_seconds: int = 10) pandas.DataFrame

Default callback function for data corrections.

Return with no changes

set_time_as_index(df: pandas.DataFrame) pandas.DataFrame

Set the DateTime as index of the dataframe and correct if needed

Using values in the time_offset variable, correct DateTime index

read_data() pandas.DataFrame

Read data into dataframe

class helikite.instruments.flight_computer.FlightComputerV2(*args, **kwargs)

Bases: FlightComputer

This flight computer relates to the second version used in campaigns in 2024. This version uses a new set of metadata and a modified CSV format.

property lat_column: str | None
property long_column: str | None
property T1_column: str
property T2_column: str
property H1_column: str
property H2_column: str
read_data() pandas.DataFrame

Read data into dataframe, adjusting for duplicate headers.

data_corrections(df: pandas.DataFrame, **kwargs) pandas.DataFrame

Default callback function for data corrections.

Return with no changes

set_time_as_index(df: pandas.DataFrame) pandas.DataFrame

Set the DateTime as index of the dataframe and correct if needed

The DateTime column is represented as YYMMMM-HHMMSS, so we need to convert this to a datetime object. Example: 240926-141516

helikite.instruments.flight_computer.flight_computer_v1
helikite.instruments.flight_computer.flight_computer_v2