...
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 |
Set new experiment id with the exptid
command
Use the exptid
command (available here: /home/ectrain/<your_troifs>/perm/oifs43r3/bin
) to set the new experiment id to 'hecc
':
Code Block |
---|
|
troifs0@cca-login3:> exptid -n ob01hecc ICM*ob00h7cc*
Changing expid from 'h7cc' to 'hecc' for ICMCLh7ccINIT and writing to new file ICMCLheccINIT.
Changing expid from 'h7cc' to 'hecc' for ICMGGh7ccINIT and writing to new file ICMGGheccINIT.
Changing expid from 'h7cc' to 'hecc' for ICMGGh7ccINIUA and writing to new file ICMGGheccINIUA.
Changing expid from 'h7cc' to 'hecc' for ICMSHh7ccINIT and writing to new file ICMSHheccINIT.
|
...