#7103 closed defect (fixed)
grib file: wrongly positioned, or wrong (meta)data?
Reported by: | rduivenvoorde | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.2.3 |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
I have this grb file (http://duif.net/grb.zip) which in gdalinfo shows:
gdalinfo ECMWF_DET_RIVM_Set_01_2017082100_000_GB.grb Warning: Inside GRIB2Inventory, Message # 117 ERROR: Ran out of file reading SECT0 There were 20 trailing bytes in the file. Driver: GRIB/GRIdded Binary (.grb) Files: ECMWF_DET_RIVM_Set_01_2017082100_000_GB.grb Size is 720, 361 Coordinate System is: GEOGCS["Coordinate System imported from GRIB file", DATUM["unknown", SPHEROID["Sphere",6371229,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Origin = (180.250000000000000,90.250000000000000) Pixel Size = (0.500000000000000,-0.500000000000000) Corner Coordinates: Upper Left ( 180.2500000, 90.2500000) (180d15' 0.00"E, 90d15' 0.00"N) Lower Left ( 180.2500000, -90.2500000) (180d15' 0.00"E, 90d15' 0.00"S) Upper Right ( 540.250, 90.250) (Invalid angle, 90d15' 0.00"N) Lower Right ( 540.250, -90.250) (Invalid angle, 90d15' 0.00"S) Center ( 360.250, 0.000) (360d15' 0.00"E, 0d 0' 0.01"N) Band 1 Block=720x1 Type=Float64, ColorInterp=Undefined Description = 97[-] HYBL="Hybrid level"
Which seems a little odd? That is the upper right corner in a normal map... BUT in panoply it is viewed normal. See screendump: left is panoply, right is QGIS
Is this a data problem? Or a datum wrap arround problem.
(no need to hack something, if it is wrong data I'll try to contact the data owners)
Attachments (1)
Change History (5)
by , 6 years ago
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:4 by , 6 years ago
Milestone: | → 2.2.3 |
---|
Fixed. In trunk, the origin will now be shifted to -179.75 by default. In 2.2 branch, to avoid potential backward compatibility issues with code that would already deal with that oddity, you must define the GRIB_ADJUST_LONGITUDE_RANGE environment variable to YES.
left panoply, right QGIS + world