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)
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)