Skip to content

Commit

Permalink
updated test with new data files in complex packing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Apr 26, 2024
1 parent 1e407dd commit a7bb730
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ 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(ref_WW3_Regional_US_West_Coast_20220718_0000.grib2.inv)
copy_test_data(gdas.t12z.pgrb2.1p00.anl.75r)
copy_test_data(ref_wind.grb)
copy_test_data(ref_uv.grb)

Expand Down
Binary file added tests/data/gdas.t12z.pgrb2.1p00.anl.75r
Binary file not shown.
Binary file modified tests/data/ref_uv.grb
Binary file not shown.
Binary file modified tests/data/ref_wind.grb
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/run_wgrib2_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cmp npts.txt data/ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt
# Tests the calculation of wind speed, direction, and UGRD & VGRD components
cksum_wind_0=`../wgrib2/wgrib2 data/ref_wind.grb -text - | cksum`
cksum_uv_0=`../wgrib2/wgrib2 data/ref_uv.grb -text - | cksum`
../wgrib2/wgrib2 data/gdaswave.t00z.wcoast.0p16.f000.grib2 -wind_dir wind.grb -wind_speed wind.grb -match "(UGRD|VGRD)"
../wgrib2/wgrib2 data/gdas.t12z.pgrb2.1p00.anl.75r -wind_dir wind.grb -wind_speed wind.grb -match "(UGRD|VGRD)"
cksum_wind_1=`../wgrib2/wgrib2 wind.grb -text - | cksum`
if [ "$cksum_wind_0" != "$cksum_wind_1" ] ; then
echo "failed for computing wind speed and direction"
Expand Down

0 comments on commit a7bb730

Please sign in to comment.