Browse Source

Added after the lecture

Florian Boergel 1 year ago
  1. 46
  2. BIN


@ -87,7 +87,7 @@ is placed in the folder `/home/mom5/MOM_code/exec/gfortran/MOM_SIS` called `fms_
Before executing the line below please have a look at it's content:
docker run -v $pwd/model_setup:/home/mom5/MOM_setup -v $pwd/MOM_forcing:/home/mom5/MOM_forcing -v $pwd/model_simulations:/home/mom5/model_simulations -p 8888:8888 -it mom5:0.2 bash
docker run -v $pwd/model_setup:/home/mom5/MOM_setup -v %cd%/MOM_forcing:/home/mom5/MOM_forcing -v %cd%/model_simulations:/home/mom5/model_simulations -p 8888:8888 -it mom5:0.2 bash
`-v` mounts the corresponding folder into the virtual machine. In contrast to copying the folder to your docker image, we avoid that the docker image gets to big.
@ -173,6 +173,50 @@ This will take a while now.
After the end of the simulation you should see the files `` and `` which we will analyze in the following.
## After the lecture:
Hey everyone,
thank you for following along during our last lecture. I think we all got to the point we were able to start our docker image.
If you finished your model simulation already, you should check the model_simulations folder on your local machine (inside your mom5-docker repository). It should contain your model run.
If you want to start your docker image again, please use your terminal (for windows power shell is best) and direct yourself to the mom5-docker folder. Once you are in that repository execute
docker run -v $pwd/model_setup:/home/mom5/MOM_setup -v %cd%/MOM_forcing:/home/mom5/MOM_forcing -v %cd%/model_simulations:/home/mom5/model_simulations -p 8888:8888 -it mom5:0.2 bash
to start the docker.
To visualize plots (I forgot to install the necessary library) please first enter
`conda install -y matplotlib`
in your docker
If you want to analyze your data, you should start now your jupyter notebook. Please navigate to your simulation directory (in the docker) and the year 1961. You should now see something like `~/model_simulations/mariesostseelauf/1961`
Now please enter:
`jupyter lab --ip= .`
This will start a jupyter server. You should see in your terminal something like:
Open now the web browser of your choice and open that URL.
You should see now something like this
Click on the python3 notebook.
You should see an notebook environment now and a notebook called Untitled.ipynb in the left column where all files are listed.
The notebook is also stored on you local machine.
## Additional information
### Multi processing


Binary file not shown.


Width:  |  Height:  |  Size: 195 KiB