Revision: 4273
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4273&view=rev
Author: jswhit
Date: 2007-11-14 08:27:55 -0800 (Wed, 14 Nov 2007)
Log Message:
-----------
support for full resolution datasets.
Modified Paths:
--------------
trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py
Modified:
trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py
===================================================================
--- trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py
2007-11-14 16:17:55 UTC (rev 4272)
+++ trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py
2007-11-14 16:27:55 UTC (rev 4273)
@@ -139,7 +139,7 @@
but if they are not, the entire globe is plotted.
resolution - resolution of boundary database to use. Can be 'c' (crude),
- 'l' (low), 'i' (intermediate), 'h' (high), or None. Default is 'c'.
+ 'l' (low), 'i' (intermediate), 'h' (high), 'f' (full) or None.
If None, no boundary data will be read in (and class methods
such as drawcoastlines will raise an exception if invoked).
Resolution drops off by roughly 80%
@@ -150,8 +150,8 @@
Tools (http://gmt.soest.hawaii.edu).
area_thresh - coastline or lake with an area smaller than area_thresh
- in km^2 will not be plotted. Default 10000,1000,100,10 for resolution
- 'c','l','i','h'.
+ in km^2 will not be plotted. Default 10000,1000,100,10,1 for resolution
+ 'c','l','i','h','f'.
rsphere - radius of the sphere used to define map projection (default
6370997 meters, close to the arithmetic mean radius of the earth). If
@@ -671,7 +671,7 @@
elif resolution == 'f':
area_thresh = 1.
else:
- raise ValueError, "boundary resolution must be one of
'c','l','i' or 'h'"
+ raise ValueError, "boundary resolution must be one of
'c','l','i','h' or 'f'"
self.area_thresh = area_thresh
# define map boundary polygon (in lat/lon coordinates)
self._boundarypolyll, self._boundarypolyxy = self._getmapboundary()
@@ -733,10 +733,10 @@
def _readboundarydata(self,name):
msg = """
-Unable to open boundary dataset file. Only the 'crude', 'low'
-and 'intermediate' resolution datasets are installed by default. If you
-are requesting a 'high' resolution dataset, you need to download
-and install those files manually (see the basemap README for details)."""
+Unable to open boundary dataset file. Only the 'crude', 'low',
+'intermediate' and 'high' resolution datasets are installed by default. If you
+are requesting a 'full' resolution dataset, you need to download
+and install those files separately(see the basemap README for details)."""
try:
bdatfile =
open(os.path.join(basemap_datadir,name+'_'+self.resolution+'.dat'),'rb')
bdatmetafile =
open(os.path.join(basemap_datadir,name+'meta_'+self.resolution+'.dat'),'r')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins