Skip to content

Commit

Permalink
Rounding of GRIB grid
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Jun 5, 2024
1 parent dd9a374 commit ef4ae3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/climetlab/readers/grib/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ def resolution(self):
return self["gridName"]

if grid_type in ("regular_ll", "rotated_ll"):
x = self["DxInDegrees"]
y = self["DyInDegrees"]
x = round(self["DxInDegrees"] * 1_000_000) / 1_000_000
y = round(self["DyInDegrees"] * 1_000_000) / 1_000_000
assert x == y, (x, y)
return x

Expand Down

0 comments on commit ef4ae3d

Please sign in to comment.