Skip to content

Commit

Permalink
more grid types
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Jul 24, 2024
1 parent a2a0cb9 commit 2e37806
Show file tree
Hide file tree
Showing 8 changed files with 616 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ if (USE_IPOLATES)
copy_test_data(ref_new_grid_ncep_2.txt)
copy_test_data(ref_new_grid_ncep_3.txt)
copy_test_data(ref_new_grid_ncep_4.txt)
copy_test_data(ref_new_grid_ncep_45.txt)
copy_test_data(ref_new_grid_ncep_98.txt)
copy_test_data(ref_new_grid_ncep_126.txt)
copy_test_data(ref_new_grid_ncep_127.txt)
copy_test_data(ref_new_grid_ncep_128.txt)
copy_test_data(ref_new_grid_ncep_129.txt)
endif()
if (USE_AEC)
shell_test(run_wgrib2_aec_tests)
Expand Down
98 changes: 98 additions & 0 deletions tests/data/ref_new_grid_ncep_126.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
1:0:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-42.503:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-17.503
2:73139:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-68.2211:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-17.2211
3:146278:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-27.6889:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-13.6889
4:219417:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-58.6219:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-22.6219
5:283436:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-6.00193:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=0.998074
6:356575:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-26.8221:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-15.8221
7:420594:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-2.67741:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=10.3226
8:493733:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=7.26558:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-2.73442
9:557752:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-10.8744:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=8.12563
10:630891:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=11.4455:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-0.554543
11:694910:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-7.9589:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=9.0411
12:768049:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=13.0509:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=8.05088
13:832068:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=-2.99871:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=-7.99871
14:905207:grid_template=40:winds(N/S):
Gaussian grid: (384 x 190) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=95 #points=72960
lat 89.276713 to -89.276713
lon 0.000000 to 359.062500 by 0.937500
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89276713 to -89276713 lon=0 to 359062500:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl::lon=10.312500,lat=11.810982,i=41100,ix=12,iy=108,val=14.8462:lon=19.687500,lat=79.841419,i=68758,ix=22,iy=180,val=12.8462
98 changes: 98 additions & 0 deletions tests/data/ref_new_grid_ncep_127.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
1:0:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-41.8533:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-17.8533
2:295091:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-65.7432:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-16.7432
3:590182:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-27.6892:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-14.6892
4:885273:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-57.8751:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-21.8751
5:1180364:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-6.00474:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=0.995262
6:1475455:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-26.9561:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-15.9561
7:1733682:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-0.7798:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=10.2202
8:2028773:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=6.15591:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-2.84409
9:2287000:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-9.88248:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=8.11752
10:2582091:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=11.0449:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-0.955051
11:2840318:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-7.9535:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=9.0465
12:3135409:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=13.6152:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=8.6152
13:3393636:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=-2.99985:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=-7.99985
14:3688727:grid_template=40:winds(N/S):
Gaussian grid: (768 x 384) units 1e-06 input WE:NS output WE:SN
number of latitudes between pole-equator=192 #points=294912
lat 89.641648 to -89.641648
lon 0.000000 to 359.531250 by 0.468750
basic_ang=0 sub_angle=1000000 units=0.000001
unscaled lat=89641648 to -89641648 lon=0 to 359531250:12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl::lon=9.843750,lat=11.937571,i=166678,ix=22,iy=218,val=14.4508:lon=20.156250,lat=79.817676,i=278060,ix=44,iy=363,val=13.4508
Loading

0 comments on commit 2e37806

Please sign in to comment.