Skip to content

Commit

Permalink
Fix grib decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvielamythepaut committed Nov 21, 2023
1 parent dae13d1 commit 44b871f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/decoders/GribDecoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 44b871f

Please sign in to comment.