mirror of https://github.com/ecmwf/eccodes.git
ECC-751: Added a test for EFRA
This commit is contained in:
parent
0961f1d07d
commit
8dc88f6454
|
@ -16,7 +16,9 @@ temp1=temp1.$label.grib
|
|||
temp2=temp2.$label.grib
|
||||
temp3=temp3.$label.grib
|
||||
|
||||
|
||||
# ---------------------------
|
||||
# Stream EFAS
|
||||
# ---------------------------
|
||||
# Create a starting GRIB with a basic local definition for MARS
|
||||
${tools_dir}/grib_set -s tablesVersion=19,setLocalDefinition=1,stream=efas $ECCODES_SAMPLES_PATH/GRIB2.tmpl $sample
|
||||
|
||||
|
@ -83,6 +85,20 @@ for t in $types; do
|
|||
#${tools_dir}/grib_dump -Da $temp1 | grep mars.step
|
||||
done
|
||||
|
||||
# ---------------------------
|
||||
# Stream EFRA
|
||||
# ---------------------------
|
||||
${tools_dir}/grib_set -s tablesVersion=19,setLocalDefinition=1,stream=efra,type=fc $ECCODES_SAMPLES_PATH/GRIB2.tmpl $sample
|
||||
|
||||
# Test a non-ensemble, instantaneous field
|
||||
${tools_dir}/grib_set -s productDefinitionTemplateNumber=70,typeOfPostProcessing=1 $sample $temp1
|
||||
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=41,yearOfReanalysis=2019,monthOfReanalysis=12,dayOfReanalysis=13 $temp1 $temp2
|
||||
# ${tools_dir}/grib_ls -m $temp2
|
||||
grib_check_key_equals $temp2 mars.hdate,mars.date '20070323 20191213'
|
||||
# This stream does not have the 'anoffset' key
|
||||
anoffset=`${tools_dir}/grib_get -f -p mars.anoffset $temp2`
|
||||
[ "anoffset" = "not_found" ]
|
||||
|
||||
|
||||
# Clean up
|
||||
rm -f $sample $temp1 $temp2 $temp3
|
||||
|
|
Loading…
Reference in New Issue