Opened 22 months ago
Closed 21 months ago
#2874 closed help (fixed)
IndexError: Cannot index with zero length slice.
Reported by: | awright | Owned by: | pmcguire |
---|---|---|---|
Component: | JULES | Keywords: | jasmin, python, jules, iris |
Cc: | Platform: | JASMIN | |
UM Version: |
Description
Hello Patrick,
I have got an error in plotting by u-bh383 for 'lba'. The job.err files says:
File "/home/users/azin/miniconda2/envs/iris_env/lib/python2.7/site-packages/iris/cube.py", line 2147, in getitem
cube_data, keys)
File "/home/users/azin/miniconda2/envs/iris_env/lib/python2.7/site-packages/iris/util.py", line 720, in _slice_data_with_keys
raise IndexError?('Cannot index with zero length slice.')
IndexError?: Cannot index with zero length slice.
This iris_env was OK with 'mead' sites, but it seems it has a problem with 'lba'.
I have also attached the screenshot.
All the best,
Azin
Attachments (1)
Change History (7)
Changed 22 months ago by awright
comment:1 Changed 22 months ago by pmcguire
comment:2 Changed 21 months ago by pmcguire
- Status changed from new to accepted
comment:3 Changed 21 months ago by pmcguire
Hi Azin
Did you get this working?
Patrick
comment:4 Changed 21 months ago by awright
Hello Patrick,
I don't have any problems anymore, but I can not remember exactly how the problem was solved.
All the best,
Azin
comment:5 Changed 21 months ago by pmcguire
Dear Azin
Glad all is working! Thanks! I will close the ticket now.
Patrick
comment:6 Changed 21 months ago by pmcguire
- Resolution set to fixed
- Status changed from accepted to closed
Hi Azin
Your log file ~azin/cylc-run/u-bh383/log/job/1/make_plots/01/job.out suggests that it failed either during the LBA_FNS FLUXNET site plotting or on the next FLUXNET site. Can you first make a backup copy of your azin/roses/u-bh383/bin/list_sites_lba.txt file and then try running your suite again without the LBA_FNS site by removing that site from azin/roses/u-bh383/bin/list_sites_lba.txt? If that doesn't work, then you might try deleting the next site, which is LBA_PDG.
The other thing to do is to try to figure out how LBA_FNS is different from the other LBA FLUXNET sites. You can look at the input data, to see if there are any temporal gaps in the data, etc.
Patrick