From afbd560a00d64a8f22a4f3f810faefc8c94be335 Mon Sep 17 00:00:00 2001 From: shahramn Date: Tue, 16 Apr 2024 10:28:04 +0100 Subject: [PATCH] ECC-1801: GRIB2: Issue with post metadata hook for DestinE --- definitions/grib2/post_meta_data.hook.products_12.def | 2 +- tests/grib_ecc-1691.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/definitions/grib2/post_meta_data.hook.products_12.def b/definitions/grib2/post_meta_data.hook.products_12.def index d7ad4e586..f01e08f71 100644 --- a/definitions/grib2/post_meta_data.hook.products_12.def +++ b/definitions/grib2/post_meta_data.hook.products_12.def @@ -9,6 +9,6 @@ concept destineOrigin(unknown, "destineOriginConcept.def", conceptsDir2, concept unalias mars.domain; # ECC-1796: stepRange indexing for DestinE ExtremesDT and On-Demand ExtremesDT data -if (!(dataset is "climate-dt")) { +if ( defined(dataset) && !(dataset is "climate-dt") ) { alias mars.step=stepRange; } diff --git a/tests/grib_ecc-1691.sh b/tests/grib_ecc-1691.sh index bb0cb6d62..d64bae087 100755 --- a/tests/grib_ecc-1691.sh +++ b/tests/grib_ecc-1691.sh @@ -93,5 +93,9 @@ ${tools_dir}/grib_ls -jm $temp_grib_a [ $( ${tools_dir}/grib_get -f -p mars.time $temp_grib_a ) = "not_found" ] [ $( ${tools_dir}/grib_get -f -p mars.step $temp_grib_a ) = "not_found" ] +# ECC-1801 +${tools_dir}/grib_set -s productionStatusOfProcessedData=12 $sample_grib2 $temp_grib_a +${tools_dir}/grib_compare -b productionStatusOfProcessedData $sample_grib2 $temp_grib_a + # Clean up rm -f $temp_grib_a $temp_grib_b $destine_sample