mirror of https://github.com/ecmwf/eccodes.git
ECC-1342: Fix levtypes for UERRA params 260649 and 260650
This commit is contained in:
parent
65dda35cc6
commit
fc6d0108e3
|
@ -12,8 +12,10 @@
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
label="grib_ecc-1319-test"
|
label="grib_ecc-1319-test"
|
||||||
temp=temp.$label.grib
|
|
||||||
|
|
||||||
|
temp=temp.$label.grib
|
||||||
|
temp1=temp1.$label.grib
|
||||||
|
temp2=temp2.$label.grib
|
||||||
sample_grib2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
sample_grib2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
||||||
|
|
||||||
typeOfLevels="
|
typeOfLevels="
|
||||||
|
@ -65,12 +67,13 @@ done
|
||||||
|
|
||||||
# Also check specific cases
|
# Also check specific cases
|
||||||
# --------------------------
|
# --------------------------
|
||||||
# Sea ice surface temperature
|
# 260649 = Sea ice surface temperature (UERRA)
|
||||||
${tools_dir}/grib_set -s paramId=260649 $sample_grib2 $temp
|
${tools_dir}/grib_set -s productionStatusOfProcessedData=8 $sample_grib2 $temp1
|
||||||
grib_check_key_equals $temp levtype o2d
|
${tools_dir}/grib_set -s paramId=260649 $temp1 $temp2
|
||||||
# Snow on ice total depth
|
grib_check_key_equals $temp2 levtype sfc
|
||||||
${tools_dir}/grib_set -s paramId=260650 $sample_grib2 $temp
|
# 260650 = Snow on ice total depth (UERRA)
|
||||||
grib_check_key_equals $temp levtype o2d
|
${tools_dir}/grib_set -s paramId=260650 $temp1 $temp2
|
||||||
|
grib_check_key_equals $temp2 levtype sfc
|
||||||
|
|
||||||
# Lake ice surface temperature
|
# Lake ice surface temperature
|
||||||
${tools_dir}/grib_set -s paramId=228013 $sample_grib2 $temp
|
${tools_dir}/grib_set -s paramId=228013 $sample_grib2 $temp
|
||||||
|
@ -81,4 +84,4 @@ grib_check_key_equals $temp levtype sfc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
rm -f $temp
|
rm -f $temp $temp1 $temp2
|
||||||
|
|
Loading…
Reference in New Issue