Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.

...

To access the SCM interface metview_new has to be used. It can be started up by typing

metview_newmetview  &

on the command line. 

Copy the tutorial files

From a command line, type

Code Block
languagebash
/home/ectrain/trx/pa/scm_setup

 

From your main Metview desktop, you should now see a number of folders including one called SCM_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.nc) is recognised as a distinct filetype in Metview and this icon is assigned to it:

Image RemovedImage Added

Right-click this icon and select examine from the context menu. Metview's own netCDF examiner is started up showing the metadata content of the file.

Image RemovedImage Added

Now close the netCDF examiner.

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.nc by clicking on the icon name. Right-click this new icon and select edit from the menu. The Metview profile data editor pops up.

Image RemovedImage Added

This bespoke editor allows examining and modifying the data stored in the file.

...

  • the top side features a file information panel
  • the left hand side shows the data in a table view (one each column represent represents a given profile)
  • the right hand side displays the selected profile as a curve. There is a level range selector to the right of the curve plot. By dragging or resizing the orange rectangle the actual level range can be set arbitrarily.
Tip
titleHiding the file information panel

On smaller screens the file information panel may occupy too much space and thus reduces  the visible data/plot area. You can easily hide (or shown again) by using this toolbar icon:

Image Added

Profile selection

Profiles can be selected in various ways:

  • by clicking into table cell
  • by clicking on a table header
  • by clicking into the parameter list located above the profile plot (see the snapshot below).

Image Added

This list only contains the model level parameters and their colour code indicate whether they are editable (light beige) or not (dark beige). Use this button 

Image Modified

in the toolbar to show only the editable parameters.

Select the temperature profile - we will edit it in the next step.

Parameter editing

All the surface and soil parameters and a set of model-level variables are defined to be editable and their columns are highlighted in a brighter shade of beige.

Editing can be done by typing a new value in a table cell or by dragging the points of the curve. These actions are synchronised: any modification in the table view will be immediately reflected in the curve, and vice versa. Modified data values are highlighted in deep orange.

Now change some values in the temperature profile to see how editing works. Try both the table-based and graphical editing.

Image Modified

The redo/undo functionality works for all individual editing steps. You can access it via these toolbar buttons

...

Warning
titleSaving edited data

Please note that no changes are saved back into the edited file until you click Save or Ok (this performs save and closes the editor) in the bottom right corner of the editor window. There is another button here: Cancel, which closes the editor and rejects all the unsaved modifications.

Profile selection

Profiles can be selected in various ways:

  • by clicking into table cell
  • by clicking on a table header
  • by clicking into the parameter list located above the profile plot (see the snapshot below).

Image Removed

This list only contains the model level parameters and their colour code indicate whether they are editable (light beige) or not (dark beige). Use this button 

Image Removed

in the toolbar to show only the editable parameters.

Now change some values in the temperature profile to see how editing works. Try both the table-based and graphical editing.

 

Time stepping

You can easily navigate through the timesteps either by using the step combo box in the toolbar or the previous/next buttons next to it.

...

Double-click or right-click edit the namelist to see or change its content using Metview's own text editor. We will not make any changes to the namelist in this tutorial, so close the editor.

The SCM Run Icon

You can run the SCM in Metview by using the SCM Run icon:

...

To create a new SCM run icon, right-click in the Metview desktop and select 'Create new icon'. This will bring up the Create new icon dialogue.  In the dialogue just type "scm" into the Filter field then  click on the SCM Run icon in the icon list and wait until the newly created icon appears in your folder.)

The  most important parameters parameters you might need to edit in the  the SCM run icon are as follows:

  • define the path to the SCM executable (relative paths are allowed)
  • define the namelist for the SCM run

  • define the way the output data is treated. The output is always a netCDF. 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: /home/ectrain/trx/pa/master1c.exe.

...

If any errors or warning were generated these will be available in the icons output windowicon's output log, available through the Log entry in the icon's context menu. This window always shows the location of the STDOUT and the fort.20 file generated during the SCM run.

Image RemovedImage Added

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.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.

...

This icon allows the generation of the following plot types (specified in the Scm Plot Type parameter) :

Time Height Matrix
Image Removed
Image Added
Time Value Curve
Image Removed
Image Added
Profile
Image Removed
Image Added

Visualising a parameter as a time/value curve

...

Set the following parameters:

Scm Plot TypeTime Value Curve
Scm Output 1d VariablesLiquid Water Path

Make sure that only your desired variable is selected - you will have to de-select t_skin. Apply (save) Save the icon and right-click Visualise it to get an on-screen plot.

...

Try the following settings to obtain a matrix plot:

Scm Plot TypeTime Height Matrix
Scm Output 2d VariablesLw Radiative Flux

If comparing two SCM runs, the first will be represented with coloured shading, whilst the second will be drawn with isolines only.

...

To obtain a set of profiles, try these settings:

Scm Plot TypeProfile
Scm Output 2d VariablesTemperature

The Profile option produces a set of curves, with the intensity of the line colour representing the time step (the most intense, and dashed, line is time zero; the profiles become more faded as they go further into the future). The Scm Times parameter specifies the time slices to use (specified in minutes).

...