diff --git a/README.md b/README.md index 2983551..bbf181d 100644 --- a/README.md +++ b/README.md @@ -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: ```bash -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 `ice_day.nc` and `ocean_day3d.nc` 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 + +```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 +``` + +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=0.0.0.0 .` + +This will start a jupyter server. You should see in your terminal something like: + +`http://127.0.0.1:8888/lab?token=207782a53ea615d3cef55720b20cfaa8911496e9f8ec323d` + +Open now the web browser of your choice and open that URL. + +You should see now something like this + +![](figures/jupyterlab.png) + +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 diff --git a/figures/jupyterlab.png b/figures/jupyterlab.png new file mode 100644 index 0000000..8b5c636 Binary files /dev/null and b/figures/jupyterlab.png differ