Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Lat/Lon incorrect in polar stereographic grid #93

Open
moab360 opened this issue Nov 7, 2017 · 4 comments
Open

Lat/Lon incorrect in polar stereographic grid #93

moab360 opened this issue Nov 7, 2017 · 4 comments

Comments

@moab360
Copy link

moab360 commented Nov 7, 2017

Getting around to doing more testing with GribApi. The latest version still does not read Lat/Lon correctly from grib files. (comparing to wgrib2)

The bottom left of the grid has the correct lat/lon, but after that it appears they are incorrect
image

wgrib2 shows the bottom right
wgrib2.exe cloud_003 -s -ijlat 935 1
1:0:d=2017110700:TCDC:surface:3 hour fcst::(935,1),lon=282.212082,lat=17.342726,val=22

GribApi shows the bottom right of the grid to be at
lat=19.4115478973818, lon=278.646091411221

The gribs I'm using come from the Canadian Meteorological Center. Examples can be found here - http://dd.weather.gc.ca/model_gem_regional/10km/grib2/00/003/. Doesn't matter which you chose in that folder since they are all on the same grid.

Not sure how much control you have over the lat/lon locations coming out of the native portion of this solution, but figured I'd let you know it doesn't work with polar stereographic

@moab360
Copy link
Author

moab360 commented Nov 7, 2017

I should note, this is using GribApi 1.0.0-beta4

@jnyrup
Copy link
Collaborator

jnyrup commented Nov 7, 2017

This may have been resolved in ecCodes 2.5.0
https://software.ecmwf.int/wiki/display/ECC/ecCodes+version+2.5.0+released

GribApi.NET 1.0.0-beta4 uses ecCodes 2.4.1

@moab360
Copy link
Author

moab360 commented Nov 7, 2017

Looks like the following bug got fixed in ecCodes 2.5.0
[ECC-529] - grib_get_data for polar stereographic gets wrong lat and long
I don't have permissions to read more about the bug, but potentially this is the fix.

Is it possible for me to patch?

@0x1mason
Copy link
Member

This issue was moved to #3

@0x1mason 0x1mason reopened this Dec 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants