Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

From a command line, type

cd ~/metviewunzip home/scratchectrain/graphicstrx/cgipa/public/scm_tutorial.zipsetup

 

From your main Metview desktop, you should now see a folder number of folders including one called 'scmSCM_tutorial' - double-click to open it. It should contain two icons, and a folder with solutions like this:

Image RemovedImage Added

 

The SCM Input Data icon

Your input SCM data file (scm_in.trfas.nc) is recognised as a distinct filetype in Metview (by checking if the dataID global attribute is set to  "SCM_INPUT" or to a string starting with "scm_") and this icon is assigned to it:

...

We will create a copy of this data and edit it. Right-click the icon and select duplicate from the menu. Rename the copy scm_in_modified.trfas.nc by clicking on the icon name. Right-click this new icon and select edit from the menu. The SCM data editor pops up.

...

  • define the path to the SCM executable. If this path is not defined Metview tries to use the path defined by the MV_SCM_EXE env variable.
  • define the namelist for the SCM run

  • define the vtable file for the SCM run (you can leave this field blank, Metview will use the files from /vol/rdx_dir/scm/vtables) 

  • define the way the output data is treated. The output is always one netCDF file that Metview creates out of the three output netCDF files generated by the SCM. By default this is cached in a temporary directory, but it can be saved to a given path.

Image RemovedImage Added

Now double-click or right-click edit your SCM Run icon to open up its editor.

First, specify the path to your SCM executable via parameter SCM_EXE_PATH (do not forget to hit ENTER after typed in the path, this guarantees that the text will be saved when click Apply in the editor). If you do not have one available, you can use the one which was used in creating this tutorial: /scratchhome/graphicsectrain/cgitrx/publicpa/scmMASTERmaster1c.exe.

Second, drop your original unmodified input data icon icon into the SCM_INPUT_DATA_PATH field and your namelist into the SCM_NAMELIST fields, respectively.

...

Now duplicate your Scm Run icon and rename the copy Scm Run 2. Edit the new icon, right-click remove the Scm Input Data, then drop your modified input data icon (scm_in_modified.trfas.nc) into the Scm Input Data box in the editor. Save your changes, then execute this icon. You have now run the single column model on two different sets of input data, and the results are cached.

...

Info

The Scm Visualiser also contains parameters which can be used to change the x and y axis limits, and also to set the limits on the value range considered for shading in the matrix plots. An axis grid can also be enabled.

Info
The Scm Visualiser can also be used to plot the SCM input netCDF files - set Scm Data Type to Input; the parameters Scm Input 1d Variables and Scm Input 2d Variables become available.