mirror of https://github.com/ecmwf/eccodes.git
Orca grids: further tests
This commit is contained in:
parent
9b89625d4a
commit
46a7a13474
|
@ -14,11 +14,18 @@ label="grib_unstructured_grid"
|
||||||
|
|
||||||
# Only relevant for GRIB2
|
# Only relevant for GRIB2
|
||||||
sample=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
sample=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
||||||
temp=temp.${label}
|
temp1=temp.1.${label}
|
||||||
|
temp2=temp.2.${label}
|
||||||
|
|
||||||
${tools_dir}/grib_set -s gridType=unstructured_grid,numberOfGridInReference=4,numberOfGridUsed=2 $sample $temp
|
${tools_dir}/grib_set -s gridType=unstructured_grid,numberOfGridInReference=4,numberOfGridUsed=2 $sample $temp1
|
||||||
grib_check_key_equals $temp 'unstructuredGridType' 'ORCA1'
|
grib_check_key_equals $temp1 'unstructuredGridType' 'ORCA1'
|
||||||
grib_check_key_equals $temp 'unstructuredGridSubtype' 'W grid'
|
grib_check_key_equals $temp1 'unstructuredGridSubtype' 'W grid'
|
||||||
#grib_check_key_equals $temp 'unstructuredGridUUID' 'ORCA1 W grid unknown'
|
#grib_check_key_equals $temp1 'unstructuredGridUUID' 'ORCA1 W grid unknown'
|
||||||
|
|
||||||
rm -f $temp
|
${tools_dir}/grib_set -s gridType=unstructured_grid,unstructuredGridType=ORCA1,unstructuredGridSubtype='W grid' $sample $temp2
|
||||||
|
${tools_dir}/grib_compare $temp1 $temp2
|
||||||
|
grib_check_key_equals $temp2 'numberOfGridInReference' '4'
|
||||||
|
grib_check_key_equals $temp2 'numberOfGridUsed' '2'
|
||||||
|
|
||||||
|
|
||||||
|
rm -f $temp1 $temp2
|
||||||
|
|
Loading…
Reference in New Issue