Skip to content

Commit

Permalink
Merge pull request #271 from AlysonStahl-NOAA/as_wgrib
Browse files Browse the repository at this point in the history
Using most recent version of wgrib utility
  • Loading branch information
AlysonStahl-NOAA authored Oct 28, 2024
2 parents fb968b2 + fbfa932 commit 017bab2
Show file tree
Hide file tree
Showing 5 changed files with 10,362 additions and 10,338 deletions.
8 changes: 7 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ copy_test_data(ref_new_grid_gdt_32769.grib2)
copy_test_data(png_4bits.png)
copy_test_data(large_png.grb2)


# Run these shell tests.
shell_test(run_wgrib2_tests)
shell_test(run_wgrib2_rpn_tests)
Expand All @@ -126,6 +125,13 @@ if (USE_NETCDF)
copy_test_data(ref_tablenc.gdas.t12z.pgrb2.1p00.anl.75r.grib2.txt)
copy_test_data(nctab.table)
endif()

if (BUILD_WGRIB)
shell_test(run_wgrib_tests)
copy_test_data(ref_ecmwf.jul.grb1)
copy_test_data(ref_ecmwf.jul.grb1.inv)
endif()

if (USE_IPOLATES)
shell_test(run_ipolates_tests)
copy_test_data(ref_new_grid_gdas.t12z.pgrb2.1p00.anl.75r.grib2.txt)
Expand Down
Binary file added tests/data/ref_ecmwf.jul.grb1
Binary file not shown.
1 change: 1 addition & 0 deletions tests/data/ref_ecmwf.jul.grb1.inv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1:0:d=21060500:TP:kpds5=228:kpds6=1:kpds7=0:TR=0:P1=12:P2=0:TimeU=1:sfc:12hr fcst:type=Perturbed forecast 9:NAve=0
15 changes: 15 additions & 0 deletions tests/run_wgrib_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# This script runs tests for the wgrib utility.
# Requires BUILD_WGRIB=ON
#
# Alyson Stahl, 1-/18/24

set -e
echo ""
echo "*** Running wgrib tests"

../wgrib/wgrib data/ref_ecmwf.jul.grb1 > wgrib_junk.txt
diff -w wgrib_junk.txt data/ref_ecmwf.jul.grb1.inv

echo "*** SUCCESS!"
exit 0
Loading

0 comments on commit 017bab2

Please sign in to comment.