contrailopt.cruise_flight_levels

contrailopt.cruise_flight_levels(origin_icao: str | AirportCoords, dest_icao: str | AirportCoords) → NDArray[float32][source]

Determine the candidate cruise flight levels for a given origin-destination pair.

This function applies the common eastbound/westbound flight levels rules of even flight levels for westbound flights and odd flight levels for eastbound flights.

There is not per-aircraft-type ceiling applied.

Parameters:
  • origin_icao (str or AirportCoords) – ICAO code for the origin airport (e.g. "KLAX") or pre-fetched coordinates.

  • dest_icao (str or AirportCoords) – ICAO code for the destination airport or pre-fetched coordinates.

Returns:

Array of candidate cruise flight levels in feet (e.g. [29000., 31000., ..., 41000.]).

Return type:

numpy.ndarray