Ubuntu
Some of the following guidelines are taken from opendrift.github.io/install
- Install miniconda3: docs.conda.io/en/latest/miniconda
- Clone the OpenDrift fork related to CLAWS
git clone https://github.com/claws-scot/opendrift.git cd opendrift
- Create environment with the required dependencies and install OpenDrift
conda config --add channels conda-forge conda env create -f environment.yml conda activate opendrift pip install --no-deps -e .
- Change directory to parent directory and clone CLAWS
cd ../ git clone https://github.com/claws-scot/CLAWS.git cd CLAWS pip install -r requirements.txt
- Edit entries in CLAWS/etc/bashrc:
CLAWS_RUN
andCLAWS_USER_DATA
- Add the CLAWS Github repository folder to your python path in ~/.bashrc:
source PATH_TO_CLAWS_PARENT_DIR/CLAWS/etc/bashrc export PATH=$PATH:PATH_TO_CLAWS_PARENT_DIR/CLAWS/bin export PYTHONPATH=$PYTHONPATH:PATH_TO_CLAWS_PARENT_DIR/CLAWS
where
PATH_TO_CLAWS_PARENT_DIR
is the full path to CLAWS’s parent directory. - Source your ~/.bashrc file to complete the installation
source ~/.bashrc