Information about the necessary python libraries to run the SUNTANS examples and view the output.
Your operating system may have python pre-installed but if it is not version 2.7 then install version 2.7!
The following libraries are fairly standard and essential for most of the tasks related to pre and post-processing SUNTANS data. Most packages should be readily available on most platforms and easily installable via things like:
sudo apt-get install python-numpy
or if you download a package from source:
sudo python setup.py install
Check each library for details.
Basic scientific computing libraries including matrix and array operations.
More scientific computing libraries.
Main plotting routines live here.
Library for interfacing with netcdf4 files. See [Netcdf Compilation Instructions] wiki for details on the installation.
The following non-pertinent libraries are required for some tasks but most examples should run without them
This is required by the main plotting gui sunplotpy.
Geospatial Data Abstraction Library for mapping/GIS tasks like lat-lon to UTM conversion.
3D visualization libraries. Looks good.
> brew doctor
> brew update
> brew upgrade
> pip install numpy
> pip install scipy
> pip install gdal
> ln -s /usr/local/opt/freetype/include/freetype2 /usr/local/include/freetype
> pip install matplotlib
> brew install wxmac
> tap homebrew/homebrew-science
> brew update
> brew hdf5
> brew netcdf
> pip install netcdf4
export PYTHONPATH=/usr/local/bin
export LD_LIBRARY_PATH=/usr/local/lib
PYTHON_SUNTANS=<enter></enter>
export PYTHONPATH=${PYTHON_SUNTANS}/DataDownload:${PYTHON_SUNTANS}/DataIO:${PYTHON_SUNTANS}/GIS:${PYTHON_SUNTANS}/SUNTANS:${PYTHON_SUNTANS}/Utils