Added BUFR key masterTablesVersionNumberLatest which is always the latest WMO version

This commit is contained in:
Shahram Najm 2017-11-30 18:32:15 +00:00
parent 6b9fbfd8cb
commit 9506d21df6
2 changed files with 8 additions and 1 deletions

View File

@ -10,6 +10,10 @@
lookup[1] ed (7,editionNumber);
transient missingValue=999999 : hidden;
# This gets updated twice a year by WMO.
# See http://www.wmo.int/pages/prog/www/WMOCodes/WMO306_vI2/LatestVERSION/LatestVERSION.html
constant masterTablesVersionNumberLatest = 29;
#negative value=not used
transient inputDelayedDescriptorReplicationFactor={-1} : hidden;
#negative value=not used

View File

@ -24,8 +24,11 @@ REDIRECT=/dev/null
blacklist=masterTablesVersionNumber
# Get the latest BUFR master tables version
sample=$ECCODES_SAMPLES_PATH/BUFR4.tmpl
latest_wmo_version=`${tools_dir}/bufr_get -p masterTablesVersionNumberLatest $sample`
# In version 29, some key names changed. So blacklist them
latest_wmo_version=29
blacklist=$blacklist",bandwidthCorrectionCoefficient1ForAtovs,bandwidthCorrectionCoefficient2ForAtovs,tovsOrAtovsProductQualifier"
# The units for centre also changed