forked from matplotlib/basemap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
133 lines (98 loc) · 4.07 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
**Descripton**
basemap - plot on map projections (with coastlines and political boundaries)
using matplotlib.
**Requirements**
python 2.5 (or higher)
matplotlib
numpy
The GEOS (Geometry Engine - Open Source) library (version 3.1.1 or higher).
Source code is included in the geos-3.3.3 directory.
PIL (http://pythonware.com/products/pil) is optional (only
needed for Basemap warpimage and bluemarble methods).
On linux, if your python was installed via a package management system, make
sure the corresponding "python-dev" package is also installed. Otherwise, you
may not have the python header (Python.h), which is required to build python
C extensions.
**Copyright**
source code from proj.4 (http://proj.maptools.org) is included in the
'src' directory under the terms given in LICENSE_proj4.
source code from geographiclib (http://pypi.python.org/pypi/geographiclib)
is included in the 'lib/mpl_toolkits/basemap' directory under the terms
given in LICENSE_geographiclib.
source code for the GEOS library is
included in the 'geos-3.3.3' directory under the terms given in
LICENSE_geos.
shapefile.py from pyshp.googlecode.com is included under the terms given
in LICENSE_pyshp.
the land-sea mask, coastline, lake, river and political boundary data are extracted
from datasets provided with the Generic Mapping Tools
(http://gmt.soest.hawaii.edu)
and are included under the terms given in LICENSE_data.
Everything else (including src/_proj.pyx,,
src/_proj.c, src/_geos.c, and src/_geos.pyx):
copyright (c) 2011 by Jeffrey Whitaker.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notices appear in all copies and that
both the copyright notices and this permission notice appear in
supporting documentation.
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
**Documentation**
see http://matplotlib.github.com/basemap/
see scripts in 'examples' directory for example usage.
read the FAQ and/or email the matplotlib-users mailing list if
you have problems or questions.
**Install**
0) Install pre-requisite python modules numpy and matplotlib.
1) Then download basemap-X.Y.Z.tar.gz (approx 100 mb) from
the sourceforge download site, unpack and cd to basemap-X.Y.Z.
2) Install the GEOS library. If you already have it on your
system, just set the environment variable GEOS_DIR to point to the location
of libgeos_c and geos_c.h (if libgeos_c is in /usr/local/lib and
geos_c.h is in /usr/local/include, set GEOS_DIR to /usr/local).
Then go to step (3). If you don't have it, you can build it from
the source code included with basemap by following these steps:
> cd geos-3.3.3
> export GEOS_DIR=<where you want the libs and headers to go>
A reasonable choice on a Unix-like system is /usr/local, or
if you don't have permission to write there, your home directory.
> ./configure --prefix=$GEOS_DIR
> make; make install
3) cd back to the top level basemap directory (basemap-X.Y.Z) and
run the usual 'python setup.py install'. Check your installation
by running "from mpl_toolkits.basemap import Basemap" at the python
prompt.
4) To test, cd to the examples directory and run 'python simpletest.py'.
To run all the examples (except those that have extra dependencies
or require an internet connection), execute 'python run_all.py'.
**Contact**
Jeff Whitaker <[email protected]>
**Thanks**
to
John Hunter
Andrew Straw
Eric Firing
Rob Hetland
Scott Sinclair
Ivan Lima
Erik Andersen
Michael Hearne
Jesper Larsen
Ryan May
David Huard
Mauro Cavalcanti
Chris Murphy
Pierre Gerard-Marchant
Christoph Gohlke
Eric Bruning
Stephane Raynaud
Tom Loredo
Patrick Marsh
Phil Elson
for valuable contributions.