Skip to content

Commit c4b4fdf

Browse files
author
Jeff Whitaker
committed
make sure latmin,latmax are correct when some points are outside
projection limb.
1 parent 2e6f75f commit c4b4fdf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
since version 1.0.6
22
-------------------
3+
* fix drawmeridians so meridians reach edge of plot when map projection region
4+
is *very* small (issue ???).
35
* update pyproj (with fixes to geodesic calculations).
46
* support for rotated pole transormation (projection = 'rotpole').
57
* fix warpimage with projection = 'hammer' (issue 100).

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,8 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
10471047
self.lonmax = self.urcrnrlon
10481048
else:
10491049
lons, lats = self.makegrid(1001,1001)
1050+
lats = ma.masked_where(lats > 1.e20,lats)
1051+
lons = ma.masked_where(lons > 1.e20,lons)
10501052
self.latmin = lats.min()
10511053
self.latmax = lats.max()
10521054
self.lonmin = lons.min()

0 commit comments

Comments
 (0)