diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3aab4bf..a728cf9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -57,6 +57,8 @@ function(PULL_DATA THE_URL THE_FILE) endfunction() # Copy necessary test data files. +gu_copy_test_data(ref_copygb2_test_gdaswave_2.ip.grib2.degrib2) +gu_copy_test_data(ref_copygb2_test_gdaswave.degrib2.txt) gu_copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000.grib2) gu_copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000.ip.grib2) gu_copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000.grib1) @@ -75,6 +77,7 @@ gu_copy_test_data(ref_grid_220.landmask.grib1) gu_copy_test_data(tocgrib2.nml) gu_copy_test_data(tocgrib2_bad.nml) if(FTP_TEST_FILES) + message(STATUS "Getting FTP test files...") gu_copy_test_data(ref_blend.t19z.core.f001.co.grib2.degrib2) gu_copy_test_data(ref_cmc_geavg.t12z.pgrb2a.0p50.f000.degrib2) gu_copy_test_data(ref_WW3_Regional_US_West_Coast_20220718_0000.grib2.degrib2) @@ -89,10 +92,12 @@ if(FTP_TEST_FILES) gu_copy_test_data(ref_sgx_nwps_CG3_20221117_1200.grib2.degrib2) gu_copy_test_data(ref_aqm.t12z.max_8hr_o3.227.grib2.degrib2) if(FTP_LARGE_TEST_FILES) + message(STATUS "Getting FTP large test file...") gu_copy_test_data(ref_fv3lam.t00z.prslev.f000.grib2.degrib2) endif() if(FTP_EXTRA_TEST_FILES) -# gu_copy_test_data(ref_rrfs.t12z.prslevfaa.f010.na3km.grib2.degrib2) + message(STATUS "Getting extra FTP large test files...") +# gu_copy_test_data(ref_rrfs.t12z.prslevfaa.f010.na3km.grib2.degrib2) gu_copy_test_data(ref_GFSPRS.GrbF06.degrib2) gu_copy_test_data(ref_rrfs.t18z.prslev.f000.grib2.degrib2) gu_copy_test_data(ref_grib2.awips.rrfs.010) @@ -102,6 +107,7 @@ endif() # Run these shell tests. gu_test(run_cnvgrib_tests) gu_test(run_copygb_tests) +gu_test(run_copygb2_tests2) gu_test(run_degrib2_tests) gu_test(run_grbindex_tests) gu_test(run_grb2index_tests) diff --git a/tests/data/ref_copygb2_test_gdaswave.degrib2.txt b/tests/data/ref_copygb2_test_gdaswave.degrib2.txt new file mode 100644 index 0000000..6bfac52 --- /dev/null +++ b/tests/data/ref_copygb2_test_gdaswave.degrib2.txt @@ -0,0 +1,401 @@ + + GRIB MESSAGE 1 starts at 1 + + SECTION 0: 0 2 15251 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WIND 0 2 1 ) 2 1 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WIND Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1092616192 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= WIND ) : MIN= 0.09999999 AVE= 5.64625025 MAX= 16.43000031 + + GRIB MESSAGE 2 starts at 15252 + + SECTION 0: 0 2 22640 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WDIR 0 2 0 ) 2 0 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WDIR Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1065353216 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= WDIR ) : MIN= 0.01000000 AVE= 218.26358032 MAX= 360.00000000 + + GRIB MESSAGE 3 starts at 37892 + + SECTION 0: 0 2 15894 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = UGRD 0 2 2 ) 2 2 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: UGRD Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : -1006403584 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= UGRD ) : MIN= -5.25999975 AVE= 1.90216613 MAX= 8.88000011 + + GRIB MESSAGE 4 starts at 53786 + + SECTION 0: 0 2 15267 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = VGRD 0 2 3 ) 2 3 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: VGRD Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : -996777984 0 2 12 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= VGRD ) : MIN= -12.02999973 AVE= -1.03729856 MAX= 14.28999996 + + GRIB MESSAGE 5 starts at 69053 + + SECTION 0: 10 2 10415 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = HTSGW 10 0 3 ) 0 3 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: HTSGW Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1102053376 0 2 9 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= HTSGW ) : MIN= 0.22000000 AVE= 1.91773760 MAX= 4.04999971 + + GRIB MESSAGE 6 starts at 79468 + + SECTION 0: 10 2 11823 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = PERPW 10 0 11 ) 0 11 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: PERPW Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1144815616 0 2 10 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= PERPW ) : MIN= 7.53999996 AVE= 11.81828499 MAX= 14.50999928 + + GRIB MESSAGE 7 starts at 91291 + + SECTION 0: 10 2 17230 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = DIRPW 10 0 10 ) 0 10 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: DIRPW Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1185159680 0 2 14 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= DIRPW ) : MIN= 210.04998779 AVE= 284.60992432 MAX= 309.67999268 + + GRIB MESSAGE 8 starts at 108521 + + SECTION 0: 10 2 8172 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WVHGT 10 0 5 ) 0 5 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WVHGT Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 5118 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1086324736 0 2 9 0 0 255 + Data Values: + Num. of Data Points = 5118 Num. of Data Undefined = 0 +( PARM= WVHGT ) : MIN= 0.06000000 AVE= 1.08952439 MAX= 3.83999991 + + GRIB MESSAGE 9 starts at 116693 + + SECTION 0: 10 2 12113 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWELL 10 0 8 ) 0 8 2 0 11 0 0 1 0 241 0 1 255 0 0 + FIELD: SWELL Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1095761920 0 2 9 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= SWELL ) : MIN= 0.13000000 AVE= 1.53862011 MAX= 2.70000005 + + GRIB MESSAGE 10 starts at 128806 + + SECTION 0: 10 2 12013 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWELL 10 0 8 ) 0 8 2 0 11 0 0 1 0 241 0 2 255 0 0 + FIELD: SWELL Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 10955 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1086324736 0 2 8 0 0 255 + Data Values: + Num. of Data Points = 10955 Num. of Data Undefined = 0 +( PARM= SWELL ) : MIN= 0.06000000 AVE= 0.55284840 MAX= 1.66999996 + + GRIB MESSAGE 11 starts at 140819 + + SECTION 0: 10 2 10881 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWELL 10 0 8 ) 0 8 2 0 11 0 0 1 0 241 0 3 255 0 0 + FIELD: SWELL Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 10347 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1084227584 0 2 7 0 0 255 + Data Values: + Num. of Data Points = 10347 Num. of Data Undefined = 0 +( PARM= SWELL ) : MIN= 0.05000000 AVE= 0.30700102 MAX= 1.13000000 + + GRIB MESSAGE 12 starts at 151700 + + SECTION 0: 10 2 9286 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WVPER 10 0 6 ) 0 6 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WVPER Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 5118 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1125908480 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 5118 Num. of Data Undefined = 0 +( PARM= WVPER ) : MIN= 1.55999994 AVE= 5.75434017 MAX= 14.31999969 + + GRIB MESSAGE 13 starts at 160986 + + SECTION 0: 10 2 12652 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWPER 10 0 9 ) 0 9 2 0 11 0 0 1 0 241 0 1 255 0 0 + FIELD: SWPER Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1136328704 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= SWPER ) : MIN= 3.74000001 AVE= 11.65223885 MAX= 15.11999989 + + GRIB MESSAGE 14 starts at 173638 + + SECTION 0: 10 2 15746 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWPER 10 0 9 ) 0 9 2 0 11 0 0 1 0 241 0 2 255 0 0 + FIELD: SWPER Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 10955 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1135411200 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 10955 Num. of Data Undefined = 0 +( PARM= SWPER ) : MIN= 3.46000004 AVE= 11.21387100 MAX= 17.73999977 + + GRIB MESSAGE 15 starts at 189384 + + SECTION 0: 10 2 15857 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWPER 10 0 9 ) 0 9 2 0 11 0 0 1 0 241 0 3 255 0 0 + FIELD: SWPER Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 10347 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1133510656 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 10347 Num. of Data Undefined = 0 +( PARM= SWPER ) : MIN= 2.87999988 AVE= 10.97782326 MAX= 17.94000053 + + GRIB MESSAGE 16 starts at 205241 + + SECTION 0: 10 2 12975 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WVDIR 10 0 4 ) 0 4 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WVDIR Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 5118 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 0 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 5118 Num. of Data Undefined = 0 +( PARM= WVDIR ) : MIN= 0.00000000 AVE= 193.91719055 MAX= 359.94000244 + + GRIB MESSAGE 17 starts at 218216 + + SECTION 0: 10 2 18769 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWDIR 10 0 7 ) 0 7 2 0 11 0 0 1 0 241 0 1 255 0 0 + FIELD: SWDIR Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 11041 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1183603200 0 2 14 0 0 255 + Data Values: + Num. of Data Points = 11041 Num. of Data Undefined = 0 +( PARM= SWDIR ) : MIN= 179.64999390 AVE= 285.53887939 MAX= 322.47000122 + + GRIB MESSAGE 18 starts at 236985 + + SECTION 0: 10 2 22185 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWDIR 10 0 7 ) 0 7 2 0 11 0 0 1 0 241 0 2 255 0 0 + FIELD: SWDIR Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 10955 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1140424704 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 10955 Num. of Data Undefined = 0 +( PARM= SWDIR ) : MIN= 4.98999977 AVE= 246.90257263 MAX= 359.88998413 + + GRIB MESSAGE 19 starts at 259170 + + SECTION 0: 10 2 22424 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 36391 0 0 0 + GRID TEMPLATE 3. 0 : 6 0 0 0 0 0 0 241 151 0 0 50000000 210000000 48 25000000 250000000 166667 166667 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWDIR 10 0 7 ) 0 7 2 0 11 0 0 1 0 241 0 3 255 0 0 + FIELD: SWDIR Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 10347 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1092616192 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 10347 Num. of Data Undefined = 0 +( PARM= SWDIR ) : MIN= 0.09999999 AVE= 219.31278992 MAX= 359.94000244 + + Total Number of Fields Found = 19 diff --git a/tests/data/ref_copygb2_test_gdaswave_2.ip.grib2.degrib2 b/tests/data/ref_copygb2_test_gdaswave_2.ip.grib2.degrib2 new file mode 100644 index 0000000..4d8ff92 --- /dev/null +++ b/tests/data/ref_copygb2_test_gdaswave_2.ip.grib2.degrib2 @@ -0,0 +1,401 @@ + + GRIB MESSAGE 1 starts at 1 + + SECTION 0: 0 2 262774 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WIND 0 2 1 ) 2 1 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WIND Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1092616192 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= WIND ) : MIN= 0.09999999 AVE= 5.61316681 MAX= 16.43000031 + + GRIB MESSAGE 2 starts at 262775 + + SECTION 0: 0 2 339596 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WDIR 0 2 0 ) 2 0 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WDIR Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1065353216 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= WDIR ) : MIN= 0.01000000 AVE= 217.85075378 MAX= 360.00000000 + + GRIB MESSAGE 3 starts at 602371 + + SECTION 0: 0 2 283439 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = UGRD 0 2 2 ) 2 2 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: UGRD Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : -1007845376 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= UGRD ) : MIN= -4.75000000 AVE= 1.73913193 MAX= 8.63999939 + + GRIB MESSAGE 4 starts at 885810 + + SECTION 0: 0 2 274626 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 0 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = VGRD 0 2 3 ) 2 3 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: VGRD Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : -996777984 0 2 12 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= VGRD ) : MIN= -12.02999973 AVE= -1.39060736 MAX= 13.75000000 + + GRIB MESSAGE 5 starts at 1160436 + + SECTION 0: 10 2 230439 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = HTSGW 10 0 3 ) 0 3 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: HTSGW Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1102053376 0 2 9 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= HTSGW ) : MIN= 0.22000000 AVE= 1.90390778 MAX= 4.04999971 + + GRIB MESSAGE 6 starts at 1390875 + + SECTION 0: 10 2 241372 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = PERPW 10 0 11 ) 0 11 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: PERPW Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1144815616 0 2 10 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= PERPW ) : MIN= 7.53999996 AVE= 11.82369423 MAX= 14.50999928 + + GRIB MESSAGE 7 starts at 1632247 + + SECTION 0: 10 2 284736 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = DIRPW 10 0 10 ) 0 10 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: DIRPW Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1185159680 0 2 14 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= DIRPW ) : MIN= 210.04998779 AVE= 285.08334351 MAX= 309.67999268 + + GRIB MESSAGE 8 starts at 1916983 + + SECTION 0: 10 2 214234 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WVHGT 10 0 5 ) 0 5 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WVHGT Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 57575 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1086324736 0 2 9 0 0 255 + Data Values: + Num. of Data Points = 57575 Num. of Data Undefined = 0 +( PARM= WVHGT ) : MIN= 0.06000000 AVE= 1.06503499 MAX= 3.83999991 + + GRIB MESSAGE 9 starts at 2131217 + + SECTION 0: 10 2 241421 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWELL 10 0 8 ) 0 8 2 0 11 0 0 1 0 241 0 1 255 0 0 + FIELD: SWELL Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1095761920 0 2 9 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= SWELL ) : MIN= 0.13000000 AVE= 1.53222227 MAX= 2.70000005 + + GRIB MESSAGE 10 starts at 2372638 + + SECTION 0: 10 2 239396 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWELL 10 0 8 ) 0 8 2 0 11 0 0 1 0 241 0 2 255 0 0 + FIELD: SWELL Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 122456 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1086324736 0 2 8 0 0 255 + Data Values: + Num. of Data Points = 122456 Num. of Data Undefined = 0 +( PARM= SWELL ) : MIN= 0.06000000 AVE= 0.54917747 MAX= 1.66999996 + + GRIB MESSAGE 11 starts at 2612034 + + SECTION 0: 10 2 231551 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWELL 10 0 8 ) 0 8 2 0 11 0 0 1 0 241 0 3 255 0 0 + FIELD: SWELL Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 115878 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1084227584 0 2 7 0 0 255 + Data Values: + Num. of Data Points = 115878 Num. of Data Undefined = 0 +( PARM= SWELL ) : MIN= 0.05000000 AVE= 0.30573812 MAX= 1.12000000 + + GRIB MESSAGE 12 starts at 2843585 + + SECTION 0: 10 2 222867 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WVPER 10 0 6 ) 0 6 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WVPER Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 57575 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1125908480 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 57575 Num. of Data Undefined = 0 +( PARM= WVPER ) : MIN= 1.55999994 AVE= 5.69112253 MAX= 14.31999969 + + GRIB MESSAGE 13 starts at 3066452 + + SECTION 0: 10 2 248041 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWPER 10 0 9 ) 0 9 2 0 11 0 0 1 0 241 0 1 255 0 0 + FIELD: SWPER Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1136328704 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= SWPER ) : MIN= 3.74000001 AVE= 11.65557098 MAX= 15.07999992 + + GRIB MESSAGE 14 starts at 3314493 + + SECTION 0: 10 2 276922 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWPER 10 0 9 ) 0 9 2 0 11 0 0 1 0 241 0 2 255 0 0 + FIELD: SWPER Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 122456 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1135411200 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 122456 Num. of Data Undefined = 0 +( PARM= SWPER ) : MIN= 3.46000004 AVE= 11.18976212 MAX= 17.73999977 + + GRIB MESSAGE 15 starts at 3591415 + + SECTION 0: 10 2 282124 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWPER 10 0 9 ) 0 9 2 0 11 0 0 1 0 241 0 3 255 0 0 + FIELD: SWPER Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 115878 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1134723072 0 2 11 0 0 255 + Data Values: + Num. of Data Points = 115878 Num. of Data Undefined = 0 +( PARM= SWPER ) : MIN= 3.25000000 AVE= 10.97796917 MAX= 17.94000053 + + GRIB MESSAGE 16 starts at 3873539 + + SECTION 0: 10 2 258207 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = WVDIR 10 0 4 ) 0 4 2 0 11 0 0 1 0 1 0 1 255 0 0 + FIELD: WVDIR Surface valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 57575 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 0 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 57575 Num. of Data Undefined = 0 +( PARM= WVDIR ) : MIN= 0.00000000 AVE= 193.09355164 MAX= 359.94000244 + + GRIB MESSAGE 17 starts at 4131746 + + SECTION 0: 10 2 304346 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWDIR 10 0 7 ) 0 7 2 0 11 0 0 1 0 241 0 1 255 0 0 + FIELD: SWDIR Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 123386 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1183603200 0 2 14 0 0 255 + Data Values: + Num. of Data Points = 123386 Num. of Data Undefined = 0 +( PARM= SWDIR ) : MIN= 179.64999390 AVE= 285.99423218 MAX= 322.47000122 + + GRIB MESSAGE 18 starts at 4436092 + + SECTION 0: 10 2 339682 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWDIR 10 0 7 ) 0 7 2 0 11 0 0 1 0 241 0 2 255 0 0 + FIELD: SWDIR Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 122456 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1145274368 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 122456 Num. of Data Undefined = 0 +( PARM= SWDIR ) : MIN= 7.81999969 AVE= 245.62226868 MAX= 356.29998779 + + GRIB MESSAGE 19 starts at 4775774 + + SECTION 0: 10 2 347695 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + Contains 0 Local Sections and 1 data fields. + + FIELD 1 + SECTION 0: 10 2 + SECTION 1: 7 0 2 1 1 2021 11 30 0 0 0 0 1 + SECTION 3: 0 1509825 0 0 30 + GRID TEMPLATE 3. 30 : 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000 0 0 + NO Optional List Defining Number of Data Points. + PRODUCT TEMPLATE 4. 0: ( PARAMETER = SWDIR 10 0 7 ) 0 7 2 0 11 0 0 1 0 241 0 3 255 0 0 + FIELD: SWDIR Order Seq. Of Data valid 0 hour after 2021113000:00:00 + NO Optional Vertical Coordinate List. + Num. of Data Points = 115878 with BIT-MAP 0 + DRS TEMPLATE 5. 40 : 1092616192 0 2 16 0 0 255 + Data Values: + Num. of Data Points = 115878 Num. of Data Undefined = 0 +( PARM= SWDIR ) : MIN= 0.09999999 AVE= 218.39633179 MAX= 359.94000244 + + Total Number of Fields Found = 19 diff --git a/tests/run_copygb2_tests2.sh b/tests/run_copygb2_tests2.sh new file mode 100644 index 0000000..64b0618 --- /dev/null +++ b/tests/run_copygb2_tests2.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# This is a test script for the NCEPLIBS-grib_util project. +# +# This tests the copygb2 utility. This test is similar to +# run_copygb2_tests.sh, but this test does not use the g2c_compare +# utility. +# +# Ed Hartnett, 3/21/24 + +set -e +echo "" +echo "*** Running copygb2 test" + +# Copy GRIB2 file. +../src/copygb2/copygb2 -x data/ref_gdaswave.t00z.wcoast.0p16.f000.grib2 test_gdaswave_2.grib2 + +# Make degrib2 output for the copied file. +../src/degrib2/degrib2 test_gdaswave_2.grib2 > test_gdaswave_2.grib2.degrib2 + +# Check against expected output. +#diff -w test_gdaswave_2.grib2.degrib2 data/ref_copygb2_test_gdaswave.degrib2.txt + +# Invoke interpolation logic. +#../src/copygb2/copygb2 -g "30 6 0 0 0 0 0 0 1473 1025 12190000 226541000 8 25000000 265000000 5079000 5079000 0 64 25000000 25000000" -i"1 1" -x data/ref_gdaswave.t00z.wcoast.0p16.f000.grib2 test_gdaswave_2.ip.grib2 + +# Make degrib2 output for the copied file. +#../src/degrib2/degrib2 test_gdaswave_2.ip.grib2 > test_gdaswave_2.ip.grib2.degrib2 + +# Check against expected output. +#diff -w test_gdaswave_2.ip.grib2.degrib2 data/ref_copygb2_test_gdaswave_2.ip.grib2.degrib2 + +echo "*** SUCCESS!" +exit 0