helikite.instruments.flight_computer

Attributes

logger

flight_computer_v1

flight_computer_v2

Classes

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.FlightComputerV1(*args, **kwargs)

Bases: helikite.instruments.base.Instrument

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

name = 'flight_computer'
_csv_header = Multiline-String
Show Value
"""SBI,DateTime,PartCon,CO2,P_baro,TEMPbox,mFlow,TEMPsamp,RHsamp,TEMP1,RH1,TEMP2,RH2,vBat
"""
file_identifier(first_lines_of_csv) bool

Default file identifier callback

Must return false. True would provide false positives.

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: helikite.instruments.base.Instrument

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.

name = 'flight_computer'
file_identifier(first_lines_of_csv) bool

Default file identifier callback

Must return false. True would provide false positives.

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