contrailopt.estimate_flight_hours

contrailopt.estimate_flight_hours(origin: AirportCoords, dest: AirportCoords, mach_number: float = 0.75, max_headwind: float = 40.0) → int[source]

Estimate an upper-bound for flight duration in hours.

This function computes the worst-case flight time assuming the aircraft flies at mach_number at FL400 with a sustained headwind of max_headwind.

Parameters:
  • origin (AirportCoords) – Origin airport.

  • dest (AirportCoords) – Destination airport.

  • mach_number (float, default 0.75) – Cruise Mach number. Suggest using the aircraft’s design Mach number minus a margin.

  • max_headwind (float, default 40.0) – Assumed maximum sustained headwind in m/s.

Returns:

Ceiling of estimated flight time in hours.

Return type:

int