ANTS on JASMIN
ANTS on JASMIN
This should get you started with setting up your environment on JASMIN so that it can use ANcillary Tools and Suites (ANTS). This is not necessary to do to run JULES, but it could be useful for creating custom ancillary files that are used by JULES.
- You will need to apply for and receive the
ncas_generic
group workspace privilege if you haven’t already. - Log out of
sci*
. It is important to log out, to make sure yourPATH
is clean and in its original state. ssh
in to one of thesci*
Virtual Machines (VMs)- Type:
source ~pmcguire/from_valeriu/env_ants.sh
- Type:
which python
- It should say:
/gws/nopw/j04/ncas_generic/users/pmcguire/anaconda3/envs/ants_env/bin/python
- Type:
ls -ltr /gws/nopw/j04/ncas_generic/users/pmcguire/anaconda3/envs/ants_env/bin/python
- It should say:
lrwxrwxrwx 1 pmcguire users 9 Mar 7 2019 /gws/nopw/j04/ncas_generic/users/pmcguire/anaconda3/envs/ants_env/bin/python → python2.7
Note: this is python2.7 not python3.7. - Type:
python
- Type:
import ants
this can sometimes take 5 minutes or so before you get back to the open Python prompt again, so be patient. Maybe someday we can try to speed-up this loading. But for the time being, we will work with the slow loading. - Then you can run your Python commands that use ANTS from the Python command-line. Or you can submit a SLURM batch job that uses ANTS Python programs, etc.
- If you ever need to switch back to the regular version of Python instead of the one where the ANTS environment is set up, the easiest way is to log out of the
sci*
VM. The second easiest way is to change your.bash*
script or your .profile script to remember your initialPATH
variable prior to running the env_ants.sh script, and then invoke the command after the ANTS session to go back to the initialPATH
. - These instructions above will give you access to an older ANTS build (version 0.6dev). There is also an ANTS build working in a Singularity container that works on JASMIN and ARCHER2. It is version 0.15, which is newer. It’s pretty easy to use. It is described at: https://cms.ncas.ac.uk/miscellaneous/ants-container/
The main WIKI for ANTS is at:
https://code.metoffice.gov.uk/trac/ancil/wiki/ANTS
and the user guide is here:
https://code.metoffice.gov.uk/doc/ancil/