mirror of https://github.com/ecmwf/eccodes.git
Add new key to cater for where there is no bitmap and missing values are encoded in the data section
This commit is contained in:
parent
0c7cce89a3
commit
52557b0290
|
@ -45,6 +45,7 @@ meta GDSPresent gds_is_present(gridDescriptionSectionPresent,gridDefinition,bitm
|
|||
flagbit bitmapPresent(section1Flags,6) :dump;
|
||||
alias bitmapSectionPresent=bitmapPresent;
|
||||
alias geography.bitmapPresent=bitmapPresent;
|
||||
alias missingValuesPresent=bitmapPresent;
|
||||
transient angularPrecision=1000; # milli degrees
|
||||
|
||||
if(gridDescriptionSectionPresent){
|
||||
|
|
|
@ -27,11 +27,11 @@ codetable[1] bitMapIndicator ('6.0.table',masterDir,localDir) = 255 : dump;
|
|||
|
||||
#transient bitmapPresent=1;
|
||||
meta geography.bitmapPresent g2bitmap_present(bitMapIndicator): dump;
|
||||
transient missingValuesPresent = bitmapPresent : hidden;
|
||||
|
||||
# Bitmap...
|
||||
if(bitMapIndicator == 0)
|
||||
{
|
||||
|
||||
if(dataRepresentationTemplateNumber == 1)
|
||||
{
|
||||
if(matrixBitmapsPresent == 1)
|
||||
|
@ -61,4 +61,12 @@ if(bitMapIndicator == 0)
|
|||
}
|
||||
}
|
||||
|
||||
if(bitMapIndicator == 255)
|
||||
{
|
||||
# No bitmap is used but some complex packing schemes embed the missing values in the data section
|
||||
if (dataRepresentationTemplateNumber == 2 || dataRepresentationTemplateNumber == 3) {
|
||||
transient missingValuesPresent = (missingValueManagementUsed != 0);
|
||||
}
|
||||
}
|
||||
|
||||
meta md5Section6 md5(offsetSection6,section6Length);
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
codetable[1] bitMapIndicator ('6.0.table',masterDir,localDir) = 255 : dump;
|
||||
|
||||
meta geography.bitmapPresent g2bitmap_present(bitMapIndicator): dump;
|
||||
transient missingValuesPresent = bitmapPresent : hidden;
|
||||
|
||||
# Bitmap...
|
||||
if(bitMapIndicator == 0)
|
||||
|
|
Loading…
Reference in New Issue