Skip to content

Commit

Permalink
ECC-1806: Move the concept into its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Apr 20, 2024
1 parent 9dc4707 commit 403ef58
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 19 deletions.
31 changes: 31 additions & 0 deletions definitions/grib1/localConcepts/ecmf/paramIdForConversion.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Concept paramIdForConversion for ECMWF
# ECC-1806

# 55 -> 228004
228004 = {gribTablesVersionNo=128; indicatorOfParameter=55; centre=98;}
# 56 -> 235168
235168 = {gribTablesVersionNo=128; indicatorOfParameter=56; centre=98;}
# 130232 -> 235135
235135 = {gribTablesVersionNo=130; indicatorOfParameter=232; centre=98;}
# 151163 -> 262104
262104 = {gribTablesVersionNo=151; indicatorOfParameter=163; centre=98;}
# 151145 -> 262124
262124 = {gribTablesVersionNo=151; indicatorOfParameter=145; centre=98;}
# 172146 -> 235033
235033 = {gribTablesVersionNo=172; indicatorOfParameter=146; centre=98;}
# 172147 -> 235034
235034 = {gribTablesVersionNo=172; indicatorOfParameter=147; centre=98;}
# 172169 -> 235035
235035 = {gribTablesVersionNo=172; indicatorOfParameter=169; centre=98;}
# 172175 -> 235036
235036 = {gribTablesVersionNo=172; indicatorOfParameter=175; centre=98;}
# 172176 -> 235037
235037 = {gribTablesVersionNo=172; indicatorOfParameter=176; centre=98;}
# 172177 -> 235038
235038 = {gribTablesVersionNo=172; indicatorOfParameter=177; centre=98;}
# 172178 -> 235039
235039 = {gribTablesVersionNo=172; indicatorOfParameter=178; centre=98;}
# 172179 -> 235040
235040 = {gribTablesVersionNo=172; indicatorOfParameter=179; centre=98;}
# 174098 -> 262000
262000 = {gribTablesVersionNo=174; indicatorOfParameter=98; centre=98;}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Concept stepTypeForConversion for ECMWF
# set uses the FIRST one
# get returns the LAST match

# ECC-457: ECMWF Total Precipitation
# ECC-457: total precipitation
"accum"={timeRangeIndicator=0;indicatorOfParameter=228;gribTablesVersionNo=128;centre=98;}
"accum"={timeRangeIndicator=1;indicatorOfParameter=228;gribTablesVersionNo=128;centre=98;}
"accum"={timeRangeIndicator=10;indicatorOfParameter=228;gribTablesVersionNo=128;centre=98;}
Expand Down
3 changes: 3 additions & 0 deletions definitions/grib1/paramIdForConversion.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Concept paramIdForConversion
# See ECC-1806
0 = {dummy=0;}
17 changes: 1 addition & 16 deletions definitions/grib1/section.1.def
Original file line number Diff line number Diff line change
Expand Up @@ -327,19 +327,4 @@ meta md5Section1 md5(offsetSection1,section1Length);
meta md5Product md5(offsetSection1,section1Length,gridDefinition,section1Flags,decimalScaleFactor);

# ECC-1806
concept_nofail paramIdForConversion(zero) {
228004 = { gribTablesVersionNo=128; indicatorOfParameter=55; centre=98; } # 55 -> 228004
235168 = { gribTablesVersionNo=128; indicatorOfParameter=56; centre=98; } # 56 -> 235168
235135 = { gribTablesVersionNo=130; indicatorOfParameter=232; centre=98; } # 130232 -> 235135
262104 = { gribTablesVersionNo=151; indicatorOfParameter=163; centre=98; } # 151163 -> 262104
262124 = { gribTablesVersionNo=151; indicatorOfParameter=145; centre=98; } # 151145 -> 262124
235033 = { gribTablesVersionNo=172; indicatorOfParameter=146; centre=98; } # 172146 -> 235033
235034 = { gribTablesVersionNo=172; indicatorOfParameter=147; centre=98; } # 172147 -> 235034
235035 = { gribTablesVersionNo=172; indicatorOfParameter=169; centre=98; } # 172169 -> 235035
235036 = { gribTablesVersionNo=172; indicatorOfParameter=175; centre=98; } # 172175 -> 235036
235037 = { gribTablesVersionNo=172; indicatorOfParameter=176; centre=98; } # 172176 -> 235037
235038 = { gribTablesVersionNo=172; indicatorOfParameter=177; centre=98; } # 172177 -> 235038
235039 = { gribTablesVersionNo=172; indicatorOfParameter=178; centre=98; } # 172178 -> 235039
235040 = { gribTablesVersionNo=172; indicatorOfParameter=179; centre=98; } # 172179 -> 235040
262000 = { gribTablesVersionNo=174; indicatorOfParameter=98; centre=98; } # 174098 -> 262000
} : long_type;
concept_nofail paramIdForConversion(zero, "paramIdForConversion.def", conceptsDir2, conceptsDir1) : long_type,read_only;

0 comments on commit 403ef58

Please sign in to comment.