File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ version 2.1.6 (not yet released)
3
3
* switch dynamic version handling from pkg_resources (in setuptools) to packaging
4
4
* expose 'redtoreg' function for interpolating reduced to full gaussian
5
5
gridded fields, optimize function for 50x speedup.
6
+ * Fix for issue #235 (`latlons` doesn't work when only a single latitude in grid).
6
7
7
8
version 2.1.5 release
8
9
=====================
Original file line number Diff line number Diff line change @@ -1539,7 +1539,8 @@ cdef class gribmessage(object):
1539
1539
lat1 = self [' latitudeOfFirstGridPointInDegrees' ]
1540
1540
lat2 = self [' latitudeOfLastGridPointInDegrees' ]
1541
1541
lats = self [' distinctLatitudes' ]
1542
- if lat2 < lat1 and lats[- 1 ] > lats[0 ]: lats = lats[::- 1 ]
1542
+ if self [' Nj' ] > 1 :
1543
+ if lat2 < lat1 and lats[- 1 ] > lats[0 ]: lats = lats[::- 1 ]
1543
1544
lons = self [' distinctLongitudes' ]
1544
1545
lons,lats = np.meshgrid(lons,lats)
1545
1546
elif self [' gridType' ] == ' reduced_gg' : # reduced global gaussian grid
You can’t perform that action at this time.
0 commit comments