ECC-1832: GRIB2: Destination Earth On-Demand ExtremesDT metadata support (#267)

* ECC-1832: Moved templates into templates directory
This commit is contained in:
Matthew Griffith 2024-11-14 10:23:26 +00:00 committed by GitHub
parent c2724bc41a
commit 94cea1648f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# DestinE MARS On-Demand ExtremesDT keywords
# Default is lat,long 0.0,0.0 to 8 chars precision from geolib
ascii[8] georef = "s0000000" : dump ;
alias mars.georef = georef;

View File

@ -97,5 +97,18 @@ ${tools_dir}/grib_ls -jm $temp_grib_a
${tools_dir}/grib_set -s productionStatusOfProcessedData=12 $sample_grib2 $temp_grib_a
${tools_dir}/grib_compare -b productionStatusOfProcessedData $sample_grib2 $temp_grib_a
# ECC-1832 On-Demand DT metadata
# Check setting dataset to on-demand-extremes-dt (4). Check keys are present and equal defaults
${tools_dir}/grib_set -s dataset=4 $destine_sample $temp_grib_a
grib_check_key_exists $temp_grib_a dataset,georef
grib_check_key_equals $temp_grib_a "dataset,dataset:s,georef,mars.georef" "4 on-demand-extremes-dt s0000000 s0000000"
# Check an example where a few additional things are set in on-demand-extremes-dt
${tools_dir}/grib_set -s dataset=4,georef=gcpkd2eu $destine_sample $temp_grib_a
grib_check_key_equals $temp_grib_a "georef" "gcpkd2eu"
# Clean up
rm -f $temp_grib_a $temp_grib_b $destine_sample