Size: 692
Comment:
|
Size: 1584
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
= Visualising spatial data = | |
Line 6: | Line 7: |
= Visualising spatial data = | {{http://www.scipy.org/Cookbook/Matplotlib/Maps?action=AttachFile&do=get&target=basemap3c.png}} |
Line 10: | Line 12: |
== Map and projection basics == |
|
Line 11: | Line 16: |
'''References:''' * [[http://www.scipy.org/Cookbook/Matplotlib/Maps | Cookbook / Matplotlib / Maps]] * [[http://matplotlib.sourceforge.net/basemap/doc/html/ | Matplotlib Basemap Toolkit documentation]] |
There are different ways to generate maps with geographic information within Python. These are either based on the [[http://www.pyngl.ucar.edu/| PyNGL]] ([[http://www.pyngl.ucar.edu/Examples/gallery.shtml | Gallery]]) or [[http://matplotlib.sourceforge.net/basemap/doc/html/ | 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. |
Line 18: | Line 20: |
=== Define projection === {{http://matplotlib.sourceforge.net/basemap/doc/html/%5Fimages/merc.png}} {{http://matplotlib.sourceforge.net/basemap/doc/html/%5Fimages/sinu.png}} |
|
Line 20: | Line 24: |
=== Load some vector data === '''References:''' * [[http://www.scipy.org/Cookbook/Matplotlib/Maps|Cookbook / Matplotlib / Maps]] * [[http://matplotlib.sourceforge.net/basemap/doc/html/|Matplotlib Basemap Toolkit documentation]] |
Visualising spatial data
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
Load some vector data
References: