ECC-1853: GRIB: Lambert conformal longitudes greater than 360

This commit is contained in:
Shahram Najm 2024-06-28 15:04:47 +00:00
parent 482c26ef35
commit 0dfbe96e50
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}