mirror of https://github.com/ecmwf/eccodes.git
Testing: projString for unsupported grids
This commit is contained in:
parent
b3594219a6
commit
5c9ff02393
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue