mirror of https://github.com/ecmwf/eccodes.git
ECC-1795: Geoiterator for polar stereographic: Keys orientationOfTheGridInDegrees and LaDInDegrees decoded as integers
This commit is contained in:
parent
157dbfb192
commit
49c4ca3cbf
|
@ -123,7 +123,8 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args)
|
|||
double *lats, *lons; /* arrays for latitudes and longitudes */
|
||||
double lonFirstInDegrees, latFirstInDegrees, radius;
|
||||
double x, y, Dx, Dy;
|
||||
long nx, ny, centralLongitudeInDegrees, centralLatitudeInDegrees;
|
||||
long nx, ny;
|
||||
double centralLongitudeInDegrees, centralLatitudeInDegrees;
|
||||
long alternativeRowScanning, iScansNegatively, i, j;
|
||||
long jScansPositively, jPointsAreConsecutive, southPoleOnPlane;
|
||||
double centralLongitude, centralLatitude; /* in radians */
|
||||
|
@ -173,9 +174,9 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args)
|
|||
return ret;
|
||||
if ((ret = grib_get_long_internal(h, s_southPoleOnPlane, &southPoleOnPlane)) != GRIB_SUCCESS)
|
||||
return ret;
|
||||
if ((ret = grib_get_long_internal(h, s_centralLongitude, ¢ralLongitudeInDegrees)) != GRIB_SUCCESS)
|
||||
if ((ret = grib_get_double_internal(h, s_centralLongitude, ¢ralLongitudeInDegrees)) != GRIB_SUCCESS)
|
||||
return ret;
|
||||
if ((ret = grib_get_long_internal(h, s_centralLatitude, ¢ralLatitudeInDegrees)) != GRIB_SUCCESS)
|
||||
if ((ret = grib_get_double_internal(h, s_centralLatitude, ¢ralLatitudeInDegrees)) != GRIB_SUCCESS)
|
||||
return ret;
|
||||
if ((ret = grib_get_double_internal(h, s_Dx, &Dx)) != GRIB_SUCCESS)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue