Skip to content

Commit 6740f1c

Browse files
committed
polish texts in docs
1 parent 42e8c60 commit 6740f1c

3 files changed

Lines changed: 50 additions & 17 deletions

File tree

docs/notebooks/run_model_with_different_dataset.ipynb

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,33 @@
55
"cell_type": "markdown",
66
"metadata": {},
77
"source": [
8-
"# Running the STEMMUS_SCOPE model\n",
8+
"# Running the STEMMUS_SCOPE model with different dataset\n",
99
"\n",
10-
"This notebook shows how to run the STEMMUS_SCOPE model uisng the Executable file, including preprocessing and postprocessing. \n",
10+
"This notebook shows how to run the STEMMUS_SCOPE model uisng the Executable file, including preprocessing and postprocessing. For postprocesisng, the file required_netcdf_variables.csv can be found at https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/utils/csv_to_nc/required_netcdf_variables.csv.\n",
1111
"\n",
1212
"## Which options are available?\n",
1313
"\n",
14-
"See the [run_model_with_different_options.ipynb](./run_model_with_different_options.ipynb) for avialbale options e.g. Executable file, Matlab, Octave.\n",
14+
"See the [Run the model with different options](./run_model_with_different_options.ipynb) for avialbale options e.g. Executable file, Matlab, Octave.\n",
1515
"The STEMMUS_SCOPE executable file is located in a repository https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/run_model_on_snellius/exe/STEMMUS_SCOPE.\n",
1616
"\n",
1717
"## Which datasets are available?\n",
1818
"The config file shows how to set the paths to different data needed by the model. Check the data source on Snelius and CRIB and modify the config file accordingly:\n",
1919
"\n",
20-
"#### On CRIB:\n",
21-
"- Site data: /data/shared/EcoExtreML/STEMMUS_SCOPEv1.0.0/input, config file template https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/config_file_crib.txt\n",
22-
"- Global data: /data/shared/EcoExtreML/STEMMUS_SCOPEv1.0.0/global_data, config file template https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/run_model_on_snellius/config_file_snellius_global.txt\n",
20+
"#### On CRIB\n",
21+
"- Site data:\n",
22+
" - path to data: `/data/shared/EcoExtreML/STEMMUS_SCOPEv1.0.0/input`,\n",
23+
" - config file template: https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/config_file_crib.txt\n",
24+
"- Global data:\n",
25+
" - path to data `/data/shared/EcoExtreML/STEMMUS_SCOPEv1.0.0/global_data`,\n",
26+
" - config file template: https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/run_model_on_snellius/config_file_snellius_global.txt\n",
2327
"\n",
24-
"#### On SNellius:\n",
25-
"- Site data: /projects/0/ttse0619/, config file template https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/run_model_on_snellius/config_file_snellius.txt\n",
26-
"- Global data: /projects/0/ttse0619/global_data, config file template https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/run_model_on_snellius/config_file_snellius_global.txt\n",
28+
"#### On Snellius\n",
29+
"- Site data:\n",
30+
" - path to data: `/projects/0/ttse0619/`,\n",
31+
" - config file template: https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/run_model_on_snellius/config_file_snellius.txt\n",
32+
"- Global data:\n",
33+
" - path to data: `/projects/0/ttse0619/global_data`,\n",
34+
" - config file template: https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/run_model_on_snellius/config_file_snellius_global.txt\n",
2735
"\n",
2836
"Choose how do you want to run the model:\n",
2937
"\n",
@@ -204,7 +212,7 @@
204212
},
205213
{
206214
"cell_type": "code",
207-
"execution_count": 4,
215+
"execution_count": null,
208216
"metadata": {},
209217
"outputs": [],
210218
"source": [
@@ -213,6 +221,31 @@
213221
"path_to_model_src = \"./STEMMUS_SCOPE\""
214222
]
215223
},
224+
{
225+
"cell_type": "markdown",
226+
"metadata": {},
227+
"source": [
228+
"If you run the model on your own machine, make sure `LD_LIBRARY_PATH` is set correctly. To do this, uncomment the cell below and run it:"
229+
]
230+
},
231+
{
232+
"cell_type": "code",
233+
"execution_count": null,
234+
"metadata": {},
235+
"outputs": [],
236+
"source": [
237+
"# # Set LD_LIBRARY_PATH\n",
238+
"matlab_path = !whereis MATLAB\n",
239+
"matlab_path = matlab_path.s.split(\": \")[1]\n",
240+
"os.environ['LD_LIBRARY_PATH'] = (\n",
241+
" f\"{matlab_path}/MATLAB_Runtime/R2023a/runtime/glnxa64:\"\n",
242+
" f\"{matlab_path}/MATLAB_Runtime/R2023a/bin/glnxa64:\"\n",
243+
" f\"{matlab_path}/MATLAB_Runtime/R2023a/sys/os/glnxa64:\"\n",
244+
" f\"{matlab_path}/MATLAB_Runtime/R2023a/extern/bin/glnxa64:\"\n",
245+
" f\"{matlab_path}/MATLAB_Runtime/R2023a/sys/opengl/lib/glnxa64\")\n",
246+
"print(os.environ['LD_LIBRARY_PATH'])"
247+
]
248+
},
216249
{
217250
"cell_type": "code",
218251
"execution_count": 5,

docs/notebooks/run_model_with_different_options.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"cell_type": "markdown",
66
"metadata": {},
77
"source": [
8-
"# Running the STEMMUS_SCOPE model\n",
8+
"# Running the STEMMUS_SCOPE model with different options\n",
99
"## Which options are available?\n",
10-
"This notebook shows steps to run the STEMMUS_SCOPE model, including preprocessing and postprocessing. STEMMUS_SCOPE files are located in a **private** repository https://github.com/EcoExtreML/STEMMUS_SCOPE. To clone the repository locally and access the files, make sure you have right access to the repository. Then specify the path to a config file e.g.`config_file_template.txt`, executable file `STEMMUS_SCOPE` or source code `STEMMUS_SCOPE/src` in the cells below. There are already config files for users on Snellius and CRIB, see `config_file_snellius.txt`, `config_file_crib.txt`. Choose how do you want to run the model:\n",
10+
"This notebook shows steps to run the STEMMUS_SCOPE model, including preprocessing and postprocessing. STEMMUS_SCOPE files are located in a repository https://github.com/EcoExtreML/STEMMUS_SCOPE. Then specify the path to a config file e.g.`config_file_template.txt`, executable file `STEMMUS_SCOPE` or source code `STEMMUS_SCOPE/src` in the cells below. There are already config files for users on Snellius and CRIB, see `config_file_snellius.txt`, `config_file_crib.txt`. Choose how do you want to run the model:\n",
1111
"\n",
1212
"\n",
1313
"[**Executable file**](#1-using-executable-file)\n",
@@ -398,7 +398,7 @@
398398
],
399399
"metadata": {
400400
"kernelspec": {
401-
"display_name": "pyss_octave",
401+
"display_name": "Python 3 (ipykernel)",
402402
"language": "python",
403403
"name": "python3"
404404
},
@@ -412,7 +412,7 @@
412412
"name": "python",
413413
"nbconvert_exporter": "python",
414414
"pygments_lexer": "ipython3",
415-
"version": "3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:50:36) [MSC v.1929 64 bit (AMD64)]"
415+
"version": "3.10.13"
416416
},
417417
"vscode": {
418418
"interpreter": {

mkdocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ repo_name: PyStemmusScope
55
nav:
66
- Getting started: index.md
77
- Installation: installation_instructions.md
8-
- Notebook page:
9-
- Run the model with different options: notebooks/run_model_with_different_options.ipynb
10-
- Run the model with different dataset: notebooks/run_model_with_different_dataset.ipynb
8+
- Run the model:
9+
- Run the model with different options: notebooks/run_model_with_different_options.ipynb
10+
- Run the model with different dataset: notebooks/run_model_with_different_dataset.ipynb
1111
- Contributing guide: CONTRIBUTING.md
1212
- API reference: reference.md
1313

0 commit comments

Comments
 (0)