#2475 closed help (answered)

Location of postprocessing main file on Monsoon

Reported by: langtont Owned by: um_support
Component: UM Model Keywords:
Cc: Platform: Monsoon2
UM Version: 10.9


I'm looking at adding custom python scripts to the postprocessing routine done on Monsoon, but I can't seem to find the main_pp.py file that is triggered every cycle. I was wondering where on monsoon I can find this file and/or where I can run my own python routines when each cycle ends.

Many thanks

Change History (3)

comment:1 Changed 13 months ago by ros

The main_pp.py file is under ~/cylc-run/<suite-id>/share/fcm_make_pp/build/bin.

Depending on what you are trying to do it might be easiest to add a separate task to the suite.rc file so that it runs after the current post processing step and just calls your python script (which you manually put somewhere on Monsoon) direct from there.

If you give us some more information about what you are trying to do we can hopefully advise better.


comment:2 Changed 13 months ago by langtont

Thanks for the quick response. I need to deal with some instantaneously output data, to compile into a histogram and then save this into a pp file. Unfortunately due to the dimensionality I can't output this straight from the model so I'm having to do it in python each month, but the raw data volume is too large to justify saving all the data and dealing with it at the end of the run.

I therefore need to run this python script before the files are meaned, archived and wiped from local memory, so I thought running the scripts before the archiving takes place in postproc would be the best way of doing this.

Many thanks,

comment:3 Changed 12 months ago by langtont

  • Resolution set to answered
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.