gedai.emissions
Functions to calculate emissions.
- gedai.emissions.calc_emissions(obj: DataFrame, ac: dict, eng: str = None, **kwargs) DataFrame[source]
- gedai.emissions.calc_emissions(obj: Flight, ac: dict, eng: str = None, **kwargs) Flight
Calculate emission flows [kg/s] of CO2, H2O and NOx.
- Parameters:
- Returns:
Input with new columns “co2flow”, “h2oflow”, “noxflow”
- Return type:
Union[pd.DataFrame, Flight]
- gedai.emissions.calc_nox(ff: float | ndarray, tas: float | ndarray, alt: float | ndarray, eng: str, n_eng: int, nox_method='dlr')[source]
Calculate NOx emissions.
- Parameters:
ff (float | np.ndarray) – Fuel flow [kg/s]
tas (float | np.ndarray) – Airspeed [kt]
alt (float | np.ndarray) – Altitude [ft]
eng (str) – Engine identifier (e.g. “AE3007A1E”)
n_eng (int) – Number of engines
nox_method (str, optional) – NOx calculation method, one of “dlr” or “boeing”. Defaults to “dlr”.
- Raises:
ValueError – If unknown NOx method.
- Returns:
NOx emissions [kg/s]
- Return type:
float | np.ndarray