Skip to content

Commit b03b0d6

Browse files
authored
Merge pull request #168 from jswhit/issue167
closes issue #167 (proj should be 'longlat' for gridType='regular_ll')
2 parents faafe6b + c9e024d commit b03b0d6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changelog

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ version 2.1.2 (not yet released)
22
================================
33
* use pytest-mpl for image comparison tests.
44
* change license to MIT.
5+
* changes gribmessage.projparams['proj'] from 'cyl' to 'longlat'
6+
for non-projection projections (e.g. 'regular_ll'). Issue #167.
57

68
version 2.1.1 (git tag v2.1.1rel)
79
=================================

pygrib.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ cdef class gribmessage(object):
12881288
if not tolerate_badgrib: raise ValueError('unknown shape of the earth flag')
12891289

12901290
if self['gridType'] in ['reduced_gg','reduced_ll','regular_gg','regular_ll']: # regular lat/lon grid
1291-
projparams['proj']='cyl'
1291+
projparams['proj']='longlat'
12921292
elif self['gridType'] == 'polar_stereographic':
12931293
projparams['proj']='stere'
12941294
projparams['lat_ts']=self['latitudeWhereDxAndDyAreSpecifiedInDegrees']

0 commit comments

Comments
 (0)