Postproc_atmos failure: IndexError

Hi, I am running the suite called ‘fixed’ (a copy of u-dc838). It has ran the first 5 years but has failed on the atmosphere post-processing step of the 1st year with an IndexError as part of create_um_mean function in atmos_transform.py.

Traceback (most recent call last):
  File "/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/main_pp.py", line 119, in <module>
    main()
  File "/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/main_pp.py", line 112, in main
    run_postproc()
  File "/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/main_pp.py", line 83, in run_postproc
    getattr(model, meth)()
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/timer.py", line 115, in wrapper
    out = function(*args, **kw)
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/atmos.py", line 491, in do_meaning
    icode = self.update_meanfile(meanfile, setend)
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/timer.py", line 115, in wrapper
    out = function(*args, **kw)
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/atmos.py", line 445, in update_meanfile
    rcode = climatemean.create_mean(meanfile,
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/timer.py", line 115, in wrapper
    out = function(*args, **kw)
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/climatemean.py", line 256, in create_mean
    icode, output = target_app(meanfile, **kwargs)
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/timer.py", line 115, in wrapper
    out = function(*args, **kw)
  File "/mnt/lustre/a2fs-work2/work/n02/n02/earbsn/cylc-run/fixed/share/fcm_make_pp/build/bin/atmos_transform.py", line 323, in create_um_mean
    ','.join([str(i) for i in ff_out.fields[0].raw[1:7]]),
IndexError: list index out of range
[FAIL] main_pp.py atmos <<'__STDIN__'

I then put some print statements in create_um_mean to look at ff_out.fields, where the IndexError is coming from and looked at job.out and it returned this:

[INFO]  ATMOS SHARE directory: /work/n02/n02/earbsn/cylc-run/fixed/share/data/History_Data
[INFO]  ATMOS WORK directory: /work/n02/n02/earbsn/cylc-run/fixed/work/22770101T0000Z/coupled
[INFO]  Running do_meaning for atmos...
[INFO]  Creating meanfile fixeda.ps2277jja with components:
	/work/n02/n02/earbsn/cylc-run/fixed/share/data/History_Data/fixeda.pm2277aug
	/work/n02/n02/earbsn/cylc-run/fixed/share/data/History_Data/fixeda.pm2277jul
	/work/n02/n02/earbsn/cylc-run/fixed/share/data/History_Data/fixeda.pm2277jun
[INFO]  Meanfile validity date: 2277,9,1,0 day number 241
<FieldsFile: integer_constants=(46,), real_constants=(38,), level_dependent_constants=(86, 8)>
[]

so this list is empty, but I’m not sure why that would be the case. I’m not sure how to move forward from here, so any help is appreciated. Thank you!

Hi Brooke,

What are the differences between your suite “fixed” and the original u-dc838? I am a bit confused by what “fixed” actually is. It appears to be a branch of Helen’s suite u-ds156 but it’s description says a copy of u-dc838?? The postproc_atmos task runs fine in the suite u-dc838. So it’s definitely something to do with changes that have been made subsequently.

Cheers,
Ros

Hi Ros, thanks for your help. One of the differences was calculating seasonal means, which is the part it was getting stuck on, so I just changed that to false.