Fix bug in handling of NCEP grids 228, 229, 230, and 234. #1253
Labels
MET: Library Code
priority: blocker
Blocker
requestor: NCAR
National Center for Atmospheric Research
type: bug
Fix something that is not working
Milestone
There is a bug when parsing the GRIB1 grid specification for NCEP grids 228, 229, 230, and 234.
These are all lat/lon grids where is data is stored from top to bottom. The min longitude is being stored as the "top" latitude instead of the "bottom" latitude:
================ GRID G228 ================
G228: latlon: lat 90.000000 to -90.000000 by 2.500000 nxny 10512 long 0.000000 to -2.500000 by 2.500000, (144 x 73) scan 64 mode 128 bdsgrid 1
ERROR : Projection: Lat/Lon Nx: 144 Ny: 73 lat_ll: 90.000 lon_ll: -0.000 delta_lat: 2.500 delta_lon: 2.500
ERROR : Projection: Lat/Lon Nx: 144 Ny: 73 lat_ll: -90.000 lon_ll: -0.000 delta_lat: 2.500 delta_lon: 2.500
================ GRID G229 ================
G229: latlon: lat 90.000000 to -90.000000 by 1.000000 nxny 65160 long 0.000000 to -1.000000 by 1.000000, (360 x 181) scan 64 mode 128 bdsgrid 1
ERROR : Projection: Lat/Lon Nx: 360 Ny: 181 lat_ll: 90.000 lon_ll: -0.000 delta_lat: 1.000 delta_lon: 1.000
ERROR : Projection: Lat/Lon Nx: 360 Ny: 181 lat_ll: -90.000 lon_ll: -0.000 delta_lat: 1.000 delta_lon: 1.000
================ GRID G230 ================
G230: latlon: lat 90.000000 to -90.000000 by 0.500000 nxny 259920 long 0.000000 to -0.500000 by 0.500000, (720 x 361) scan 64 mode 128 bdsgrid 1
ERROR : Projection: Lat/Lon Nx: 720 Ny: 361 lat_ll: 90.000 lon_ll: -0.000 delta_lat: 0.500 delta_lon: 0.500
ERROR : Projection: Lat/Lon Nx: 720 Ny: 361 lat_ll: -90.000 lon_ll: -0.000 delta_lat: 0.500 delta_lon: 0.500
================ GRID G234 ================
G234: latlon: lat 15.000000 to -45.000000 by 0.250000 nxny 16093 long -98.000000 to -65.000000 by 0.250000, (133 x 121) scan 64 mode 128 bdsgrid 1
ERROR : Projection: Lat/Lon Nx: 133 Ny: 121 lat_ll: 15.000 lon_ll: 98.000 delta_lat: 0.250 delta_lon: 0.250
ERROR : Projection: Lat/Lon Nx: 133 Ny: 241 lat_ll: -45.000 lon_ll: 98.000 delta_lat: 0.250 delta_lon: 0.250
The text was updated successfully, but these errors were encountered: