Skip to content

Commit

Permalink
Correct checking for key in section.
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers committed Apr 19, 2024
1 parent 62ffad4 commit 44437da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iris_grib/_load_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def grid_definition_template_10(section, metadata):
# intersects the Earth
standard_parallel = section["LaD"] * _GRID_ACCURACY_IN_DEGREES

if section["orientationOfTheGrid"] and not np.isclose(
if "orientationOfTheGrid" in section and not np.isclose(
section["orientationOfTheGrid"], 0
):
# Could support in future by using the ObliqueMercator class.
Expand Down

0 comments on commit 44437da

Please sign in to comment.