From 012e04e29983da747e5a56b7455f0d43a2d6adb0 Mon Sep 17 00:00:00 2001 From: Matthew Griffith Date: Wed, 8 Jan 2025 15:49:54 +0000 Subject: [PATCH] ECC-1903: Reverted change in products files. This doesn't work because the products file comes after the paramId is already decided. --- .../grib2/localConcepts/s2s/MTG2SwitchConcept.def | 2 ++ .../localConcepts/tigge/MTG2SwitchConcept.def | 2 ++ .../localConcepts/uerra/MTG2SwitchConcept.def | 2 ++ definitions/grib2/products_crra.def | 15 ++++++++------- definitions/grib2/products_s2s.def | 15 ++++++++------- definitions/grib2/products_tigge.def | 15 ++++++++------- definitions/grib2/products_uerra.def | 15 ++++++++------- 7 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 definitions/grib2/localConcepts/s2s/MTG2SwitchConcept.def create mode 100644 definitions/grib2/localConcepts/tigge/MTG2SwitchConcept.def create mode 100644 definitions/grib2/localConcepts/uerra/MTG2SwitchConcept.def diff --git a/definitions/grib2/localConcepts/s2s/MTG2SwitchConcept.def b/definitions/grib2/localConcepts/s2s/MTG2SwitchConcept.def new file mode 100644 index 000000000..4813ddbef --- /dev/null +++ b/definitions/grib2/localConcepts/s2s/MTG2SwitchConcept.def @@ -0,0 +1,2 @@ +# This pseudocentre should remain permanently on pre-MTG2 definitions +0 = {edition=2;} \ No newline at end of file diff --git a/definitions/grib2/localConcepts/tigge/MTG2SwitchConcept.def b/definitions/grib2/localConcepts/tigge/MTG2SwitchConcept.def new file mode 100644 index 000000000..4813ddbef --- /dev/null +++ b/definitions/grib2/localConcepts/tigge/MTG2SwitchConcept.def @@ -0,0 +1,2 @@ +# This pseudocentre should remain permanently on pre-MTG2 definitions +0 = {edition=2;} \ No newline at end of file diff --git a/definitions/grib2/localConcepts/uerra/MTG2SwitchConcept.def b/definitions/grib2/localConcepts/uerra/MTG2SwitchConcept.def new file mode 100644 index 000000000..4813ddbef --- /dev/null +++ b/definitions/grib2/localConcepts/uerra/MTG2SwitchConcept.def @@ -0,0 +1,2 @@ +# This pseudocentre should remain permanently on pre-MTG2 definitions +0 = {edition=2;} \ No newline at end of file diff --git a/definitions/grib2/products_crra.def b/definitions/grib2/products_crra.def index ebf328a6f..c7708aa05 100644 --- a/definitions/grib2/products_crra.def +++ b/definitions/grib2/products_crra.def @@ -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; +# } diff --git a/definitions/grib2/products_s2s.def b/definitions/grib2/products_s2s.def index 3525c0db3..01fbda3ed 100644 --- a/definitions/grib2/products_s2s.def +++ b/definitions/grib2/products_s2s.def @@ -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; +# } diff --git a/definitions/grib2/products_tigge.def b/definitions/grib2/products_tigge.def index c3c9a0b4b..00dcce6df 100644 --- a/definitions/grib2/products_tigge.def +++ b/definitions/grib2/products_tigge.def @@ -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; +# } diff --git a/definitions/grib2/products_uerra.def b/definitions/grib2/products_uerra.def index 5dbbd09df..f05eb2737 100644 --- a/definitions/grib2/products_uerra.def +++ b/definitions/grib2/products_uerra.def @@ -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; +# }