@@ -26,158 +26,8 @@ The model source code, executable file and utility files are available in the [S
2626
2727The input datasets are available on Snellius and CRIB. First, make sure you have
2828right access to the repository and data. Then, see the notebook
29- [ run_model_in_notebook.ipynb] ( https://github.com/EcoExtreML/STEMMUS_SCOPE_Processing/blob/main/notebooks/run_model_in_notebook.ipynb )
30- which provides different options to run the model, see [ Run the
31- model] ( #run-the-model ) .
29+ [ run_model_in_notebook.ipynb] ( https://pystemmusscope.readthedocs.io/en/latest/readme_link.html )
30+ which provides different options to run the model.
3231
33- ## Run the model
34-
35- 1 . Using executable file: As a user, you don't need to have a MATLAB license to
36- run the STEMMUS-SCOPE model. If ` PyStemmusScope ` and ` MATLAB Runtime ` are
37- installed on a Unix-like system (e.g. your own machine, Snellius or WSL), you
38- can run STEMMUS_SCOPE using the executable file.
39- 2 . Using Matlab: If ` PyStemmusScope ` and ` Matlab ` are installed, you can run
40- STEMMUS_SCOPE from the source code, for example on Snellius or CRIB.
41- 3 . Using Octave: If ` PyStemmusScope ` and latest ` Octave ` including required
42- packages are installed, you can run STEMMUS_SCOPE from its source code, for
43- example on CRIB or your own machine.
44-
45- See section [ Installations] ( #installations ) for required packages.
46-
47- ## Installations
48-
49- ### On Snellius
50-
51- [ Snellius] ( https://servicedesk.surfsara.nl/wiki/display/WIKI/Snellius ) is the
52- Dutch National supercomputer hosted at SURF. MATLAB and MATLAB Runtime are
53- installed on Snellius, see the script
54- [ ` run_jupyter_lab_snellius.sh ` ] ( https://github.com/EcoExtreML/STEMMUS_SCOPE_Processing/blob/main/run_jupyter_lab_snellius.sh )
55- on how to load the module. Also, use the same script to create a jupyter lab
56- server for running notebooks interactively. The script activates the conda
57- environment ` pystemmusscope ` . Make sure that you create the ` pystemmusscope `
58- conda environment before submitting the the bash script. See
59- [ Create pystemmusscope conda environment] ( #create-pystemmusscope-conda-environment ) .
60-
61- ### On CRIB
62-
63- [ CRIB] ( https://crib.utwente.nl/ ) is the ITC Geospatial Computing Platform. You
64- can run the model using ` Matlab ` or ` Octave ` . Currently, running the
65- exceutable file on CRIB is not supported because MATLAB Runtime can not be
66- installed there. See [ Install PyStemmusScope] ( #install-pystemmusscope ) .
67-
68- ### On your own machine
69-
70- Choose how do you want to run the model, see [ Run the model] ( #run-the-model ) .
71-
72- ### Install PyStemmusScope
73-
74- Run the commands below in a terminal (On Windows, use ` python ` instead of
75- ` python3 ` ):
76-
77- ``` sh
78- python3 -m pip install pystemmusscope
79- ```
80-
81- or
82-
83- Open a jupyter notebook and run the code below in a cell:
84-
85- ``` python
86- ! pip install pystemmusscope
87- ```
88-
89- ### Install jupyterlab
90-
91- Jupyterlab is needed to run notebooks. Run the commands below in a terminal:
92-
93- ``` sh
94- python3 -m pip install jupyterlab
95-
96- ```
97-
98- Open a terminal, make sure the environment is activated. Then, run ` jupyter lab ` :
99-
100- ``` sh
101- jupyter lab
102- ```
103-
104- JupyterLab will open automatically in your browser. Now, you can run the
105- notebook
106- [ run_model_in_notebook.ipynb] ( https://github.com/EcoExtreML/STEMMUS_SCOPE_Processing/blob/main/notebooks/run_model_in_notebook.ipynb ) .
107-
108- ### Install MATLAB Runtime
109-
110- To run the STEMMUS_SCOPE, you need MATLAB Runtime version ` 2021a ` and a Unix-like system.
111-
112- In a terminal:
113-
114- ``` sh
115- # Download MATLAB Runtime for Linux
116- wget https://ssd.mathworks.com/supportfiles/downloads/R2021a/Release/6/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2021a_Update_6_glnxa64.zip
117-
118- # Unzip the file
119- unzip MATLAB_Runtime_R2021a_Update_6_glnxa64.zip -d MATLAB_Runtime
120-
121- # Install it
122- cd MATLAB_Runtime
123- sudo -H ./install -mode silent -agreeToLicense yes
124- ```
125-
126- For more information on how to download and install MATLAB Runtime, see the links below:
127- - [ download] ( https://nl.mathworks.com/products/compiler/matlab-runtime.html )
128- - [ installation] ( https://nl.mathworks.com/help/compiler/install-the-matlab-runtime.html )
129-
130- ### Install WSL
131-
132- As the STEMMUS-SCOPE executable only supports Unix-like systems, Windows users
133- cannot run STEMMUS-SCOPE natively. However, users of Windows 10 and newer can
134- use WSL ([ Windows Subsystem for
135- Linux] ( https://docs.microsoft.com/en-us/windows/wsl/ ) ) to run the model.
136- Check the <a
137- href="https://docs.microsoft.com/en-us/windows/wsl/install">Microsoft Guide</a >
138- for a compatibility information and for general WSL instructions.
139- If no installation exists, a Ubuntu distribution can be installed using the following commands:
140- ``` sh
141- wsl --install
142- ```
143-
144- After installation, you can start up the WSL instance and update the default software:
145-
146- ``` sh
147- sudo apt update && sudo apt upgrade
148- ```
149-
150- You can now set up a python environment using either python's ` venv ` , or use Conda/Mamba.
151- Note that the command to run python and pip can be ` python3 ` and ` pip3 ` by default.
152-
153- For the rest of the installation instructions simply follow the steps below.
154- Note that it is possible to access files from the Windows filesystem from within
155- WSL, by accessing, e.g., ` /mnt/c/ ` instead of ` C:\ ` . This means that large input
156- data files can be stored on your Windows installation instead of inside the WSL
157- distro. However, WSL does not have write permission. Therefore, output data will
158- be stored within WSL. Make sure that ` WorkDir ` in the model config file is set
159- correctly.
160-
161- ### Create pystemmusscope conda environment
162-
163- If a conda environment is neeed, run the commands below in a terminal:
164-
165- ``` sh
166- # Download and install Mamba on linux
167- wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Linux-x86_64.sh
168- bash Mambaforge-pypy3-Linux-x86_64.sh -b -p ~ /mamba
169-
170- # Update base environment
171- . ~ /mamba/bin/activate
172- mamba update --name base mamba
173-
174- # Download environment file
175- wget https://raw.githubusercontent.com/EcoExtreML/STEMMUS_SCOPE_Processing/main/environment.yml
176-
177- # Create a conda environment called 'pystemmusscope' with all required dependencies
178- mamba env create -f environment.yml
179-
180- # The environment can be activated with
181- . ~ /mamba/bin/activate pystemmusscope
182-
183- ```
32+ More information on the setup and installation, including for own machine, is available
33+ in the [ documentation] ( https://pystemmusscope.readthedocs.io/ ) .
0 commit comments