ECC-1277: Test eccodes_t_grib_to_netcdf fails

This commit is contained in:
Shahram Najm 2021-09-02 11:19:51 +01:00
parent eac369e7e6
commit f08c23a0ee
1 changed files with 3 additions and 2 deletions

View File

@ -62,10 +62,11 @@ if [ $ECCODES_ON_WINDOWS -eq 0 ]; then
${tools_dir}/grib_to_netcdf -k3 -o $tempNetcdf $input 2>/dev/null
stat=$?
set -e
${tools_dir}/grib_dump -TA -O $tempNetcdf
if [ $stat -eq 0 ]; then
have_netcdf4=1
res=`${tools_dir}/grib_get -TA -p identifier,versionNumberOfSuperblock $tempNetcdf`
[ "$res" = "HDF5 0" ]
res=`${tools_dir}/grib_get -TA -p identifier $tempNetcdf`
[ "$res" = "HDF5" ]
fi
fi