/usr/share/eccodes/definitions/metar/qnh.def is in libeccodes-data 2.0.2-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | if ( ! qfePresent && substr(g,0,3) is "QFE" ) {
rename(g,qfeInHectoPascal);
qfe=to_string(qnhInHectoPascal,1,4) : dump;
constant qfeUnits= "hPa" : dump;
group g : dump; non_alpha na;
alias qfePresent=one;
}
if (! qnhPresent && substr(g,0,1) is "Q" ) {
rename(g,qnhInHectoPascal);
if (is_integer(qnhInHectoPascal,1,4)) {
qnh=to_string(qnhInHectoPascal,1,4) : dump;
alias qnhPresent=one;
constant qnhUnits= "hPa" : dump;
}
group g : dump; non_alpha na;
}
if ( ! qnhAPresent && substr(g,0,1) is "A" ) {
rename(g,qnhInHundrethsOfInchOfMercury);
#qnh=to_string(qnhInHectoPascal,1,4) : dump;
#constant qnhUnits= "hundrethsOfInchOfMercury" : dump;
group g : dump; non_alpha na;
#alias qnhAPresent=one;
}
if (! qnhPresent && substr(g,0,1) is "Q" ) {
rename(g,qnhInHectoPascal);
if (is_integer(qnhInHectoPascal,1,4)) {
qnh=to_string(qnhInHectoPascal,1,4) : dump;
alias qnhPresent=one;
constant qnhUnits= "hPa" : dump;
}
group g : dump; non_alpha na;
}
|