gedai.emissions

Functions to calculate emissions.

gedai.emissions.calc_co2(ff)[source]

Calculate CO2 emission flow [kg/s].

Parameters:

ff (float | np.ndarray) – Fuel flow [kg/s]

Returns:

CO2 emission flow [kg/s]

Return type:

float | np.ndarray

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:
  • obj (Union[pd.DataFrame, Flight]) – Flight data

  • ac (dict) – OpenAP aircraft dictionary

  • eng (str, optional) – Engine identifier, e.g. “AE3007A1E”. If None, use default engine.

  • **kwargs – Additional parameters for NOx calculation, e.g. nox_method.

Returns:

Input with new columns “co2flow”, “h2oflow”, “noxflow”

Return type:

Union[pd.DataFrame, Flight]

gedai.emissions.calc_h2o(ff)[source]

Calculate H2O emission flow [kg/s].

Parameters:

ff (float | np.ndarray) – Fuel flow [kg/s]

Returns:

H2O emission flow [kg/s]

Return type:

float | np.ndarray

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