Differences between revisions 4 and 5
Revision 4 as of 2011-02-09 19:37:51
Size: 1584
Comment:
Revision 5 as of 2011-02-09 19:43:11
Size: 1909
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
== How to do it in Python == == How to do it in Python  ==
Line 21: Line 21:
The first step is the generation of an Basemap object which includes also the definition of the projection. Which projection to choose depends on your application. You might want to have a map with specific properties like e.g. equal area or equal angular and optimized for a specific region like e.g. the polar regions.

Visualising spatial data

http://www.scipy.org/Cookbook/Matplotlib/Maps?action=AttachFile&do=get&target=basemap3c.png

High level programming languages like e.g. Python, Matlab, R, IDL allow for the easy generation of maps by using specific modules. Alternatives to produce maps is special commerical or non-commercial software like e.g. ArcGIS, Generic mapping tool (GMT), ...

Map and projection basics

How to do it in Python

There are different ways to generate maps with geographic information within Python. These are either based on the PyNGL (Gallery) or Basemap packages. PyNGL is very flexible to handle and allows for the generation of high quality maps. However, it takes a while to generate a nice looking map in PyNGL. If you just want to visualise your data, Basemap might be a very good alternative in many cases.

Define projection

The first step is the generation of an Basemap object which includes also the definition of the projection. Which projection to choose depends on your application. You might want to have a map with specific properties like e.g. equal area or equal angular and optimized for a specific region like e.g. the polar regions.

http://matplotlib.sourceforge.net/basemap/doc/html/_images/merc.png http://matplotlib.sourceforge.net/basemap/doc/html/_images/sinu.png

Load some vector data

References:

LehreWiki: GenMaps (last edited 2014-01-10 15:00:43 by anonymous)