Documentation for PISM, the Parallel Ice Sheet Model

This is an old revision of the document!


Some visualization advice

Using Matplotlib Basemap toolkit to plot over a map

To install Basemap, see http://matplotlib.sourceforge.net/basemap/doc/html/.

To use a Blue Marble background, you will also need the Python Imaging Library.

Below is an example plotting csurf (the magnitude of the horizontal ice velocity at the ice surface) using a logarithmic color scale and marking the 100 m/year contour in black:

basemap_ex1.py

The following alternative python code does nearly the same thing but uses netcdf4-python to read NetCDF:

basemap_ex2.py

This is the output of basemap_ex1.py:

doc_misc.1389654420.txt.gz ยท Last modified: 2014/01/13 23:07 by Ed Bueler
© 2020 by PISM | webmaster