FYI in case it is useful for anyone reading in payu
this is done by setting shortpath
in config.yaml
shortpath: /scratch/$DATA_PROJECT
I also recommend setting the setgid bit on any output directories so that the files have the same group as that of the containing directory, namely $DATA_PROJECT
.