Page 1 of 1

Wrong extent?

Posted: 18 Jan 2018 11:24
by pcav
GDAL reports a wrong extent for one of the bands as downloaded by Zygrib:
===
Band 1206 Block=109x1 Type=Float64, ColorInterp=Undefined
Description = 0[-] SFC (Ground or water surface)
Un-handled possible ensemble section center 58 subcenter 0
Warning 1: Band 1206 of GRIB dataset is 130x99, while the first band and dataset is 109x89. Georeferencing of band 1206 may be incorrect, and data access may be incomplete.
NoData Value=9999
Metadata:
GRIB_COMMENT=undefined [-]
GRIB_ELEMENT=var155
GRIB_FORECAST_SECONDS=345600 sec
GRIB_REF_TIME= 1515456000 sec UTC
GRIB_SHORT_NAME=0-SFC
GRIB_UNIT=[-]
GRIB_VALID_TIME= 1515801600 sec UTC
===
As a result, the grib file cannot be visualized correctly in QGIS. Any hint of what could be wrong here?
Thanks.

Re: Wrong extent?

Posted: 18 Jan 2018 11:29
by pcav
Moreover, CRS appears wrong:

GEOGCS["Coordinate System imported from GRIB file",
DATUM["unknown",
SPHEROID["Sphere",6367470,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]]
Origin = (1.950000000000000,50.049999999999997)
Pixel Size = (0.100000000000000,-0.100000000000000)
Corner Coordinates:
Upper Left ( 1.9500000, 50.0500000) ( 1d57' 0.00"E, 50d 3' 0.00"N)
Lower Left ( 1.9500000, 33.9500000) ( 1d57' 0.00"E, 33d57' 0.00"N)
Upper Right ( 20.0500000, 50.0500000) ( 20d 3' 0.00"E, 50d 3' 0.00"N)
Lower Right ( 20.0500000, 33.9500000) ( 20d 3' 0.00"E, 33d57' 0.00"N)
Center ( 11.0000000, 42.0000000) ( 11d 0' 0.00"E, 42d 0' 0.00"N)