This install guide is mostly for Linux/UNIX OS users. The following install steps should also work on Mac OSX provided you could access its underlying UNIX system and install python
librairies. The tool has never been tested on Windows (but should be functional provided python
requirements are met).
Add the planetoplot/modules
folder to PYTHONPATH
in your environment file (e.g. .bashrc
)
export PYTHONPATH=$PYTHONPATH:adapt_to_your_own/planetoplot/modules
If you plan to use the command line tools, add the planetoplot/bin
folder to your PATH
export PATH=$PATH:adapt_to_your_own/planetoplot/bin
Do not forget to source the environment file.
python
(2.6 or 2.7)numpy
matplotlib
netCDF4
(not required ifppplot
only is used)
Note : You might want/need to use Python 3+, in this case checkout python3 branch but all might not be working correctly. Currently master is set to work on 2.7.
basemap
(for mapping)scipy
(for scientific computations)
A suite of pre-packaged python
librairies such as Anaconda is probably the best way to get started with a complete python environment.
The full anaconda
suite is free of charge and easy to install
- Go to this website
- Install
anaconda
on your system (Python 2.7 version) - Add the
anaconda
bin
directory to yourPATH
environment variable - Add
basemap
andnetCDF4
with the shell commandconda install basemap pil netCDF4
The only drawback of anaconda
is that you download a pretty huge amount of librairies. To make the installation lighter -- should you ever want to -- use the miniconda
software
- Go to this website
- Download the appropriate
miniconda
install script (Python 2.7 version) - Install
miniconda
by executing this script - Install the necessary packages using the
conda install
command
conda install numpy
conda install matplotlib
conda install netCDF4
(If needed, install the optional packages)
basemap
for map projectionspillow
for background image (warpimage inbasemap
)scipy
for scientific computations
conda install -c conda-forge basemap
conda install pil
conda install scipy
Here is a summary of conda commands using a dedicated environment for planetoplot
conda create -n planetoplot python=2.7
source activate planetoplot
conda install numpy matplotlib netcdf4
conda install -c conda-forge basemap
conda install pillow
If you know what you are doing and have the administration rights to do so.