Testing: ECC-1926 conversion

This commit is contained in:
shahramn 2024-10-03 09:53:17 +01:00
parent db04edbb90
commit 0fd34ba32b
1 changed files with 5 additions and 0 deletions

View File

@ -93,9 +93,14 @@ cat >$tempFilt<<EOF
EOF EOF
input=$ECCODES_SAMPLES_PATH/GRIB2.tmpl input=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
${tools_dir}/grib_filter -o $temp1 $tempFilt $input ${tools_dir}/grib_filter -o $temp1 $tempFilt $input
grib_check_key_equals $temp1 packingType,isConstant 'grid_complex_spatial_differencing 1'
stats1=`${tools_dir}/grib_get -M -F%.0f -n statistics $input` stats1=`${tools_dir}/grib_get -M -F%.0f -n statistics $input`
stats2=`${tools_dir}/grib_get -M -F%.0f -n statistics $temp1` stats2=`${tools_dir}/grib_get -M -F%.0f -n statistics $temp1`
[ "$stats1" = "$stats2" ] [ "$stats1" = "$stats2" ]
${tools_dir}/grib_set -rs packingType=grid_simple $temp1 $temp2
grib_check_key_equals $temp2 packingType,isConstant 'grid_simple 1'
${tools_dir}/grib_compare -b totalLength,section5Length,dataRepresentationTemplateNumber $temp2 $temp1
# Decode as string - Null op # Decode as string - Null op
cat >$tempFilt<<EOF cat >$tempFilt<<EOF