Skip to content

Commit

Permalink
ECC-1903: Reverted change in products files. This doesn't work becaus…
Browse files Browse the repository at this point in the history
…e the products file comes after the paramId is already decided.
  • Loading branch information
mjg41 committed Jan 8, 2025
1 parent eaa00a0 commit 012e04e
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 28 deletions.
2 changes: 2 additions & 0 deletions definitions/grib2/localConcepts/s2s/MTG2SwitchConcept.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This pseudocentre should remain permanently on pre-MTG2 definitions
0 = {edition=2;}
2 changes: 2 additions & 0 deletions definitions/grib2/localConcepts/tigge/MTG2SwitchConcept.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This pseudocentre should remain permanently on pre-MTG2 definitions
0 = {edition=2;}
2 changes: 2 additions & 0 deletions definitions/grib2/localConcepts/uerra/MTG2SwitchConcept.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This pseudocentre should remain permanently on pre-MTG2 definitions
0 = {edition=2;}
15 changes: 8 additions & 7 deletions definitions/grib2/products_crra.def
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ if (marsStream is "dame") {
unalias mars.step;
}
# MTG2 support given lack of local section
if (tablesVersion <= tablesVersionMTG2Switch) {
# Pre-MTG2
constant MTG2SwitchDefault = 0;
} else {
# All other cases we are post-MTG2
constant MTG2SwitchDefault = 1;
}
# This comes after the paramId is already decided, so doesn't work.
# if (tablesVersion <= tablesVersionMTG2Switch) {
# # Pre-MTG2
# constant MTG2SwitchDefault = 0;
# } else {
# # All other cases we are post-MTG2
# constant MTG2SwitchDefault = 1;
# }
15 changes: 8 additions & 7 deletions definitions/grib2/products_s2s.def
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ if (is_ocean3d_param) {
}

# MTG2 support given lack of local section
if (tablesVersion <= tablesVersionMTG2Switch) {
# Pre-MTG2
constant MTG2SwitchDefault = 0;
} else {
# All other cases we are post-MTG2
constant MTG2SwitchDefault = 1;
}
# This comes after the paramId is already decided, so doesn't work.
# if (tablesVersion <= tablesVersionMTG2Switch) {
# # Pre-MTG2
# constant MTG2SwitchDefault = 0;
# } else {
# # All other cases we are post-MTG2
# constant MTG2SwitchDefault = 1;
# }
15 changes: 8 additions & 7 deletions definitions/grib2/products_tigge.def
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ alias mars.stream = marsStream;
alias mars.type = marsType;

# MTG2 support given lack of local section
if (tablesVersion <= tablesVersionMTG2Switch) {
# Pre-MTG2
constant MTG2SwitchDefault = 0;
} else {
# All other cases we are post-MTG2
constant MTG2SwitchDefault = 1;
}
# This comes after the paramId is already decided, so doesn't work.
# if (tablesVersion <= tablesVersionMTG2Switch) {
# # Pre-MTG2
# constant MTG2SwitchDefault = 0;
# } else {
# # All other cases we are post-MTG2
# constant MTG2SwitchDefault = 1;
# }
15 changes: 8 additions & 7 deletions definitions/grib2/products_uerra.def
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ alias mars.stream = marsStream;
alias mars.type = marsType;

# MTG2 support given lack of local section
if (tablesVersion <= tablesVersionMTG2Switch) {
# Pre-MTG2
constant MTG2SwitchDefault = 0;
} else {
# All other cases we are post-MTG2
constant MTG2SwitchDefault = 1;
}
# This comes after the paramId is already decided, so doesn't work.
# if (tablesVersion <= tablesVersionMTG2Switch) {
# # Pre-MTG2
# constant MTG2SwitchDefault = 0;
# } else {
# # All other cases we are post-MTG2
# constant MTG2SwitchDefault = 1;
# }

0 comments on commit 012e04e

Please sign in to comment.