Skip to content

Commit

Permalink
Fix write support for regular Gaussian grids. Fixes #330
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell committed Feb 23, 2023
1 parent b2fc0ed commit 66fba83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Changelog for cfgrib
====================

0.9.10.4 (unreleased)
---------------------

- fix issue where xarrays derived from Gaussian grids did not have the correct
geometry when written back out as GRIB
See `#330 <https://github.com/ecmwf/cfgrib/issues/330>`_.


0.9.10.3 (2022-11-24)
---------------------

Expand Down
10 changes: 7 additions & 3 deletions cfgrib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,17 @@
"latitudeOfLastGridPointInDegrees",
],
"regular_gg": [
"Nx",
"N",
"Ni",
"Nj",
"iDirectionIncrementInDegrees",
"iScansNegatively",
"jScansPositively",
"jPointsAreConsecutive",
"longitudeOfFirstGridPointInDegrees",
"longitudeOfLastGridPointInDegrees",
"N",
"Ny",
"latitudeOfFirstGridPointInDegrees",
"latitudeOfLastGridPointInDegrees",
],
"rotated_gg": [
"Nx",
Expand Down

0 comments on commit 66fba83

Please sign in to comment.