Hi,
I am developing an experiment using the UM (UKESM1.1) which has a task which ideally would use the iris package within a python script to analyse the UM output on ARCHER2 (to decide which jobs to continue).
As far as I can tell iris is not available as a core package on ARCHER2 - is that correct?
If not how is the best way to install the package so that the it will be available to a script called as part of a CYLC workflow? Will I need to add something to the .rc files?
This is all quite new to mean so apologies if my question isn’t that clear.
Any help would be gratefully received.
Thanks
Andrew
Andrew
You could install iris on ARCHER2 in your /work space and then in the suite.rc file in the section for your task, set the PATH - something like:
[[new_task]]
inherit = HPC_SERIAL
pre-script = """
export PATH=/work/n02/n02/schn02/iris/bin:/work/n02/n02/shared/CANARI/storm_scripts/bin:$PATH
"""
Grenville
Hi Grenville,
Thanks for the reply.
Sorry I’m still not clear about this - I’ve never been that competent getting python packages to work!
I’ve been trying to follow the guide below:
https://docs.archer2.ac.uk/user-guide/python/
And was unsure which method of installation of the iris package would work with the script addition you suggest? Or do I need to use another installation method?
Thanks
Andrew
Hi Andrew
I don’t have advice in respect of installing python packages beyond what is documented in the ARCHER2 user guide.
You’re welcome to use Ros’s iris installation, in the example above set:
export PATH=/work/n02/n02/schn02/ros/bin
Grenville
Andrew
You probably realised I’d mis-typed - I should have written:
export PATH=/work/n02/n02/ros/bin
Grenville
Hi Grenville,
Yes, thanks, I had spotted that.
I think the correct path might actually be:
/work/n02/n02/ros/iris/bin
I’ve put this in my path and I can now run iris, so that works for me.
Thanks
Andrew
it’s been a long week!
No worries.
Thanks for the help as always.
Andrew