Skip to content

Commit

Permalink
Merge pull request #168 from jswhit/issue167
Browse files Browse the repository at this point in the history
closes issue #167 (proj should be 'longlat' for gridType='regular_ll')
  • Loading branch information
jswhit authored Dec 19, 2020
2 parents faafe6b + c9e024d commit b03b0d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ version 2.1.2 (not yet released)
================================
* use pytest-mpl for image comparison tests.
* change license to MIT.
* changes gribmessage.projparams['proj'] from 'cyl' to 'longlat'
for non-projection projections (e.g. 'regular_ll'). Issue #167.

version 2.1.1 (git tag v2.1.1rel)
=================================
Expand Down
2 changes: 1 addition & 1 deletion pygrib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ cdef class gribmessage(object):
if not tolerate_badgrib: raise ValueError('unknown shape of the earth flag')

if self['gridType'] in ['reduced_gg','reduced_ll','regular_gg','regular_ll']: # regular lat/lon grid
projparams['proj']='cyl'
projparams['proj']='longlat'
elif self['gridType'] == 'polar_stereographic':
projparams['proj']='stere'
projparams['lat_ts']=self['latitudeWhereDxAndDyAreSpecifiedInDegrees']
Expand Down

0 comments on commit b03b0d6

Please sign in to comment.