Adding new diagnostics via STASHmaster in UM RNS

Hello Atmos team,

I’m trying to output a new diagnostic in the UM RNS that isn’t available in the default STASH code. To do this, I’ve attempted to use a customized STASHmaster file. I copied and modified the default version from the “g/data/access/projects/access/umdir/vn13.0/ctldata/STASHmaster” path and updated the path in “install_cold/rose-app-nci-gadi“.

However, the model still seems to be defaulting to the original STASH settings (see below). Has anyone successfully implemented a custom STASHmaster before, or can you spot what I might be missing?

FILE_MANAGER: : id : stash_req_log

FILE_MANAGER: : Unit : 13 (fortran)

FILE_MANAGER: Assigned : windmax.dat

FILE_MANAGER: : Unit : 14 (fortran)

FILE_MANAGER: Assigned : STASHC

FILE_MANAGER: : Unit : 15 (fortran)

FILE_MANAGER: Released : Unit : 15 (fortran)

FILE_MANAGER: Assigned : /g/data/access/projects/access/umdir/vn13.0/ctldata/STASHmaster/STASHmaster_A

FILE_MANAGER: : Unit : 15 (fortran)

STASHmaster: /g/data/access/projects/access/umdir/vn13.0/ctldata/STASHmaster/STASHmaster_A

FILE_MANAGER: Released : Unit : 15 (fortran)

Many thanks,

Zhangcheng

So you’ve modified the UM source code to create a new field, and you’re wanting to output that field?

STASHmaster gets read in um/src/control/misc/ppxlook_mod.F90. This uses the environment variable $STASHMASTER as the directory containing the STASHmaster_A file.

If $STASHMASTER has not been set it gets defaulted to $UMDIR/vn$VN/ctldata/STASHmaster by um/bin/um_script_functions

2 Likes

Thanks Scott! I’ll give it a go once gadi is online :slight_smile:

Done! Really appreciate it Scott!