Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Apr 29, 2024
1 parent 07ca02f commit 9c0de75
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ copy_test_data(ref_WW3_Regional_US_West_Coast_20220718_0000.grib2.inv)
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)
copy_test_data(ref_grid.gdaswave.t00z.wcoast.0p16.f000.grib2.txt)

# Run these shell tests.
shell_test(run_wgrib2_tests)
Expand Down
76 changes: 76 additions & 0 deletions tests/data/ref_grid.gdaswave.t00z.wcoast.0p16.f000.grib2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
1:0:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
2:15254:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
3:37897:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
4:53794:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
5:69064:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
6:79482:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
7:91308:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
8:108541:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
9:116716:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
10:128832:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
11:140848:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
12:151732:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
13:161021:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
14:173676:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
15:189425:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
16:205285:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
17:218263:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
18:237035:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
19:259223:grid_template=0:winds(N/S):
lat-lon grid:(241 x 151) units 1e-06 input WE:NS output WE:SN res 48
lat 50.000000 to 25.000000 by 0.166667
lon 210.000000 to 250.000000 by 0.166667 #points=36391
5 changes: 5 additions & 0 deletions tests/run_wgrib2_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@ cmp wind.txt data/ref_wind.gdas.t12z.pgrb2.1p00.anl.75r.grib2.inv
cat uv.txt
cmp uv.txt data/ref_uv.gdas.t12z.pgrb2.1p00.anl.75r.grib2.inv

# Tests printing of grid information
../wgrib2/wgrib2 data/gdaswave.t00z.wcoast.0p16.f000.grib2 -grid > grid_test.txt
cat grid_test.txt
cmp grid_test.txt data/ref_grid.gdaswave.t00z.wcoast.0p16.f000.grib2.txt

echo "*** SUCCESS!"
exit 0

0 comments on commit 9c0de75

Please sign in to comment.