There’s also a version updated for python3 available in the pythonlib/umfile_utils/access_cm2
module. It differs in requiring a seed as an argument which makes it reproducible
module use ~access/modules
module load pythonlib/umfile_utils/access_cm2
perturbIC.py -h
usage: perturbIC.py [-h] [-a AMPLITUDE] -s SEED ifile
Perturb UM initial dump
positional arguments:
ifile Input file (modified in place)
options:
-h, --help show this help message and exit
-a AMPLITUDE Amplitude of perturbation
-s SEED Random number seed (must be non-negative integer)