pub fn resolve_station_conditions_with_presence(
temperature_c: f64,
pressure_hpa: f64,
altitude_m: f64,
pressure_mode: PressureReferenceMode,
presence: StationAtmospherePresence,
) -> (f64, f64)Expand description
Resolve the station temperature and pressure a solve flies, honouring which of them the caller supplied (0.49.0). This is the presence-aware resolver every surface that knows presence goes through.
For each field:
- supplied: returned as given; a pressure declared as QNH (
PressureReferenceMode::Qnh) is first reduced to station pressure withreduce_qnh_to_station_pressure; - omitted: resolved exactly as before 0.49.0, through
resolve_station_temperature/resolve_station_pressure_with_mode, then the ICAO standard ataltitude_mwhen the value is the sea-level default at a real altitude.
With StationAtmospherePresence::NEITHER the result is bit-identical to
resolve_station_conditions_with_pressure_mode (which now delegates here). With
StationAtmospherePresence::BOTH in PressureReferenceMode::Absolute it returns the
pair unchanged.