JULES From Scratch is an alternative how-to for those who don't work on a system where Cylc, Rose and FCM have already been installed and/or can't use the Met Office Virtual Machine (e.g. for security reasons). I'm also assuming little or no familiarity with any recent version of JULES.
In order to follow this tutorial you need:
- A MOSRS login (see here) (this is free to everyone, whether in the UK or not). You should also subscribe to the email support lists (see here), by the way.
- Access to a UNIX/Linux system either directly or through a remote shell client and X server (e.g. I use MobaXterm) with X11 forwarding (if you use "ssh -X" to access the server you're on then X11 will be there, otherwise you'll have to find out how to ensure it's on, e.g. in MobaXTerm there is a check-box in the settings you need to make sure is ticked).
- A text editor on UNIX: e.g. on Monsoon you have nedit and on JASMIN you can use geany (vi or vim are also on both platforms if you like those: find out which text editor is installed using " apropos "text editor" ").
- A Fortran compiler installed on UNIX (if using gfortran, it must be at least vn4.9.2 (since JULESvn5.2 the compilation requires the -std=f2003 flag for compliance with F2003 and for versions of gfortran before 4.9.2 this will trip a fatal run-time error while trying to read the namelists))
- Python installed on UNIX (at least version 2.0; the process of transitioning to Python3.0 is still ongoing, so please note that *** JULES will not yet work with Python vn>=3.0 ***) (n.b. Python 2 goes out of licence in January 2020, and out of support July 2020: we hope to have completed this transition on those timescales)
- and NetCDF libraries on UNIX (installing NetCDF is too fiddly to go through here: see here and/or ask your System Administrator for help if they haven't been installed or not completely installed).
Before you go any further, open up my pdf presentation from the September 2018 training workshop in Exeter to follow the steps to get JULES running:
CLICK HERE FOR PDF: 20191219.JULES From Scratch.pdf
Now, if you need them, start off with the installation steps (see below). Once you're done with that, return to the pdf for the rest of the tutorial.
Install Cylc, Rose and FCM and cache your MOSRS password
You need to have three programs installed on your system: Cylc, Rose and FCM. All three of these are necessary for running JULES and I've done a page about installing each with all the steps required (linked here below).
Ideally, these three will be installed globally by your system administrator (or, if you are using the Met Office Virtual Machine, they come in the package), but if that isn't possible (or you are the system administrator) then you will need to go through some/all of these steps for a local installation. First check what is on your system by putting these commands into a UNIX shell:
echo $SHELL #You need to be in a bash shell, so if this returns anything except "/bin/bash" ask your system administrator how you can get into bash cylc check-software #If Cylc is installed, this will give you a message saying "Full-functionality OK" (and it'll also warn you if you are missing Python (you need vn>=2.6) and some libraries like PyGraphviz and PyGTK) rose --version #Just check you don't get "command not found" fcm --version #Just check you don't get "command not found"
EVEN IF ALL SEEM TO BE INSTALLED OK, your personal profile settings may not be correct for using JULES so please do anyway go through the installation links below to make sure your environment setup is OK and your MOSRS password has been correctly cached.
- Install Cylc from GitHub following these steps
- Install Rose from GitHub following these steps (inc. what goes in your ~/.metomi/rose.conf file, which each user needs to set up separately)
- Install FCM from GitHub following these steps (includes caching your MOSRS password *** which is compulsory for all users before using JULES *** and what goes in your ~/.subversion/servers and ~/.metomi/fcm/keyword.cfg files, which each user needs to set up separately)
- Install JULES itself following these steps (this includes the download command for getting hold of a particular version of JULES).
- ...and, finally, take a note of the following Rose suite codes for the particular version of JULES you want to use (see here for code release details). These are all intended to be the same example simulation (it's the example I refer to as JFScratchSuite in the slides), but I've modified the control files appropriately for the particular version of JULES to be used.
|Global run at 0.5° resolution (WFDEI data)||Global run at 0.25° resolution (eartH2Observe data)|
|JULESvn5.6||u-bp699||Work in progress: will be u-bq564|
- Now return to the PDF linked above for the next steps.