Testing: OrcaGrids

This commit is contained in:
Shahram Najm 2020-07-22 16:35:32 +01:00
parent f04237c4e0
commit de64bb89e1
3 changed files with 19 additions and 2 deletions

View File

@ -69,7 +69,7 @@ list(APPEND tests_no_data_reqd
grib_efas
grib_sh_imag
pseudo_diag
grib_unstructured_grid
grib_grid_unstructured
grib_grid_lambert_conformal
grib_grid_polar_stereographic
grib_grid_space_view

View File

@ -62,6 +62,7 @@ TESTS = definitions.sh \
grib_grid_space_view.sh \
grib_grid_polar_stereographic.sh \
grib_grid_mercator.sh \
grib_grid_unstructured.sh \
grib_to_netcdf.sh \
grib_dump_debug.sh \
grib_jpeg.sh \

View File

@ -10,7 +10,7 @@
. ./include.sh
label="grib_unstructured_grid"
label="grib_grid_unstructured"
# Only relevant for GRIB2
sample=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
@ -27,5 +27,21 @@ ${tools_dir}/grib_compare $temp1 $temp2
grib_check_key_equals $temp2 'numberOfGridInReference' '4'
grib_check_key_equals $temp2 'numberOfGridUsed' '2'
# Test some lat/lon parameters
${tools_dir}/grib_set -s paramId=250003 $sample $temp1
grib_check_key_equals $temp1 'unstructuredGridSubtype' 'T grid'
${tools_dir}/grib_set -s paramId=250005 $sample $temp1
grib_check_key_equals $temp1 'unstructuredGridSubtype' 'U grid'
${tools_dir}/grib_set -s paramId=250007 $sample $temp1
grib_check_key_equals $temp1 'unstructuredGridSubtype' 'V grid'
${tools_dir}/grib_set -s paramId=250009 $sample $temp1
grib_check_key_equals $temp1 'unstructuredGridSubtype' 'W grid'
${tools_dir}/grib_set -s paramId=250011 $sample $temp1
grib_check_key_equals $temp1 'unstructuredGridSubtype' 'F grid'
rm -f $temp1 $temp2