Skip to content

Fix for GRIB data that is only present on one vertical level but has a 3D level type in meta data

Christoph Fischer requested to merge devel_issue_445 into master

Data which has a 3D level type in the GRIB meta data (e.g., isobaricInhPa) is currently always loaded as a 3D type (PRESSURE_LEVELS_3D). If a user only loads one GRIB file containing only one single pressure level, it is also saved as a 3D type due to the meta data, which crashes when trying to interpolate in the 2D field.

Expanded the check which is already present in the GRIB reader for MISC_LEVELS_3D to also check other read 3D fields if they are only present on a single level. Convert them to a 2D type then instead.

Fixes #445 (closed).

Merge request reports

Loading