diff --git a/ChangeLog b/ChangeLog index 3c80e270fd6a9f5ce038c6c5bf7dc5045d2a47b9..936af641127dd7c57c08d5a5c588676093d67f5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ * Version 2.5.1 released +2025-02-12 Uwe Schulzweida + + * GRIB_API: Handle LLAM as LCC + 2025-02-06 Uwe Schulzweida * Added obsolete functions vlistNgrids() and vlistNzaxis() for ParaView vtkCDIReader diff --git a/src/gribapi.h b/src/gribapi.h index 87e9a23e30fa062572fc3314a9e18d5a71d8fdf7..784eb940a8e64e75d1f69e54d2b8fa50645ed675 100644 --- a/src/gribapi.h +++ b/src/gribapi.h @@ -49,6 +49,7 @@ #define GRIB2_GTYPE_LATLON_ROTSTR 3 // Stretched and Rotated Latitude/longitude #define GRIB2_GTYPE_STERE 20 // Polar stereographic projection #define GRIB2_GTYPE_LCC 30 // Lambert conformal +#define GRIB2_GTYPE_LLAM 33 // Lambert LAM #define GRIB2_GTYPE_GAUSSIAN 40 // Gaussian latitude/longitude #define GRIB2_GTYPE_GAUSSIAN_ROT 41 // Rotated Gaussian latitude/longitude #define GRIB2_GTYPE_GAUSSIAN_STR 42 // Stretched Gaussian latitude/longitude diff --git a/src/gribapi_utilities.c b/src/gribapi_utilities.c index 068b7f4bbc062d838540238b83245fad48108df0..ee5b158633b7760dac7ff66825c1b92c778cda80 100644 --- a/src/gribapi_utilities.c +++ b/src/gribapi_utilities.c @@ -591,6 +591,7 @@ gribapiGetGridType(grib_handle *gh) case GRIB2_GTYPE_GAUSSIAN: return has_ni(gh) ? GRID_GAUSSIAN : GRID_GAUSSIAN_REDUCED; case GRIB2_GTYPE_LATLON_ROT: return GRID_PROJECTION; case GRIB2_GTYPE_LCC: return CDI_PROJ_LCC; + case GRIB2_GTYPE_LLAM: return CDI_PROJ_LCC; // Handle LLAM as LCC case GRIB2_GTYPE_STERE: return CDI_PROJ_STERE; case GRIB2_GTYPE_SPECTRAL: return GRID_SPECTRAL; case GRIB2_GTYPE_GME: return GRID_GME;