Opened 2 years ago
Closed 2 years ago
#2666 closed help (fixed)
iris xcs-c iris_sample_data
Reported by: | nx902220 | Owned by: | um_support |
---|---|---|---|
Component: | Other | Keywords: | Iris |
Cc: | Platform: | Monsoon2 | |
UM Version: |
Description
Hi,
I am trying to use Iris on monsoon xcs-c. I have followed the advice here:
https://collab.metoffice.gov.uk/twiki/bin/view/Support/MONSooNFAQs#How do I use Python on the HPC?
I do:
module load scitools
python
execfile('script.py')
It fails at the line in my script:
filename = iris.sample_data_path('../ukv_um/dymeaa_pf000')
The error message is:
File "/common/scitools/environments/default/2018_05_22/lib/python2.7/site-packages/iris/init.py", line 480, in sample_data_path
raise ImportError?("Please install the 'iris_sample_data' package to "
ImportError?: Please install the 'iris_sample_data' package to access sample data.
I try in my script
import iris_sample_data
but there is no module of that name.
Please can you help me with this?
Best wishes,
Lewis
Change History (4)
comment:1 Changed 2 years ago by nx902220
comment:2 Changed 2 years ago by pmcguire
Hi Lewis
On Monsoon, have you tried using the postproc machine instead of the xcs-c machine? I have found that more things are installed on there for issues similar to this.
Patrick McGuire?
comment:3 Changed 2 years ago by nx902220
Hi Patrick,
I tried postproc first. When I did:
Python
import iris
I got the error- ImportError?: No module named iris
I thought this might be due to the fact I was using the default python which doesn't have Iris. However when I do module avail to check which other versions are available all I see is
— /etc/modulefiles —
ifort/12.0_64
That is why I switched to xcs-c. I have been using python and iris without problems the past day.
Cheers,
Lewis
comment:4 Changed 2 years ago by willie
- Component changed from Monsoon to Other
- Keywords Iris added
- Platform set to Monsoon2
- Resolution set to fixed
- Status changed from new to closed
I have solved my problem.
On the Reading meteorology cluster I could use:
file_in = iris.sample_data_path('../ukv_um/dymeaa_pf000')
cubes = iris.load(file_in)
iris.sample_data_path does not seem to work on the xcs-c. I can load my data with Iris by just doing:
cubes = iris.load('../ukv_um/dymeaa_pf000')
Thanks,
Lewis