# Postproc error: Annual mean

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/postproc-error-annual-mean/781>\
**Category:** Uncategorized\
**Created:** [8 November 2022 15:05 UTC](https://cms-helpdesk.ncas.ac.uk/t/postproc-error-annual-mean/781 "2022-11-08T15:05:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alokpandey](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@alokpandey](https://cms-helpdesk.ncas.ac.uk/u/alokpandey)\
**Post date:** [8 November 2022 15:05 UTC](https://cms-helpdesk.ncas.ac.uk/t/postproc-error-annual-mean/781/1 "2022-11-08T15:05:31Z")

</div>

Hi CMS,

I am running UKESM1-AMIP with DUST Iodine (Suite: u-cr649). I am trying to run this for 6years starting from dec2009. It runs well for a few months. Initially, I found an error in postproc

ValueError: Incorrect size for fixed length header; given 0 words but should be 256.

A similar error was reported on CMS:  
[Postproc: ValueError: Incorrect size for fixed length header; given 0 words but should be 256 - Unified Model - NCAS Modelling Support](https://cms-helpdesk.ncas.ac.uk/t/postproc-valueerror-incorrect-size-for-fixed-length-header-given-0-words-but-should-be-256/477)  
I followed the cms helpdesk suggestions and that sorted the problem.

Later, another set of errors appears in postproc

[ERROR] Seasonal mean for Summer 2010 not possible as only got 1 file(s):  
/work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data/cr649a.pm2010aug  
[FAIL] Command Terminated  
and  
[ERROR] Seasonal mean for Autumn 2010 not possible as only got 1 file(s):  
/work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data/cr649a.pm2010nov  
Which I sorted with the help of [Postproc\_cice missing file for seasonal mean - #5 by lmarshall](https://cms-helpdesk.ncas.ac.uk/t/postproc-cice-missing-file-for-seasonal-mean/68/5)

Now, I am getting again error in postproc with the annual mean calculation. The job.error file has following information.

[WARN] Iris Module is not available  
[WARN] Component(s) of the requested mean file are already in pp format:  
/work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data/cr649a.pm2010nov  
/work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data/cr649a.pm2010oct.pp  
/work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data/cr649a.pm2010sep.pp  
[WARN] Continuing. cr649a.ps2010son is assumed to have been created successfully.  
[ERROR] Annual mean for year ending November 2010 not possible as only got 2 file(s):  
/work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data/cr649a.ps2010djf, /work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data/cr649a.ps2010jja  
[FAIL] Command Terminated  
[FAIL] Terminating PostProc…  
[FAIL] main\_pp.py atmos \<\<‘STDIN\_\_’  
[FAIL]  
[FAIL] ‘STDIN\_\_’ # return-code=1  
2022-11-08T14:42:26Z CRITICAL - failed/EXIT

I have checked the directory: /work/n02/n02/alok/cylc-run/u-cr649/share/data/History\_Data and don’t find cr649a.ps2010mam file.

I think, this problem appears as I have deleted files with 0 lengths earlier to fix postproc error ValueError: Incorrect size for fixed length header; given 0 words but should be 256. How can I fix this problem?

Regards, Alok

---

<div class="post-metadata">

**Author:** ![alokpandey](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@alokpandey](https://cms-helpdesk.ncas.ac.uk/u/alokpandey)\
**Post date:** [16 November 2022 16:58 UTC](https://cms-helpdesk.ncas.ac.uk/t/postproc-error-annual-mean/781/2 "2022-11-16T16:58:08Z")

</div>

Dear CMS,

I have resubmitted the suite (u-cr649) and got an almost similar error again. I initially thought I have deleted the .ps files to get rid of the error caused due to zero-length files, but that is not the case. Actually, the model is not able to produce the seasonal mean files and that later does not allow the model to proceed further.  
The path of the error file on ‘pumanew’ is:  
/home/akpandeyjnu/cylc-run/u-cr649/log/job/20101201T0000Z/postproc/09

I have taken a copy of the u-cr649 and created a new suite (u-cr838) and switched off many diagnostics but that is also failing with a similar error.  
The path of the job.err file is  
/home/akpandeyjnu/cylc-run/u-cr838/log/job/20100401T0000Z/postproc/07/job.err

Is there any way to manually do postproc or /and allow model to not produce the seasonal and annual means?

Regards, Alok

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [16 November 2022 17:45 UTC](https://cms-helpdesk.ncas.ac.uk/t/postproc-error-annual-mean/781/3 "2022-11-16T17:45:09Z")

</div>

Hi Alok,

If you don’t want the means you can turn them off in panel _postproc → atmosphere → file transformation_

Cheers,  
Ros.
