Any chance we can get Boris to do a "little" computation /conversion of SLP to altimeter before sending data to CWOP? Anybody else run into this problem? Anybody care???

Moderator: Mattk
Code: Select all
Pressure reduction format: Altimeter (QNH) Pressure - Altimeter pressure is a
corrected pressure value that includes the pressure between the station’s elevation and sea
level.
Note: Altimeter is the CWOP pressure standard because it is the simplest pressure
reduction format that most CWOP members can reliably deliver and which can be useful
by the National Meteorological Services.
Code: Select all
QNH is a Q code. It is a pressure setting used by pilots, air traffic control (ATC), and low frequency weather beacons to refer to the barometric altimeter setting which will cause the altimeter to read altitude above mean sea level within a certain defined region. This region may be fairly widespread, or apply only to the airfield for which the QNH was given. An airfield QNH will cause the altimeter to read field elevation on landing irrespective of the temperature.
Code: Select all
The altimeter setting in aviation, set either QNH or QFE, is another atmospheric pressure reduced to sea level, but the method of making this reduction differs slightly.
QNH
The barometric altimeter setting which will cause the altimeter to read airfield elevation when on the airfield. In ISA temperature conditions the altimeter will read altitude above mean sea level in the vicinity of the airfield
QFE
The barometric altimeter setting which will cause an altimeter to read zero when at the reference datum of a particular airfield (generally a runway threshold). In ISA temperature conditions the altimeter will read height above the datum in the vicinity of the airfield.
QFE and QNH are arbitrary Q codes rather than abbreviations, but the mnemonics "Nautical Height" (for QNH) and "Field Elevation" (for QFE) are often used by pilots to distinguish them.
Code: Select all
actual_thb0_press_hpa 1039.0
actual_thb0_press_psi 15.07
actual_thb0_press_mmhg 779.2
actual_thb0_press_inhg 30.68
actual_thb0_sealevel_hpa 1042.2
actual_thb0_sealevel_psi 15.11
actual_thb0_sealevel_mmhg 781.6
actual_thb0_sealevel_inhg 30.78
actual_thb0_altimeter_hpa 178.0
actual_thb0_altimeter_psi 2.58
actual_thb0_altimeter_mmhg 133.5
actual_thb0_altimeter_inhg 5.25
Code: Select all
double press2alt (double press, int height)
{
return (pow ((press / 33.864), 0.1903) + (0.000013126 * 3.28084 * height), 5.25486) * 33.864;
}
Code: Select all
actual_thb0_press_hpa 1036.0
actual_thb0_press_psi 15.03
actual_thb0_press_mmhg 777.0
actual_thb0_press_inhg 30.59
actual_thb0_sealevel_hpa 1039.2
actual_thb0_sealevel_psi 15.07
actual_thb0_sealevel_mmhg 779.4
actual_thb0_sealevel_inhg 30.69
actual_thb0_altimeter_hpa 1036.6
actual_thb0_altimeter_psi 15.03
actual_thb0_altimeter_mmhg 777.5
actual_thb0_altimeter_inhg 30.61
Code: Select all
double press2alt (double press, int height)
{
double p = press - 0.01;
double p0 = 1013.25;
double t0 = 288.0;
double n = 0.190284;
double a = 0.0065;
double x;
x = ((pow (p0, n) * a) / t0) * (height / pow (p, n));
return p * pow (1.0 + x, 1-0 / n);
}