...
Code Block | ||
---|---|---|
| ||
#!/bin/bash -l cd /wrkscratch/sinclair/oifs<your_experiments/AP_Tq106_dt1hr_v2/2000010100/troifs>/tc-karl/h7cc newid=${1?} echo ${newid} key="experimentVersionNumber" for file in *INI*; do echo ${file} id=$(grib_get -p $key -w count=1 $file) echo ${id} newgrb=${file/$id/$newid} echo "Changing expid from '$id' to '$newid' for $file writing to new file $newgrb." grib_set -f -s ${key}="$newid" -w ${key}="$id" $file $newgrb done |
...
Use the exptid
command (available here: /home/ectrain/your<your_troifstroifs>/perm/oifs43r3/bin
) to set the new experiment id to 'hecc
':
...