From c3262f8750ca7de4dc05aeb6e90872596d1361b7 Mon Sep 17 00:00:00 2001 From: Austin Cross Date: Thu, 22 Aug 2024 22:41:20 +0000 Subject: [PATCH 1/5] Add NCEP grids - HRRR 3 km - NAM 12 km - 130 (RAP 13 km) - 132 (SREF 16 km) - 187 (RTMA 2.5 km) - 197 (CONUS NDFD 5 km) - 236 (CONUS 40 km) - Grid descriptions for NCEP grids 2, 3, 4, 45, 98, 126, 184, 194, 221, 230, 236, 242, 249 --- wgrib2/ncep_grids.c | 82 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 65 insertions(+), 17 deletions(-) diff --git a/wgrib2/ncep_grids.c b/wgrib2/ncep_grids.c index 7e1cc2ae..8c76c75a 100644 --- a/wgrib2/ncep_grids.c +++ b/wgrib2/ncep_grids.c @@ -51,6 +51,18 @@ void ncep_grids(const char **arg1, const char **arg2, const char **arg3) { *arg2 = "244.723:2345:2540"; *arg3 = "19.299:1597:2540"; return; + } /* HRRR 3 km */ + if (strcmp(*arg3,"hrrr") == 0) { + *arg1 = "lambert:262.5:38.5"; + *arg2 = "237.28:1799:3000"; + *arg3 = "21.138:1059:3000"; + return; + } /* NAM 12 km */ + if (strcmp(*arg3,"nam12") == 0) { + *arg1 = "nps:260:60"; + *arg2 = "217.5:1196:12679"; + *arg3 = "-2.5:817:12679"; + return; } if (strcmp(*arg3,"core") == 0) { @@ -74,37 +86,37 @@ void ncep_grids(const char **arg1, const char **arg2, const char **arg3) { else grid_no = atoi(*arg3); switch(grid_no) { - case 2: + case 2: /* Global 2.5 deg */ *arg1="latlon"; *arg2="0:144:2.5"; *arg3="90:73:-2.5"; break; - case 3: + case 3: /* Global 1 deg */ *arg1="latlon"; *arg2="0:360:1"; *arg3="90:181:-1"; break; - case 4: + case 4: /* Global 0.5 deg */ *arg1="latlon"; *arg2="0:720:0.5"; *arg3="90:361:-0.5"; break; - case 45: + case 45: /* Global 1.25 deg */ *arg1="latlon"; *arg2="0:288:1.25"; *arg3="90:145:-1.25"; break; - case 98: + case 98: /* t62 gaussian grid */ *arg1 = "gaussian"; *arg2 = "0:192:1.875"; *arg3 = "88.5419501372975:94"; break; - case 126: + case 126: /* t126 gaussian grid */ *arg1 = "gaussian"; *arg2 = "0:384:0.9375"; *arg3 = "89.2767128781058:190"; @@ -128,49 +140,85 @@ void ncep_grids(const char **arg1, const char **arg2, const char **arg3) { *arg3 = "89.8435135178685:880"; break; + case 130: /* NCEP 130 (RAP) */ + *arg1="lambert:265:25"; + *arg2="233.862:451:13545.087"; + *arg3="16.281:337:13545.087"; + break; + + case 132: /* NCEP 132 (SREF) */ + *arg1="lambert:265:25"; + *arg2="214.500:697:16231.74"; + *arg3="1.000:553:16231.74"; + break; + case 170: /* t170 gaussian grid */ *arg1 = "gaussian"; *arg2 = "0:512:0.703125"; *arg3 = "89.4628215685774:256"; break; - case 173: + case 173: /* Global 0.5 degree */ *arg1 = "latlon"; *arg2 = "0.041666666667:4320:0.083333333333"; *arg3 = "89.95833333333:2160:-0.083333333333"; break; - case 184: - *arg1 = "lambert:265:25"; - *arg2 = "238.446:2145:2540"; - *arg3 = "20.192:1377:2540"; - break; + case 184: /* CONUS NDFD 2.5 km */ + *arg1 = "lambert:265:25"; + *arg2 = "238.446:2145:2540"; + *arg3 = "20.192:1377:2540"; + break; + + case 187: /* CONUS RTMA 2.5 km */ + *arg1 = "lambert:265:25"; + *arg2 = "238.446:2145:2540"; + *arg3 = "20.192:1597:2540"; + break; - case 194: + case 194: /* Puerto Rico NDFD 3 km Mercator */ *arg1 = "mercator:20"; *arg2 = "284.5:544:2500:297.491"; *arg3 = "15:310:2500:22.005"; break; - case 221: + case 196: /* Hawaii NDFD 2.5 km Mercator */ + *arg1 = "mercator:20"; + *arg2 = "198.475:321:2500:206.131"; + *arg3 = "18.073:225:2500:23.088"; + break; + + case 197: /* CONUS NDFD 5 km */ + *arg1="lambert:265:25"; + *arg2="238.445999:1073:5079"; + *arg3="20.191999:689:5079"; + break; + + case 221: /* North America 32 km Lambert (NAM, SREF, RAP) */ *arg1="lambert:253:50"; *arg2="214.5:349:32463.41"; *arg3="1:277:32463.41"; break; - case 230: + case 230: /* Global 0.5 deg */ *arg1="latlon"; *arg2="0:720:0.5"; *arg3="90:361:-0.5"; break; - case 242: + case 236: /* CONUS 40 km */ + *arg1="lambert:265:25"; + *arg2="233.862:151:40635.25"; + *arg3="16.281:113:40635.25"; + break; + + case 242: /* Alaska NDFD 11.25 km */ *arg1="nps:225:60"; *arg2="187:553:11250"; *arg3="30:425:11250"; break; - case 249: + case 249: /* Alaska 10 km polar stereographic */ *arg1="nps:210.0:60.0"; *arg2="188.4:367:9867.89"; *arg3="45.4:343:9867.89"; From aa01294f097c42e963ae8372248d868818d43b58 Mon Sep 17 00:00:00 2001 From: Austin Cross Date: Thu, 22 Aug 2024 23:14:06 +0000 Subject: [PATCH 2/5] Mixed tab indent fix --- wgrib2/ncep_grids.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/wgrib2/ncep_grids.c b/wgrib2/ncep_grids.c index 8c76c75a..ddb8fc81 100644 --- a/wgrib2/ncep_grids.c +++ b/wgrib2/ncep_grids.c @@ -164,17 +164,17 @@ void ncep_grids(const char **arg1, const char **arg2, const char **arg3) { *arg3 = "89.95833333333:2160:-0.083333333333"; break; - case 184: /* CONUS NDFD 2.5 km */ - *arg1 = "lambert:265:25"; - *arg2 = "238.446:2145:2540"; - *arg3 = "20.192:1377:2540"; - break; - - case 187: /* CONUS RTMA 2.5 km */ - *arg1 = "lambert:265:25"; - *arg2 = "238.446:2145:2540"; - *arg3 = "20.192:1597:2540"; - break; + case 184: /* CONUS NDFD 2.5 km */ + *arg1 = "lambert:265:25"; + *arg2 = "238.446:2145:2540"; + *arg3 = "20.192:1377:2540"; + break; + + case 187: /* CONUS RTMA 2.5 km */ + *arg1 = "lambert:265:25"; + *arg2 = "238.446:2145:2540"; + *arg3 = "20.192:1597:2540"; + break; case 194: /* Puerto Rico NDFD 3 km Mercator */ *arg1 = "mercator:20"; From 10ffdf52160b7b2e569b2cc29386b81f4221d18b Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:12:57 -0700 Subject: [PATCH 3/5] tests --- tests/CMakeLists.txt | 8 +++++++ tests/run_ipolates_tests.sh | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e8a0ee3b..0b665a8d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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() diff --git a/tests/run_ipolates_tests.sh b/tests/run_ipolates_tests.sh index a3a53fe9..221be2a6 100644 --- a/tests/run_ipolates_tests.sh +++ b/tests/run_ipolates_tests.sh @@ -219,5 +219,47 @@ echo "*** Testing conversion to Mercator grid" touch mercator_grid.txt diff -w mercator_grid.txt data/ref_mercator_grid.txt +echo "*** Testing conversion to HRRR grid" +../wgrib2/wgrib2 new_grid_test.grb -new_grid_winds earth -new_grid ncep grid hrrr new_grid_junk.grb +../wgrib2/wgrib2 new_grid_junk.grb -grid -v2 -s > hrrr_grid.txt +touch hrrr_grid.txt +diff -w hrrr_grid.txt data/ref_hrrr_grid.txt + +echo "*** Testing conversion to NAM 12 grid" +../wgrib2/wgrib2 new_grid_test.grb -new_grid_winds earth -new_grid ncep grid nam12 new_grid_junk.grb +../wgrib2/wgrib2 new_grid_junk.grb -grid -v2 -s > nam12_grid.txt +touch nam12_grid.txt +diff -w nam12_grid.txt data/ref_nam12_grid.txt + +echo "*** Testing conversion to NCEP grid definition 130" +../wgrib2/wgrib2 new_grid_test.grb -new_grid_winds earth -new_grid ncep grid 130 new_grid_junk.grb +../wgrib2/wgrib2 new_grid_junk.grb -grid -v2 -s > ncep_grid_130.txt +touch ncep_grid_130.txt +diff -w ncep_grid_130.txt data/ref_new_grid_ncep_130.txt + +echo "*** Testing conversion to NCEP grid definition 132" +../wgrib2/wgrib2 new_grid_test.grb -new_grid_winds earth -new_grid ncep grid 132 new_grid_junk.grb +../wgrib2/wgrib2 new_grid_junk.grb -grid -v2 -s > ncep_grid_132.txt +touch ncep_grid_132.txt +diff -w ncep_grid_132.txt data/ref_new_grid_ncep_132.txt + +echo "*** Testing conversion to NCEP grid definition 187" +../wgrib2/wgrib2 new_grid_test.grb -new_grid_winds earth -new_grid ncep grid 187 new_grid_junk.grb +../wgrib2/wgrib2 new_grid_junk.grb -grid -v2 -s > ncep_grid_187.txt +touch ncep_grid_187.txt +diff -w ncep_grid_187.txt data/ref_new_grid_ncep_187.txt + +echo "*** Testing conversion to NCEP grid definition 197" +../wgrib2/wgrib2 new_grid_test.grb -new_grid_winds earth -new_grid ncep grid 197 new_grid_junk.grb +../wgrib2/wgrib2 new_grid_junk.grb -grid -v2 -s > ncep_grid_197.txt +touch ncep_grid_197.txt +diff -w ncep_grid_197.txt data/ref_new_grid_ncep_197.txt + +echo "*** Testing conversion to NCEP grid definition 236" +../wgrib2/wgrib2 new_grid_test.grb -new_grid_winds earth -new_grid ncep grid 236 new_grid_junk.grb +../wgrib2/wgrib2 new_grid_junk.grb -grid -v2 -s > ncep_grid_236.txt +touch ncep_grid_236.txt +diff -w ncep_grid_236.txt data/ref_new_grid_ncep_236.txt + echo "*** SUCCESS!" exit 0 From 64c7550420959770c73dd6ee4d610277418dc112 Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:46:20 -0700 Subject: [PATCH 4/5] test data --- tests/data/ref_hrrr_grid.txt | 84 ++++++++++++++++++++++++++++++++ tests/data/ref_nam12_grid.txt | 42 ++++++++++++++++ tests/data/ref_ncep_grid_130.txt | 84 ++++++++++++++++++++++++++++++++ tests/data/ref_ncep_grid_132.txt | 84 ++++++++++++++++++++++++++++++++ tests/data/ref_ncep_grid_187.txt | 84 ++++++++++++++++++++++++++++++++ tests/data/ref_ncep_grid_197.txt | 84 ++++++++++++++++++++++++++++++++ tests/data/ref_ncep_grid_236.txt | 84 ++++++++++++++++++++++++++++++++ 7 files changed, 546 insertions(+) create mode 100644 tests/data/ref_hrrr_grid.txt create mode 100644 tests/data/ref_nam12_grid.txt create mode 100644 tests/data/ref_ncep_grid_130.txt create mode 100644 tests/data/ref_ncep_grid_132.txt create mode 100644 tests/data/ref_ncep_grid_187.txt create mode 100644 tests/data/ref_ncep_grid_197.txt create mode 100644 tests/data/ref_ncep_grid_236.txt diff --git a/tests/data/ref_hrrr_grid.txt b/tests/data/ref_hrrr_grid.txt new file mode 100644 index 00000000..e845f8f0 --- /dev/null +++ b/tests/data/ref_hrrr_grid.txt @@ -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: diff --git a/tests/data/ref_nam12_grid.txt b/tests/data/ref_nam12_grid.txt new file mode 100644 index 00000000..c2593a78 --- /dev/null +++ b/tests/data/ref_nam12_grid.txt @@ -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: diff --git a/tests/data/ref_ncep_grid_130.txt b/tests/data/ref_ncep_grid_130.txt new file mode 100644 index 00000000..a4401140 --- /dev/null +++ b/tests/data/ref_ncep_grid_130.txt @@ -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: diff --git a/tests/data/ref_ncep_grid_132.txt b/tests/data/ref_ncep_grid_132.txt new file mode 100644 index 00000000..1163549c --- /dev/null +++ b/tests/data/ref_ncep_grid_132.txt @@ -0,0 +1,84 @@ +1:0:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +2:337449:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +3:674898:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +4:1012347:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +5:1349796:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +6:1687245:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +7:2024694:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +8:2362143:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +9:2699592:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +10:2988861:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +11:3326310:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +12:3615579:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +13:3904848:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: +14:4194117:grid_template=30:winds(N/S): + Lambert Conformal: (697 x 553) input WE:SN output WE:SN res 48 + Lat1 1.000000 Lon1 214.500000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (697 x 553) Dx 16231.740000 m Dy 16231.740000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: diff --git a/tests/data/ref_ncep_grid_187.txt b/tests/data/ref_ncep_grid_187.txt new file mode 100644 index 00000000..0cc52b66 --- /dev/null +++ b/tests/data/ref_ncep_grid_187.txt @@ -0,0 +1,84 @@ +1:0:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +2:2997558:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +3:5995116:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +4:8992674:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +5:11990232:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +6:14559594:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +7:17557152:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +8:20554710:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +9:23552268:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +10:26121630:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +11:28690992:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +12:31260354:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +13:33829716:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: +14:35970883:grid_template=30:winds(N/S): + Lambert Conformal: (2145 x 1597) input WE:SN output WE:SN res 48 + Lat1 20.192000 Lon1 238.446000 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (2145 x 1597) Dx 2540.000000 m Dy 2540.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: diff --git a/tests/data/ref_ncep_grid_197.txt b/tests/data/ref_ncep_grid_197.txt new file mode 100644 index 00000000..5b8f5684 --- /dev/null +++ b/tests/data/ref_ncep_grid_197.txt @@ -0,0 +1,84 @@ +1:0:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +2:647073:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +3:1294146:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +4:1941219:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +5:2588292:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +6:3142953:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +7:3790026:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +8:4437099:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +9:5084172:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +10:5638833:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +11:6193494:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +12:6748155:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +13:7302816:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: +14:7765065:grid_template=30:winds(N/S): + Lambert Conformal: (1073 x 689) input WE:SN output WE:SN res 48 + Lat1 20.191999 Lon1 238.445999 LoV 265.000000 + LatD 25.000000 Latin1 25.000000 Latin2 25.000000 + LatSP -90.000000 LonSP 0.000000 + North Pole (1073 x 689) Dx 5079.000000 m Dy 5079.000000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: diff --git a/tests/data/ref_ncep_grid_236.txt b/tests/data/ref_ncep_grid_236.txt new file mode 100644 index 00000000..b02f2f04 --- /dev/null +++ b/tests/data/ref_ncep_grid_236.txt @@ -0,0 +1,84 @@ +1:0:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +2:15119:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,1) lvl2=(255,missing):0.01 mb:anl: +3:30238:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +4:45357:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,2) lvl2=(255,missing):0.02 mb:anl: +5:60476:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +6:73462:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,4) lvl2=(255,missing):0.04 mb:anl: +7:88581:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +8:103700:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,7) lvl2=(255,missing):0.07 mb:anl: +9:118819:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +10:131805:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,10) lvl2=(255,missing):0.1 mb:anl: +11:144791:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +12:157777:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,20) lvl2=(255,missing):0.2 mb:anl: +13:170763:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:UGRD U-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: +14:181616:grid_template=30:winds(N/S): + Lambert Conformal: (151 x 113) 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 (151 x 113) Dx 40635.250000 m Dy 40635.250000 m :12Z26apr2024:VGRD V-Component of Wind [m/s]:lvl1=(100,40) lvl2=(255,missing):0.4 mb:anl: From 636e656afdd697b775c8959db084432e2d66990d Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:51:33 -0700 Subject: [PATCH 5/5] rename files --- tests/data/{ref_ncep_grid_130.txt => ref_new_grid_ncep_130.txt} | 0 tests/data/{ref_ncep_grid_132.txt => ref_new_grid_ncep_132.txt} | 0 tests/data/{ref_ncep_grid_187.txt => ref_new_grid_ncep_187.txt} | 0 tests/data/{ref_ncep_grid_197.txt => ref_new_grid_ncep_197.txt} | 0 tests/data/{ref_ncep_grid_236.txt => ref_new_grid_ncep_236.txt} | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename tests/data/{ref_ncep_grid_130.txt => ref_new_grid_ncep_130.txt} (100%) rename tests/data/{ref_ncep_grid_132.txt => ref_new_grid_ncep_132.txt} (100%) rename tests/data/{ref_ncep_grid_187.txt => ref_new_grid_ncep_187.txt} (100%) rename tests/data/{ref_ncep_grid_197.txt => ref_new_grid_ncep_197.txt} (100%) rename tests/data/{ref_ncep_grid_236.txt => ref_new_grid_ncep_236.txt} (100%) diff --git a/tests/data/ref_ncep_grid_130.txt b/tests/data/ref_new_grid_ncep_130.txt similarity index 100% rename from tests/data/ref_ncep_grid_130.txt rename to tests/data/ref_new_grid_ncep_130.txt diff --git a/tests/data/ref_ncep_grid_132.txt b/tests/data/ref_new_grid_ncep_132.txt similarity index 100% rename from tests/data/ref_ncep_grid_132.txt rename to tests/data/ref_new_grid_ncep_132.txt diff --git a/tests/data/ref_ncep_grid_187.txt b/tests/data/ref_new_grid_ncep_187.txt similarity index 100% rename from tests/data/ref_ncep_grid_187.txt rename to tests/data/ref_new_grid_ncep_187.txt diff --git a/tests/data/ref_ncep_grid_197.txt b/tests/data/ref_new_grid_ncep_197.txt similarity index 100% rename from tests/data/ref_ncep_grid_197.txt rename to tests/data/ref_new_grid_ncep_197.txt diff --git a/tests/data/ref_ncep_grid_236.txt b/tests/data/ref_new_grid_ncep_236.txt similarity index 100% rename from tests/data/ref_ncep_grid_236.txt rename to tests/data/ref_new_grid_ncep_236.txt