X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Fatmosphere.hxx;h=1ee4e1b6beeaa58da610de8d854737f0b31f4bc5;hb=474789269b7656509f62339c17e62a55b6157d43;hp=55ccfb3f9e580a76d6d08c4ee1006fcb714bef02;hpb=d11ad100cc519bfcf5630d93e4f61f760212ded4;p=flightgear.git diff --git a/src/Environment/atmosphere.hxx b/src/Environment/atmosphere.hxx index 55ccfb3f9..1ee4e1b6b 100644 --- a/src/Environment/atmosphere.hxx +++ b/src/Environment/atmosphere.hxx @@ -110,6 +110,15 @@ public: // Field pressure in pascals // Valid for fields within the troposphere only. double QNH(const double field_elev, const double field_press); +/** + * Invert the QNH calculation to get the field pressure from a metar + * report. Valid for fields within the troposphere only. + * @param field_elev field elevation in m + * @param qnh altimeter setting in pascals + * @return field pressure _in pascals_. Caller gets to convert to inHg + * or millibars + */ + static double fieldPressure(const double field_elev, const double qnh); };