Skip to content

X DEPRECATED Getting Setup on the standard ISIS3 dev system.

Trent Hare edited this page Apr 20, 2022 · 1 revision

DEPRECATED -- SEE README.md

Switch to using bash

Setting up the anaconda environment, forking, and cloning all forks:

conda create -n CSM 
source activate CSM
conda config --add channels conda-forge
conda install -c conda-forge numpy cython
git clone <your fork of CSM-CyCSM>
git clone <your fork of csm>
git clone <your fork of CSM-CameraModel>

build a local libcsm

cd into your clone of csm and run the following, be sure to replace the path to your environment:

make -f Makefile.linux64 all install clean INSTDIR=/path/to/your/conda/environment

(By setting the INSTDIR to your conda environment's directory, the setup.py scripts in CSM-CyCSM and CSM-CmaeraModel will be able to find the libcsm files)

Build cycsm using the locally build libcsm

cd into your checkout of CSM-CyCSM Then run python setup.py install

Build usgscam using the locally build libcsm and cycsm

cd into your checkout of CSM-CameraModel Then run python setup.py develop

Try importing usgscam

Run python -c "import usgscam" If everything is setup correctly, this should produce no output

Run the CSM-CameraModel tests

Run conda install pytest In your CSM-CameraModel directory run pytest tests/ All of the tests should pass. If you get undefined symbol errors, then your CSM-CameraModel is not linking against the correct libcsm.

Testing some SETs

Run conda install jupyter matplotlib pandas spiceypy gdal pyproj pvl

Now, running jupyter notebook will allow you to play with the notebooks in CSM-SET