Differences between revisions 3 and 6 (spanning 3 versions)
Revision 3 as of 2009-11-23 12:00:10
Size: 519
Editor: anonymous
Comment:
Revision 6 as of 2009-11-23 12:15:38
Size: 775
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
[[attachment:Map1.png]] The [[http://matplotlib.sourceforge.net/basemap/doc/html/| matplotlib basemap toolkit]] is a library for plotting 2D data on maps in Python.

{{attachment:Map1.png}}
Line 30: Line 32:

Set the correct path for using Basemap
{{{
module load R/2.7.0
module load Python/2.6.2
}}}

== GMT ==

Visualisation

Basemap

The matplotlib basemap toolkit is a library for plotting 2D data on maps in Python.

Map1.png

   1 from pylab import *
   2 from mpl_toolkits.basemap import Basemap
   3 
   4 m = Basemap(projection='ortho',lon_0=10.0,lat_0=45.0,resolution='l')
   5 m.bluemarble()
   6 
   7 lon,lat=10.0,53.5 # Hamburg
   8 
   9 x,y=m(lon,lat)
  10 m.plot(x,y,'r.')
  11     
  12 show()
  13 savefig('Map1.png',dpi=75)

Set the correct path for using Basemap

module load R/2.7.0
module load Python/2.6.2

GMT

LehreWiki: OpenSource2010/Lesson6 (last edited 2010-11-22 12:55:36 by anonymous)