Merge pull request #87 from ecmwf/bugfix/grib_util_set_spec_lambert

grib_util_set_spec: gridType=lambert
This commit is contained in:
shahramn 2023-03-16 11:59:20 +00:00 committed by GitHub
commit 6fbd09b7f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -1184,11 +1184,16 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
COPY_SPEC_LONG(Ni); /* same as Nx */
COPY_SPEC_LONG(Nj); /* same as Ny */
/*
* Note: DxInMetres and DyInMetres
* should be 'double' and not integer. WMO GRIB2 uses millimetres!
* TODO: Add other keys like Latin1, LoV etc
*/
COPY_SPEC_LONG(iScansNegatively);
COPY_SPEC_LONG(jScansPositively);
COPY_SPEC_DOUBLE(latitudeOfSouthernPoleInDegrees);
COPY_SPEC_DOUBLE(longitudeOfSouthernPoleInDegrees);
COPY_SPEC_LONG(uvRelativeToGrid);
// Note: DxInMetres and DyInMetres
// should be 'double' and not integer. WMO GRIB2 uses millimetres!
// TODO: Add other keys like Latin1, LoV etc
break;
case GRIB_UTIL_GRID_SPEC_REDUCED_GG: