getting rid of is_efas, is_uerra, is_tigge and is_s2s, part 1

This commit is contained in:
Sebastien Villaume 2021-06-23 16:27:29 +01:00
parent 4e5adb7915
commit 1a94df0915
3 changed files with 29 additions and 10 deletions

View File

@ -16,9 +16,9 @@ constant tablesVersionLatest = 27 : edition_specific;
constant million = 1000000 : hidden;
constant grib2divider = 1000000;
alias extraDimensionPresent=zero;
alias is_tigge = zero;
alias is_s2s = zero;
transient is_efas = 0;
#alias is_tigge = zero;
#alias is_s2s = zero;
#transient is_efas = 0;
transient angleSubdivisions=grib2divider; # micro degrees
meta gts_header gts_header() : no_copy,hidden,read_only;

View File

@ -116,13 +116,13 @@ if ( ((section1Length > 21) or setCalendarId > 0) and deleteCalendarId == 0) {
template calendarIdentification "grib2/template.1.[calendarIdentificationTemplateNumber:l].def";
}
concept is_uerra(zero) {
'1' = {productionStatusOfProcessedData=10;}
'1' = {productionStatusOfProcessedData=11;}
'1' = {productionStatusOfProcessedData=9;}
'1' = {productionStatusOfProcessedData=8;}
'0' = {dummy=1;}
}
#concept is_uerra(zero) {
# '1' = {productionStatusOfProcessedData=10;}
# '1' = {productionStatusOfProcessedData=11;}
# '1' = {productionStatusOfProcessedData=9;}
# '1' = {productionStatusOfProcessedData=8;}
# '0' = {dummy=1;}
#}
constant conceptsMasterDir="grib2" : hidden;
constant conceptsLocalDirAll="grib2/localConcepts/[centre:s]" : hidden;

View File

@ -23,6 +23,25 @@ if (centre==7 || centre==46) {
alias disableGrib1LocalSection=one;
}
concept datasetForLocal(unknown) {
"tigge" = {productionStatusOfProcessedData=4;}
"tigge" = {productionStatusOfProcessedData=5;}
"s2s" = {productionStatusOfProcessedData=6;}
"s2s" = {productionStatusOfProcessedData=7;}
"hydro" = {marsClass="ce";} # EFAS/GLOFAS
"hydro" = {marsClass="ul";} #ULYSSES
"uerra" = {productionStatusOfProcessedData=8;} # UERRA
"uerra" = {productionStatusOfProcessedData=9;} # UERRA
"uerra" = {productionStatusOfProcessedData=10;} # CARRA/CERRA
"uerra" = {productionStatusOfProcessedData=11;} # CARRA/CERRA
"unknown" = { dummy=1; }
}
if (!(datasetForLocal is "unknown")) {
constant conceptsDir1 = "grib2/localConcepts/[datasetForLocal]": hidden;
constant conceptsDir2 = "grib2": hidden;
}
codetable[2] productDefinitionTemplateNumber('4.0.table',masterDir,localDir) : dump;
if (section2Used == 1) {