Revision: 4483
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4483&view=rev
Author: jswhit
Date: 2007-11-28 07:50:58 -0800 (Wed, 28 Nov 2007)
Log Message:
-----------
fix for orthographic projection.
Modified Paths:
--------------
trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
Modified: trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
===================================================================
--- trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
2007-11-28 15:18:41 UTC (rev 4482)
+++ trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
2007-11-28 15:50:58 UTC (rev 4483)
@@ -688,7 +688,10 @@
lon_0=self.projparams['lon_0']
lat_0=self.projparams['lat_0']
re = self.projparams['R']
- maptran = pyproj.Proj(proj='stere',lon_0=lon_0,lat_0=lat_0,R=re)
+ # center of stereographic projection restricted
+ # to be one of 60 points on the sphere (every 45 deg lat/lon).
+ lon0 = 45*(int(lon_0)/45); lat0 = 45*(int(lat_0)/45)
+ maptran = pyproj.Proj(proj='stere',lon_0=lon0,lat0=lat_0,R=re)
# boundary polygon for orthographic projection
# in stereographic coorindates.
b = self._boundarypolyll.boundary
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins