Toby Marthews
  • Home
  • Opportunities
  • Projects
    • CHAMFER
    • JULES Academy
    • TISE
    • NC-Int-SEAsia
    • TES-NbS
    • Previous projects >
      • Hydro-JULES
      • MOCABORS >
        • MOGEN
      • CSSP Brazil
      • Projects pre-2021
  • Publications
  • Map-based CV
  • Resources
    • Menu of MODEL runs
    • Menu of COURSES
    • Spatial Data >
      • GISbasics
      • GISpackages
      • 1D2D
      • Animate data
    • JULES Ancils >
      • HSAncils
    • JULES on JASMIN
    • Run JULES suite >
      • Identify domain and resolution
      • Get_MODELCODE
      • Modify suite
      • Programmatic suites
    • Gather
    • Wytham Maps
  • Gallery
  • UNIX_basics
  • SIGOPAM
  • Welcome to UKCEH

Get Model code

Downloading the JULES Standalone model code: you need to specify the version number for this (see the list of releases here).
Picture
Picture
Picture
OPTION 1: USING AN SSH KEY
• Go to https://github.com/MetOffice/jules . Click on the green button (shown above) and work out the SSH URL, which is the URL in the HTTPS tab with https://github.com/ replaced with [email protected]: (which should be [email protected]:MetOffice/jules.git ) (ignore the GitHub CLI tab).
• Make sure you have an SSH key properly generated (see https://metoffice.github.io/simulation-systems/WorkingPractices/gh_authorisation.html if not) and that it has the correct permissions (use chmod -R 700 .ssh) and that this key has been authorised for use with the UK Met Office (click on Authorizing an SSH key on https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-single-sign-on if not).

Picture
OPTION 2: USING A PERSONAL TOKEN
•Go to https://github.com/MetOffice/jules . Click on the green button (shown above) and note the URL in the HTTPS tab (which should be https://github.com/MetOffice/jules.git ) (ignore the GitHub CLI tab).
•Make sure you have a personal token properly generated (see https://metoffice.github.io/simulation-systems/WorkingPractices/gh_authorisation.html if not) and that this token has been authorised for use with the UK Met Office (click on Authorizing a personal access token on https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-single-sign-on see  if not).

• Next, choose where you want to put the JULES code by specifying a directory in $JROOT like this:
export JROOT=~/MODELS/jules_dir_name
echo $JROOT

(on my system, I put all model code in a directory ~/MODELS/ , but you can decide to use a different location; usually for jules_dir_name people put something like "jules-vn8.3" or "my_version_jules" - you can use any name you want as long as it gets copied into the suite into the right places later on).
Picture
• Now do this (n.b. your_private_key_file will usually have a filename something like id_ed25519 with no extension):
eval "$(ssh-agent -s)"
ssh-add -k ~/.ssh/your_private_key_file
git clone [email protected]:MetOffice/jules.git $JROOT
cd $JROOT
Picture
• Now do this:
git clone https://github.com/MetOffice/jules.git $JROOT
cd $JROOT
#After EITHER of the options above:
cd $JROOT
git tag -l

#You should now see a list of available JULES versions. Select the one you want to work with (e.g. vn8.0) and switch to it:

git switch -c vn8.0
ls


#Well done! You have successfully downloaded a copy of (='checked out') a particular version of JULES and placed it in this location:
echo $JROOT

Land Surface Science group, UK Centre for Ecology & Hydrology (UKCEH),
MacLean Bdg, Wallingford OX10 8BB, U.K.
, tobmar *a,t* ceh *dot* ac *dot* uk
Proudly powered by Weebly
  • Home
  • Opportunities
  • Projects
    • CHAMFER
    • JULES Academy
    • TISE
    • NC-Int-SEAsia
    • TES-NbS
    • Previous projects >
      • Hydro-JULES
      • MOCABORS >
        • MOGEN
      • CSSP Brazil
      • Projects pre-2021
  • Publications
  • Map-based CV
  • Resources
    • Menu of MODEL runs
    • Menu of COURSES
    • Spatial Data >
      • GISbasics
      • GISpackages
      • 1D2D
      • Animate data
    • JULES Ancils >
      • HSAncils
    • JULES on JASMIN
    • Run JULES suite >
      • Identify domain and resolution
      • Get_MODELCODE
      • Modify suite
      • Programmatic suites
    • Gather
    • Wytham Maps
  • Gallery
  • UNIX_basics
  • SIGOPAM
  • Welcome to UKCEH