helikite.instruments.flight_computer

Attributes

logger

flight_computer_v1

flight_computer_v2

Classes

FlightComputer

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

Bases: helikite.instruments.base.Instrument

__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
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
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