Skip to content

Commit

Permalink
updated some file names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed May 10, 2024
1 parent acd49fd commit b9fdbb6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ endif()
copy_test_data(gdaswave.t00z.wcoast.0p16.f000.grib2)
copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000.grib2.inv)
copy_test_data(ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt)
copy_test_data(tmp_int.grb)
copy_test_data(ref_simple_packing.grib2)
copy_test_data(gdas.t12z.pgrb2.1p00.anl.75r.grib2)
copy_test_data(ref_wind.gdas.t12z.pgrb2.1p00.anl.75r.grib2.inv)
copy_test_data(ref_uv.gdas.t12z.pgrb2.1p00.anl.75r.grib2.inv)
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/run_wgrib2_aec_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ set -e
echo ""
echo "*** Running wgrib2 tests"

cksum0=`../wgrib2/wgrib2 data/tmp_int.grb -text - | cksum`
../wgrib2/wgrib2 data/tmp_int.grb -set_grib_type aec -grib_out junk.grb
cksum1=`../wgrib2/wgrib2 junk.grb -text - | cksum`
cksum0=`../wgrib2/wgrib2 data/ref_simple_packing.grib2 -text - | cksum`
../wgrib2/wgrib2 data/ref_simple_packing.grib2 -set_grib_type aec -grib_out junk_aec.grb
cksum1=`../wgrib2/wgrib2 junk_aec.grb -text - | cksum`

if [ "$cksum0" != "$cksum1" ] ; then
echo "failed for compressing to aec and reading from aec"
Expand Down
10 changes: 5 additions & 5 deletions tests/run_wgrib2_netcdf3_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ set -e
set -x

# make template
../wgrib2/wgrib2 data/tmp_int.grb -rpn 0 -grib_out junk.template
../wgrib2/wgrib2 data/ref_simple_packing.grib2 -rpn 0 -grib_out junk_netcdf.template

# make netcdf file
../wgrib2/wgrib2 data/tmp_int.grb -nc3 -netcdf junk.nc
../wgrib2/wgrib2 data/ref_simple_packing.grib2 -nc3 -netcdf junk_netcdf.nc

# convert netcdf to grb
../wgrib2/wgrib2 junk.template -import_netcdf junk.nc TMP_500mb "0:1:0:181:0:360" -grib_out junk.grb
../wgrib2/wgrib2 junk_netcdf.template -import_netcdf junk_netcdf.nc TMP_500mb "0:1:0:181:0:360" -grib_out junk_netcdf.grb

n=`../wgrib2/wgrib2 data/tmp_int.grb -var -lev -rpn "sto_1" -import_grib junk.grb -rpn "rcl_1:print_rms" | \
n=`../wgrib2/wgrib2 data/ref_simple_packing.grib2 -var -lev -rpn "sto_1" -import_grib junk_netcdf.grb -rpn "rcl_1:print_rms" | \
grep -v ":rpn=0:" | wc -l`

rm junk.grb junk.nc junk.template
rm junk_netcdf.grb junk_netcdf.nc junk_netcdf.template
if [ "$n" -eq 1 ] ; then
echo "success"
exit 0
Expand Down
10 changes: 5 additions & 5 deletions tests/run_wgrib2_netcdf4_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ set -e
set -x

# make template
../wgrib2/wgrib2 data/tmp_int.grb -rpn 0 -grib_out junk.template
../wgrib2/wgrib2 data/ref_simple_packing.grib2 -rpn 0 -grib_out junk_netcdf.template

# make netcdf file
../wgrib2/wgrib2 data/tmp_int.grb -nc4 -netcdf junk.nc
../wgrib2/wgrib2 data/ref_simple_packing.grib2 -nc4 -netcdf junk_netcdf.nc

# convert netcdf to grb
../wgrib2/wgrib2 junk.template -import_netcdf junk.nc TMP_500mb "0:1:0:181:0:360" -grib_out junk.grb
../wgrib2/wgrib2 junk_netcdf.template -import_netcdf junk_netcdf.nc TMP_500mb "0:1:0:181:0:360" -grib_out junk_netcdf.grb

n=`../wgrib2/wgrib2 data/tmp_int.grb -var -lev -rpn "sto_1" -import_grib junk.grb -rpn "rcl_1:print_rms" | \
n=`../wgrib2/wgrib2 data/ref_simple_packing.grib2 -var -lev -rpn "sto_1" -import_grib junk_netcdf.grb -rpn "rcl_1:print_rms" | \
grep -v ":rpn=0:" | wc -l`

rm junk.grb junk.nc junk.template
rm junk_netcdf.grb junk_netcdf.nc junk_netcdf.template
if [ "$n" -eq 1 ] ; then
echo "success"
exit 0
Expand Down

0 comments on commit b9fdbb6

Please sign in to comment.