pycontrails.datalib.ecmwf.model_levels

Utilities for working with ECMWF model-level data.

This module requires the following additional dependency:

Functions

pressure_levels_at_model_levels(alt_ft_min, ...)

Return the pressure levels at each model level assuming a constant surface pressure.

pycontrails.datalib.ecmwf.model_levels.pressure_levels_at_model_levels(alt_ft_min, alt_ft_max)

Return the pressure levels at each model level assuming a constant surface pressure.

The pressure levels are rounded to the nearest hPa.

Parameters:
  • alt_ft_min (float) – Minimum altitude, [\(ft\)].

  • alt_ft_max (float) – Maximum altitude, [\(ft\)].

Returns:

list[int] – List of pressure levels, [\(hPa\)].