forked from SciTools/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
179 lines (120 loc) · 5.89 KB
/
INSTALL
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
You can either install Iris using the conda package manager or from source.
Installing using conda
----------------------
Iris is available using conda for the following platforms:
* Linux 64-bit,
* Mac OSX 64-bit, and
* Windows 32-bit and 64-bit.
To install Iris using conda, you must first download and install conda,
for example from http://conda.pydata.org/miniconda.html.
Once conda is installed, you can install Iris using conda on any platform with
the following command::
conda install -c conda-forge iris
If you wish to run any of the code examples
(see http://scitools.org.uk/iris/docs/latest/examples/index.html) you will also
need the Iris sample data. This can also be installed using conda::
conda install -c conda-forge iris-sample-data
Further documentation on using conda and the features it provides can be found
at http://conda.pydata.org/docs/intro.html.
Installing from source
----------------------
The latest Iris source release is available from
https://github.com/SciTools/iris.
Iris makes use of a range of other libraries and python modules. These
dependencies must be in place before you can successfully install
Iris. Once you have satisfied the requirements detailed below,
extract the iris source package, cd to the new directory, and enter::
python setup.py install
In-place build - an alternative for developers
==============================================
We are very keen to encourage contributions to Iris. For this type of
development activity an in-place build can be useful. Once you've cloned
the Iris git repository you can perform an in-place build with::
python setup.py develop
Build and runtime requirements
==============================
These are external packages which you will need to have installed before
installing and running Iris.
Many of these packages are available in Linux package managers
such as aptitude and yum. For example, it may be possible to install
Numpy using::
apt-get install python-numpy
If you are installing dependencies with a package manager on Linux,
you may need to install the development packages (look for a "-dev"
postfix) in addition to the core packages.
python 2.7 or 3.5+ (http://www.python.org/)
Iris requires Python 2.7 or Python 3.5+.
numpy (http://numpy.scipy.org/)
Python package for scientific computing including a powerful N-dimensional
array object.
scipy (http://www.scipy.org/)
Python package for scientific computing.
cartopy v0.11.0 or later (http://github.com/SciTools/cartopy/)
Python package which provides cartographic tools for python.
dask v0.15.0 or later (https://dask.pydata.org/)
Python package for parallel computing.
PyKE v1.1.1 or later (http://pyke.sourceforge.net/)
Python knowledge-based inference engine.
netcdf4-python (http://netcdf4-python.googlecode.com/)
Python interface to the netCDF version 4 C library.
(It is strongly recommended to ensure your installation uses a
thread-safe build of HDF5 to avoid segmentation faults when using
lazy evaluation.)
cf_units v1.0 or later (https://github.com/SciTools/cf_units)
CF data units handling, using udunits.
setuptools v36.0 or later (http://pypi.python.org/pypi/setuptools/)
Python package for installing/removing python packages.
The full list of packages may be found in the repository at
``requirements/core.txt``.
Optional
''''''''
These are optional packages which you may want to install to enable
additonal Iris functionality such as plotting and
loading/saving GRIB. These packages are required for the full Iris test
suite to run.
gdal (https://pypi.python.org/pypi/GDAL/)
Python package for the Geospatial Data Abstraction Library (GDAL).
graphviz (http://www.graphviz.org/)
Graph visualisation software.
iris-grib (https://github.com/scitools/iris-grib)
Iris interface to ECMWF's GRIB API
matplotlib (https://matplotlib.org)
Python package for 2D plotting.
mock (http://pypi.python.org/pypi/mock/)
Python mocking and patching package for testing. Note that this package
is only required to support the Iris unit tests.
nose (https://nose.readthedocs.io/en/latest/)
Python package for software testing. Iris is not compatible with nose2.
pep8 (https://pypi.python.org/pypi/pep8)
Python package for software testing.
pandas (http://pandas.pydata.org)
Python package providing high-performance, easy-to-use data structures and
data analysis tools.
PythonImagingLibrary (http://effbot.org/zone/pil-index.htm)
Python package for image processing.
pyugrid (https://github.com/pyugrid/pyugrid)
A Python API to utilize data written using the unstructured grid
UGRID conventions.
shapely (https://github.com/Toblerity/Shapely)
Python package for the manipulation and analysis of planar geometric
objects.
mo_pack (https://github.com/SciTools/mo_pack)
A Python wrapper to libmo_unpack, giving WGDOS packing and unpacking.
Generating conda requirements
'''''''''''''''''''''''''''''
Requirements for Iris are stored in the ``requirements`` directory in the root of the source repository.
It is possible to generate a requirements file suitable for conda use with::
python requirements/gen_conda_requirements.py > conda_requirements.txt
This may be installed with::
conda create -n my_iris_env --file conda_requirements.txt
Alternatively, a full requirements file that includes all optional dependencies can be produced with::
python requirements/gen_conda_requirements.py --groups all > conda_requirements.txt
Custom site configuration
=========================
The default site configuration values can be overridden by creating the file
``iris/etc/site.cfg``. For example, the following snippet can be used to
specify a non-standard location for your dot executable::
[System]
dot_path = /usr/bin/dot
An example configuration file is available in ``iris/etc/site.cfg.template``.
See :py:func:`iris.config` for further configuration options.