mirror of https://github.com/ecmwf/eccodes.git
ECC-1853: GRIB: Lambert conformal longitudes greater than 360
This commit is contained in:
parent
482c26ef35
commit
0dfbe96e50
|
@ -243,6 +243,7 @@ static int init_sphere(const grib_handle* h,
|
|||
const long index = i + j * nx;
|
||||
x = x0 + i * Dx;
|
||||
xy2lonlat(radius, n, f, rho0_bare, LoVInRadians, x, y, &lonDeg, &latDeg);
|
||||
lonDeg = normalise_longitude_in_degrees(lonDeg);
|
||||
self->lons[index] = lonDeg;
|
||||
self->lats[index] = latDeg;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue