Section | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Metview script: sst_modif.mv
A metview script has been provided that will allow changing the SST.
...
Info |
---|
Before changing the SST, take a copy of a previous experiment and change the experiment id. |
...
In the experiment directory, make a copy of the metview script.
...
Date range: Other options exist in the script to make the modification apply only to certain dates, using the startDate and endDate values.
Example 1: Replacing the observed SST in the tropics with the climatology
In this example, we replace all the observed SSTs values in the tropics with the climatological SST.
...
Code Block |
---|
box=[10,-180,-10,-80] # N, W, S, E |
Example 2: Increasing the SST by factor of 2 in the Pacific
Running the script
To run the script, type the command:
Code Block |
---|
metview -b sst_modif.mv |
This will generate some warning messages which can be ignored. If the script completes successfully:
Code Block |
---|
.... process date=20160502 idxRef=184 idxPert=123 process date=20160503 idxRef=185 idxPert=124 process date=20160504 idxRef=186 idxPert=125 metview: EXIT (OK) (line 1), exit status 0, starting 'cleanup' |
Two new GRIB files will be created:
ICMCLob01INIT.modif - this is the new file with the modified SST fields.
stl1_modif_diff.grib - this is a GRIB file with the difference between the modified and original SST field. It can be used to generate plots of the SST differences using Metview.
Info |
---|
Note that the metview command on cca only supported batch processing - no interactive display or plotting is possible. |
Rename ICMCL files!
Final and important step, once the sst_modif.mv script has completed and you are satisfied with the changes in the SST field, remember to rename the files to replace the original, so that the model uses the modified file when starting:
Code Block |
---|
mv ICMCLob01INIT ICMCLob01INIT.old
mv ICMCLob01INIT.modif ICMCLob01INIT |
(substitute ob01 with your experiment id)Seeing the difference in SST