mirror of https://github.com/ecmwf/eccodes.git
Testing: Dump output
This commit is contained in:
parent
8dc64c35c6
commit
0da31890f1
|
@ -22,6 +22,11 @@ logfile=temp.$label.log
|
||||||
|
|
||||||
rm -f $outfile1 $outfile2
|
rm -f $outfile1 $outfile2
|
||||||
|
|
||||||
|
# Debug info
|
||||||
|
ECCODES_DEBUG=-1 ${tools_dir}/grib_copy -r $infile $outfile1 > $logfile 2>&1
|
||||||
|
grep -q "ECCODES DEBUG CCSDS .* aec_stream.flags" $logfile
|
||||||
|
|
||||||
|
|
||||||
# Convert a non-constant grib2 file (Note: not using -r)
|
# Convert a non-constant grib2 file (Note: not using -r)
|
||||||
grib2_sample=$ECCODES_SAMPLES_PATH/gg_sfc_grib2.tmpl
|
grib2_sample=$ECCODES_SAMPLES_PATH/gg_sfc_grib2.tmpl
|
||||||
${tools_dir}/grib_set -s packingType=grid_ccsds $grib2_sample $outfile1
|
${tools_dir}/grib_set -s packingType=grid_ccsds $grib2_sample $outfile1
|
||||||
|
|
|
@ -112,6 +112,8 @@ ${tools_dir}/grib_filter -o $tempGrib $tempFilt $sample_grib2
|
||||||
grib_check_key_equals $tempGrib selectedFcIndex,step '1 4'
|
grib_check_key_equals $tempGrib selectedFcIndex,step '1 4'
|
||||||
grib_check_key_equals $tempGrib mars.date,mars.time '20220607 300'
|
grib_check_key_equals $tempGrib mars.date,mars.time '20220607 300'
|
||||||
|
|
||||||
|
${tools_dir}/grib_dump -Dat $tempGrib > $tempOut
|
||||||
|
|
||||||
for pdtn in 88 92 93 94 95 96 97 98; do
|
for pdtn in 88 92 93 94 95 96 97 98; do
|
||||||
${tools_dir}/grib_set -s \
|
${tools_dir}/grib_set -s \
|
||||||
tablesVersion=30,productDefinitionTemplateNumber=$pdtn,numberOfForecastsUsedInLocalTime=1 \
|
tablesVersion=30,productDefinitionTemplateNumber=$pdtn,numberOfForecastsUsedInLocalTime=1 \
|
||||||
|
|
Loading…
Reference in New Issue