Menu

Tree [r1844] / trunk / toolkits / basemap / examples /
 History

HTTPS access


File Date Author Commit
 500hgt.pickle 2005-02-01 jdh2358 [r905] Initial revision
 README 2005-10-04 jswhit [r1820] Replaced plotclimdiv.py with fillstates.py
 contour_demo.py 2005-09-30 jswhit [r1804] Use createfigure
 etopo20.pickle 2005-02-01 jdh2358 [r905] Initial revision
 fcover.dat 2005-04-16 jswhit [r1199] data file for quiver_demo.py
 fcstmaps.py 2005-09-30 jswhit [r1805] use createfigure
 fillstates.py 2005-10-04 jswhit [r1822] Fill states with colors proportional to pop den...
 huralll020.dbf 2005-08-14 jswhit [r1634] Added hurricane track example.
 huralll020.shp 2005-08-14 jswhit [r1634] Added hurricane track example.
 huralll020.shx 2005-08-14 jswhit [r1634] Added hurricane track example.
 hurrtracks.py 2005-10-01 jswhit [r1807] use createfigure
 ireland.py 2005-10-02 jswhit [r1812] rivers in blue.
 nytolondon.py 2005-10-02 jswhit [r1809] use createfigure
 ortho_demo.py 2005-09-30 jswhit [r1805] use createfigure
 plotmap.py 2005-10-02 jswhit [r1811] Use createfigure.
 plotmap_oo.py 2005-10-02 jswhit [r1814] New example.
 plotmap_pcolor.py 2005-10-02 jswhit [r1811] Use createfigure.
 quiver_demo.py 2005-09-30 jswhit [r1805] use createfigure
 randompoints.py 2005-10-01 jswhit [r1807] use createfigure
 simpletest.py 2005-09-30 jswhit [r1802] remove colors=None from contourf call
 simpletest_oo.py 2005-09-30 jswhit [r1802] remove colors=None from contourf call
 st99_d90.dbf 2005-10-04 jswhit [r1818] New example shows how to fill state polygons.
 st99_d90.shp 2005-10-04 jswhit [r1818] New example shows how to fill state polygons.
 st99_d90.shx 2005-10-04 jswhit [r1818] New example shows how to fill state polygons.
 test.py 2005-09-30 jswhit [r1806] use createfigure
 testgdal.py 2005-10-01 jswhit [r1807] use createfigure
 wiki_example.py 2005-10-07 jswhit [r1828] cleanups

Read Me

simpletest.py is the simple example given in the Basemap docstrings.

simpletest_oo.py is the same example, but using the "OO" interface (does
not import pylab).

test.py exercises all the available map projections by plotting the etopo 
20 minute bathymetry/topography data using imshow.

contour_demo.py demonstrates the use of filled contours with map projections.

plotmap.py is the example on the matplotlib 'screenshots' page (included
in test.py) which shows the ETOPO topography as an image on a Lambert
Conformal projection (using imshow).

plotmap_oo.py is a version of plotmap.py that does not import pylab - it uses
the matplotlib OO interface instead.

plotmap_pcolor.py plots the ETOPO topography using pcolor, on a Lambert 
Conformal and Orthographic projection.

nytolondon.py shows how to draw a great circle on a map (NY to London)

ireland.py draws maps of ireland with the crude, low and intermediate
resolution boundary datasets. It also shows how to pickle and re-load a
Basemap class instance (useful for high-res coastlines when you are plotting
the same small map region many times in different scripts).

quiver_demo.py shows how to plot wind vectors on a map.

randompoints.py demonstrates the use of scatter to plot randomly distributed
points on the earth.

ortho_demo.py demonstrates the orthographic projection - you can interactively
enter the reference lat/lon (the viewpoint of the satellite).

fcstmaps.py is a sample multi-panel plot.  Care is taken to preserve the aspect ratio of the map in each panel, and a common title and colorbar is created.  
Requires the opendap module (http://opendap.oceanografia.org) and an 
active internet connection to fetch the data to be plotted.

wiki_example.py is the example from the MatplotlibCookbook scipy wiki page
(http://www.scipy.org/wikis/topical_software/MatplotlibCookbook/wikipage_view).

fillstates.py is an example that shows how to draw 
and fill polygons (in this case U.S. States) from
and ESRI shapefile. 

hurrtrack.py plots hurricane tracks from shapefile data 
(from nationalatlas.gov).

testgdal.py is an example that shows how to plot raster geospatial data
using the gdal module (http://gdal.maptools.org).  Requires two data
files that must be downloaded manually, see docstrings for URLs.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.