helikite.processing.post.TandRH
Functions
|
Averages flight computer temperature and humidity data from two sensors, |
|
|
|
Module Contents
- helikite.processing.post.TandRH.T_RH_averaging(df, columns_t: list[str], columns_rh: list[str], nan_threshold: int)
Averages flight computer temperature and humidity data from two sensors, based on the number of NaNs, and plots temperature and RH versus pressure.
- Parameters:
df (pd.DataFrame) – DataFrame containing flight computer data.
columns_t – List of column names containing temperature data.
columns_rh – List of column names containing humidity data.
nan_threshold (int) – Number of NaNs to tolerate before discarding a sensor.
- Returns:
Updated DataFrame with ‘Average_Temperature’ and ‘Average_RH’ columns.
- Return type:
pd.DataFrame
- helikite.processing.post.TandRH._filter_columns_by_nan_count(columns: list[str], df: pandas.DataFrame, nan_threshold: int) list[str]
- helikite.processing.post.TandRH.plot_T_RH(df, reference_instrument: helikite.instruments.Instrument, flight_computer: helikite.instruments.flight_computer.FlightComputer, save_path: str | pathlib.Path | None)