Testing: Dump output

This commit is contained in:
shahramn 2024-03-08 16:05:13 +00:00
parent 8dc64c35c6
commit 0da31890f1
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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 \