-
Notifications
You must be signed in to change notification settings - Fork 0
Quickstart
Before downloading visualCaseGen, make sure that you have both git
and svn
libraries installed on your machine.
visualCaseGen is currently distributed with a CESM version based on cesm2_3_beta07. To check out this CESM version and to download all of its components including visualCaseGen, run the following commands.
git clone https://github.com/alperaltuntas/cesm.git -b cesm2_3_beta07_gui_220309 cesm2_3_beta07_gui_220309
cd cesm2_3_beta07_gui_220309
./manage_externals/checkout_externals -o
Note for cheyenne users: For the GUI notebook to be accessible from JupyterHub, the notebook needs to be under your home directory. If you have not run the above commands in your home directory, you should create a symbolic link to your copy of cesm2_3_beta07_gui_220309 in your home directory.
(Skip to Section 3 if you are running on cheyenne.)
-
Operating system: Linux | OSX.
-
If your machine is not supported by default, you need to port CESM. Follow the instructions on: https://esmci.github.io/cime/versions/master/html/users_guide/porting-cime.html
-
Make sure that all libraries required by CESM are available on your machine, including but not limited to
xmllint
. -
visualCaseGen tool currently requires the
jupyterlab
,ipywidgets
, andPyYAML
libraries. To obtain the above libraries and install visualCaseGen, run the following commands: (Not needed on Cheyenne)cd visualCaseGen pip install -e .
Note to developers: pip install
needs to be run on editable mode (-e
) to ensure that the CIME library is accessible from visualCaseGen, since there is not a CIME setup configuration that places CIME to site-packages.
- On a web browser, go to:
https://jupyterhub.hpc.ucar.edu/
- Start a server by clicking on
Production
. Then click onStart my server
button. You may then selectCheyenne login node
as your cluster selection and hitLaunch server
. - After the Jupyter service is launched, locate the File Browser panel on the left.
- Find the
cesm2_3_beta07_gui_220309
directory and double click on it. Note that the directory will appear there only if you have downloaded CESM on your home directory or created a symbolic link. - Then, double click on the
visualCaseGen
directory. Within thevisualCaseGen
directory, find theGUI.ipynb
notebook file and double click on it to launch the notebook. - Before running the notebook cell, make sure that your Python kernel is set to
NPL-3.9.7
. The kernel selection is shown on top right corner next to a circle. - Finally, click on the
from visualCaseGen import gui; gui
cell and hitshift
+return
.
-
Launch Jupyter Lab by running the following command on a terminal:
jupyter lab
-
Create a new notebook. To launch the GUI, type in the following statement in a cell:
from visualCaseGen import gui; gui
container instructions coming soon
When the GUI is launched, the users are prompted to make a couple of preliminary choices: The CESM driver (nuopc or mct) and the Configuration mode:
-
predefined
configuration mode: Select from configurations predefined within CESM -
custom
configuration mode: Build your own compset for a breakthrough CESM experiment.
After having made the preliminary choices, click on the Confirm
button to move on the next step.
instructions coming soon