Opened 7 days ago

Last modified 4 days ago

#2874 new help

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:


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/", line 2147, in getitem

cube_data, keys)

File "/home/users/azin/miniconda2/envs/iris_env/lib/python2.7/site-packages/iris/", 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,


Attachments (1)

Screen Shot 2019-04-12 at 16.48.11.png (157.9 KB) - added by awright 7 days ago.

Download all attachments as: .zip

Change History (2)

Changed 7 days ago by awright

comment:1 Changed 4 days ago by pmcguire

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.

Note: See TracTickets for help on using tickets.