Section | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Metview script: sst_modif.mv
A metview script has been provided that will allow changing the SST.
...
Code Block |
---|
cd scratch/inidir/ob01/2015110100 # go to directory with the initial files for the experiment cp ~/metviewmv/sst_modif.mv . # copy the metview script |
Description of sst_modif.mv
The script can be used in various ways to alter the SST field in the GRIB parameter STL1. The script takes care of the masking of the land values.
...
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 anomaly in the Pacific
In this example, we don't want to replace the SST with the climatology, but increase the Pacific SST anomaly compared to the climatology by a factor of 2.
...
so that the SST anomaly with respect to the climatology is added to the existing SST field over the Pacific, effectively doubling the strength of the El Nino signal there.
More complex scenarios
If more complex scenarios are necessary than supported by the above equation, the relevant code in sst_modif.mv to change is:
Code Block |
---|
g= g*lsmGrb + # STL1 values over land points; provided by fInit ref[idxRef]*(1-lsmGrb) + # STL1 values over sea points, outside AND inside box mask (pert[idxPert]-ref[idxRef]) * maskGrb * weight # weighted difference added to STL1 values INSIDE box mask |
Running the script
To run the script, type the command:
Code Block |
---|
metview -b sst_modif.mv |
This will may generate some warning messages which can be ignored. If the script completes successfully:
...
Info |
---|
Note that the metview command on cca only supported batch processing - no interactive display or plotting is possible. Do not set 'DoPlotDiff=1' if using this script on the HPCF (host 'cca'). |
Rename ICMCL files to run!
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:
...