Skip to content

Commit

Permalink
removed recent test - wasn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed May 15, 2024
1 parent dbff085 commit 478383f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/run_wgrib2_netcdf4_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@ if [ "$n" -ne 1 ] ; then
exit 1
fi

echo "*** Testing converting from grib to netcdf to grib with multiple variables"
../wgrib2/wgrib2 data/gdas.t12z.pgrb2.1p00.anl.75r.grib2 -match ":(UGRD|VGRD|HGT|TMP):0.4 mb" -grib_out temp.grib2
../wgrib2/wgrib2 temp.grib2 -rpn 0 -grib_out junk_netcdf.template
../wgrib2/wgrib2 temp.grib2 -nc4 -netcdf junk_netcdf.nc
../wgrib2/wgrib2 junk_netcdf.template -import_netcdf junk_netcdf.nc HGT_0D4mb "0:1:0:181:0:360" \
-import_netcdf junk_netcdf.nc TMP_0D4mb "0:1:0:181:0:360" \
-import_netcdf junk_netcdf.nc UGRD_0D4mb "0:1:0:181:0:360" \
-import_netcdf junk_netcdf.nc VGRD_0D4mb "0:1:0:181:0:360" \
-grib_out junk_netcdf.grb

cksum0=`../wgrib2/wgrib2 temp.grib2 -text - | cksum`
cksum1=`../wgrib2/wgrib2 junk_netcdf.grb -text - | cksum`
if [ "$cksum0" != "$cksum1" ] ; then
exit 1
fi
rm junk_netcdf.grb junk_netcdf.nc junk_netcdf.template

echo "*** Testing converting from grib to netcdf with variables stored in 3D structure"
../wgrib2/wgrib2 data/gdas.t12z.pgrb2.1p00.anl.75r.grib2 -nc_nlev 7 -netcdf junk_netcdf.nc -match ":(UGRD|VGRD|HGT|TMP):"
ncdump -v HGT,TMP,UGRD,VGRD junk_netcdf.nc > netcdf.txt
Expand Down

0 comments on commit 478383f

Please sign in to comment.