Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grid Definition values #39

Open
brentfraser opened this issue Mar 26, 2020 · 0 comments
Open

grid Definition values #39

brentfraser opened this issue Mar 26, 2020 · 0 comments

Comments

@brentfraser
Copy link

Would it be possible to have grib2json write out the Grid definition parameters? I've got grids from Canada (https://weather.gc.ca/grib/grib2_HRDPS_HR_e.html) that use "gridDefinitionTemplate":20 and I need the parameters to project the data for display.

For example, gdalinfo on the grid data shows:
PROJCS["unnamed",
GEOGCS["Coordinate System imported from GRIB file",
DATUM["unknown",
SPHEROID["Sphere",6371229,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Polar_Stereographic"],
PARAMETER["latitude_of_origin",60],
PARAMETER["central_meridian",280],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["Metre",1]]
Origin = (-2536345.337090836837888,-3246619.427676008082926)
Pixel Size = (2500.000000000000000,-2500.000000000000000)
Corner Coordinates:
Upper Left (-2536345.337,-3246619.428) (117d59'52.43"W, 51d46'26.78"N)
Lower Left (-2536345.337,-4671619.428) (108d29'55.33"W, 41d49' 9.75"N)
Upper Right ( -898845.337,-3246619.428) ( 95d28'30.20"W, 58d21'34.32"N)
Lower Right ( -898845.337,-4671619.428) ( 90d53'27.35"W, 46d22'57.36"N)
Center (-1717595.337,-3959119.428) (103d27' 9.99"W, 50d 5'54.16"N)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant