Versions Compared

Key

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

...

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.

Image RemovedImage Added

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

The editor's window is split into three parts:

  • the top side features a file information panel is located at the top
  • the left hand side shows the data in a table view (one column represent 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

Parameter editing

All the surface and soil parameters and There are a set of model-level variables are defined to be editable and their columns are highlighted in a brighter shade of beige. The editable variables are as follows:u, v, t, q.

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.

Image Added

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

 Image Added

or by the Ctrl+Z (undo) Ctrl+Shift+Z (redo) keyboard shortcuts.

If you would like to reject all your changes and go back to the last saved state just click on the Reset button in the bottom left corner of the editor window.

Image Added

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.

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 Added

in the toolbar to show only the editable parameters.

Now change

Image Removed

Try changing some values in the temperature profile , around the inversion.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.

Image Added

The step comb box indicates if a timestep was edited: for such steps a small "edited" icon appears next to the step label. 

Image Added

Overwriting time steps

What you have edited so far was one timestep (0h) only. Now you will learn how to overwrite the other timesteps with the data in the current one. First, ensure that you selected your modified timestep.  Second, click this button in the toolbar:

Image Added

You will see a dialog popping up asking you to confirm the changes. Please note that after this operation the redo/undo history gets deleted!

Finish editing

Having finished the modifications the data can be saved back to the netCDF file by clicking on the Ok button.

...