helikite.processing.post.level1
Functions
Create a level 1 DataFrame by selecting specific columns and returning a copy. |
|
|
Renames columns of the input DataFrame according to predefined rules. |
|
Round numeric columns of the DataFrame with special handling for 'Lat' and 'Long', |
|
Fill missing values in mSEMS columns at takeoff and landing times using nearby values. |
|
|
|
|
|
Module Contents
- helikite.processing.post.level1.create_level1_dataframe(df)
Create a level 1 DataFrame by selecting specific columns and returning a copy.
- Parameters:
df (pd.DataFrame) – The original DataFrame.
- Returns:
Filtered copy of the DataFrame with selected columns.
- Return type:
pd.DataFrame
- helikite.processing.post.level1.rename_columns(df)
Renames columns of the input DataFrame according to predefined rules.
- Parameters:
df (pd.DataFrame) – The DataFrame with columns to be renamed.
- Returns:
DataFrame with renamed columns.
- Return type:
pd.DataFrame
- helikite.processing.post.level1.round_flightnbr_campaign(df, metadata, decimals=2)
Round numeric columns of the DataFrame with special handling for ‘Lat’ and ‘Long’, and add columns for flight number and campaign.
- Parameters:
df (pd.DataFrame) – The DataFrame to be rounded and modified.
metadata (object) – Metadata object containing the ‘flight’ attribute.
decimals (int, optional) – The number of decimal places to round to (default is 2).
- Returns:
The rounded and modified DataFrame with additional columns.
- Return type:
pd.DataFrame
- helikite.processing.post.level1.fill_msems_takeoff_landing(df, metadata, time_window_seconds=90)
Fill missing values in mSEMS columns at takeoff and landing times using nearby values.
- Parameters:
df (pd.DataFrame) – DataFrame with a DateTimeIndex where filling should occur.
metadata (object) – An object containing takeoff_time and landing_time attributes.
time_window_seconds (int, optional) – Number of seconds before/after to search for replacement values (default: 90).
- helikite.processing.post.level1.flight_profiles_1(df, metadata, xlims=None, xticks=None, fig_title=None)
- helikite.processing.post.level1.flight_profiles_2(df, metadata, xlims=None, xticks=None, fig_title=None)
- helikite.processing.post.level1.filter_data(df)