#include <simgear/compiler.h>
#include <simgear/math/interpolater.hxx>
-#include "boost/tuple/tuple.hpp"
-using namespace boost;
#include <cmath>
+#include <utility>
using namespace std;
extern const ISA_layer ISA_def[];
-tuple<double,double> PT_vs_hpt(
+std::pair<double,double> PT_vs_hpt(
const double hh,
const double _p0 = atmodel::ISA::P0,
const double _t0 = atmodel::ISA::T0);
// 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);
};