-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
UCVM plotting requires to pre-conditions. First, it requires an installation of UCVM. Second, it requires a python2 installation. These are available on USC Discovery cluster.
The ucvm_plotting scripts are written in python2 and the conversion of these scripts to Python3 has not been done yet. They make use of libraries such as basemap which may not be supported, so significant modification to the scripts are needed.
UCVM_plotting Python2 scripts will use the ucvm c-language executables, using the UCVM C API.
The ucvm_plotting scripts have an additional complication in that they use X-windows to display the resulting plots. Ways to display x-windows on systems varies significantly by the system in use. The use of X-windows can be avoided by writing the UCVM plots to *.png files, then displaying the png files with appropriate (non x-windows) utilities.
- Install Anaconda Python3 on yoru system
- Install UCVM on system.
- Install Python2 on the system
- Move to the UCVM binary directory and clone the ucvm_plotting repo
- Build ucvm_plotting
- activate python2 environment with command # conda activate python2
- run plotting scripts
- conda deactivate python3 to return to the more standard python3 environment
- create conda environment
- conda create -n python2 python=2.7 scipy pip numpy matplotlib basemap basemap-data-hires
- confirm installation has run source ucvm_env.sh so ucvm ENV paths are defined
- cd ucvm installation directory
- git clone https://github.com/SCECcode/ucvm_plotting.git
- conda activate python2
- cd ucvm_plotting
- ./unpack-dist
- cd ucvm_plotting/examples
- ./run-tests
The run-tests script provides good examples of how to create plots using command line parameters and output the results to png files.
- conda deactivate