Skip to content

ACCESS-NRI/CMIP7-Hackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACCESS-NRI CMIP7-Hackathon

Welcome to the ACCESS-NRI CMIP7 Hackathon repo to be held on the 2nd of September 2024

You can find the material used for the hackathon held March 12-14, 2024 here.

Links from the hackathon

Visual Studio Code (VS Code)

To get the most out of the hackathon exercises, we recommend using Microsoft Visual Studio Code which can be downloaded free for Windows, MacOS and Linux here. For new VS Code users or those simply wanting a quick refresher, we have created a video and written guide to help you set up VS Code on Gadi. Note that the information is roughly the same, so you can choose either video or written guide to follow along.

NOTE: There are two pieces of information to clarify from the video tutorial that are explained in the written guide:

  1. When logging into Gadi for the first time in VS Code, you do not need to write your own config file. You can simply choose the default option that is suggested and VS Code will create one for you. You only need to do this once - the first time you log in.
  2. _In addition to the 3 extensions mentioned in the video, you will need to install a 4th extension to view html files (this is how most of the ESMValTool recipes show output plots). You can see our recommended extension "Live Server" in the written guide above.

Australian Research Environment (ARE)

If it is not possible to use VS Code, hackathon exercises can alternatively be run via either an Australian Research Environment JupyterLab or an Australian Research Environment Virtual Desktop (VDI) session. We have created a written guide to setup each of these for the CMIP7-Hackathon below.

Logging into Gadi

The first thing to do is to login to Gadi. You can choose to run the following commands either from your computer's terminal or from the terminal within VS Code. If you follow the above steps to set up VS Code on Gadi, you can skip to the next section "Set up our environment to run ESMValTool" below (since the video and written guide already walk you through how to connect to Gadi in VS Code).

Log into Gadi using ssh via the command line using your registed NCI username and enter your password when prompted. Once you see the welcome note you have successfully logged in.

$ ssh [username]@gadi.nci.org.au

Set up our environment to run ESMValTool

Next we want to set up our system to run the ESMValTool recipes prepared for the Hackathon.

Step 1. Enter the following two commands (one after the other). The first command loads some necessary dependencies needed to run ESMValTool, and the second command loads the required ACCESS-NRI ESMValTool-workflow module.

module use /g/data/xp65/public/modules
module load esmvaltool

or

module load esmvaltool-workflow

Step 2. Make sure to select project nf33

switchproj nf33

Step 3. Run the hackathon setup script from any directory. This verifies that your NCI account has access to the required projects on Gadi and that their respective storage locations are mounted, clones the CMIP7-Hackathon Github repository, and automatically runs each of the hackathon ESMValTool recipes as PBS jobs on Gadi.

check_hackathon

You will see a range of checks and processes print to the screen, which may take up to 1 minute to complete. Once you see the "YOU ARE ALL SET!!!" message, everything is setup and ready to go.

ESMValTool recipes

  • View ESMValTool recipe outputs here:
/scratch/nf33/[username]/esmvaltool_outputs
  • View ESMValTool recipe log files here:
/scratch/nf33/[username]/CMIP7-Hackathon/admin/logs
/scratch/nf33/[username]/CMIP7-Hackathon

We also include a convenience wrapper function to manually run individual recipes found in the CMIP7-Hackathon Github repository recipes directory:

run_recipe [path-to-recipe]

For example, to manually run the hackathon map1 recipe found in /scratch/nf33/[username]/CMIP7-Hackathon/recipes/ocean/maps, you can cd into the cloned CMIP7-Hackathon Github repository

cd /scratch/nf33/[username]/CMIP7-Hackathon

and run the following:

run_recipe recipes/ocean/maps/map1.yml

[Back to top]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages