Testing: projString for unsupported grids

This commit is contained in:
Shahram Najm 2024-02-02 17:32:33 +00:00
parent b3594219a6
commit 5c9ff02393
1 changed files with 11 additions and 0 deletions

View File

@ -97,6 +97,17 @@ set -e
grep -q "ERROR.*Cannot unpack.*projTargetString.* as double" $tempText
grep -q "Hint: Try unpacking as string" $tempText
# Unsupported grids
unsupported_grids="albers space_view equatorial_azimuthal_equidistant transverse_mercator"
for ug in $unsupported_grids; do
${tools_dir}/grib_set -s gridType=$ug $grib2_sample $tempGrib
set +e
${tools_dir}/grib_get -p projString $tempGrib > $tempText 2>&1
status=$?
set -e
[ $status -ne 0 ]
grep -q "Not yet implemented" $tempText
done
# Clean up
rm -f $tempGrib $tempText