Skip to content

Commit

Permalink
Merge pull request #239 from austincrosswx/grids
Browse files Browse the repository at this point in the history
Add several NCEP grids
  • Loading branch information
AlysonStahl-NOAA authored Oct 28, 2024
2 parents 954e14d + 881b623 commit fb968b2
Show file tree
Hide file tree
Showing 10 changed files with 661 additions and 17 deletions.
8 changes: 8 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,15 @@ if (USE_IPOLATES)
copy_test_data(ref_new_grid_ncep_t1148.txt)
copy_test_data(ref_new_grid_ncep_t1534.txt)
copy_test_data(ref_mercator_grid.txt)
copy_test_data(ref_hrrr_grid.txt)
copy_test_data(ref_nam12_grid.txt)
copy_test_data(ref_new_grid_ncep_130.txt)
copy_test_data(ref_new_grid_ncep_132.txt)
copy_test_data(ref_new_grid_ncep_187.txt)
copy_test_data(ref_new_grid_ncep_197.txt)
copy_test_data(ref_new_grid_ncep_236.txt)
endif()

if (USE_AEC)
shell_test(run_wgrib2_aec_tests)
endif()
Expand Down
84 changes: 84 additions & 0 deletions tests/data/ref_hrrr_grid.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
1:0:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl:
2:1667187:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl:
3:3334374:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl:
4:5001561:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl:
5:6668748:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl:
6:8097792:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl:
7:9764979:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl:
8:11432166:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl:
9:13099353:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl:
10:14528397:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl:
11:15957441:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl:
12:17386485:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl:
13:18577387:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl:
14:19768289:grid_template=30:winds(N/S):
Lambert Conformal: (1799 x 1059) input WE:SN output WE:SN res 48
Lat1 21.138000 Lon1 237.280000 LoV 262.500000
LatD 38.500000 Latin1 38.500000 Latin2 38.500000
LatSP -90.000000 LonSP 0.000000
North Pole (1799 x 1059) Dx 3000.000000 m Dy 3000.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl:
42 changes: 42 additions & 0 deletions tests/data/ref_nam12_grid.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
1:0:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl:
2:855163:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl:
3:1710326:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl:
4:2565489:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl:
5:3420652:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl:
6:4275815:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl:
7:5130978:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl:
8:5986141:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl:
9:6841304:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl:
10:7696467:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl:
11:8551630:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl:
12:9284651:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl:
13:10017672:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl:
14:10750693:grid_template=20:winds(N/S):
polar stereographic grid: (1196 x 817) input WE:SN output WE:SN res 48
North pole lat1 -2.500000 lon1 217.500000 latD 60.000000 lonV 260.000000 dx 12679.000000 m dy 12679.000000 m:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl:
84 changes: 84 additions & 0 deletions tests/data/ref_new_grid_ncep_130.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
1:0:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl:
2:133177:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl:
3:266354:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl:
4:399531:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl:
5:532708:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl:
6:646887:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl:
7:780064:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl:
8:913241:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl:
9:1046418:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl:
10:1160597:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl:
11:1274776:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl:
12:1388955:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl:
13:1503134:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl:
14:1598314:grid_template=30:winds(N/S):
Lambert Conformal: (451 x 337) input WE:SN output WE:SN res 48
Lat1 16.281000 Lon1 233.862000 LoV 265.000000
LatD 25.000000 Latin1 25.000000 Latin2 25.000000
LatSP -90.000000 LonSP 0.000000
North Pole (451 x 337) Dx 13545.087000 m Dy 13545.087000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl:
Loading

0 comments on commit fb968b2

Please sign in to comment.