From 44b871f48f3469b3690c7cdfa17552ed3ad2dc6a Mon Sep 17 00:00:00 2001 From: Sylvie Lamy-Thepaut Date: Tue, 21 Nov 2023 17:34:23 +0000 Subject: [PATCH] Fix grib decoding --- src/decoders/GribDecoder.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/decoders/GribDecoder.cc b/src/decoders/GribDecoder.cc index 17478908..a794082e 100644 --- a/src/decoders/GribDecoder.cc +++ b/src/decoders/GribDecoder.cc @@ -1675,6 +1675,9 @@ string GribDecoder::representation() { current_handle_ = field_; // Now warning, no caching string proj = getstring("projTargetString", false, false); + // Here if proj contains latlong we ignore the setting . + if (proj.find("longlat") != std::string::npos) + proj = ""; return (proj.size()) ? "proj" : grid; }