MZ Generic
MZ Generic
Preprocessing
& Postprocessing
User Guide
Generic Editors and Viewers
LIMITED LIABILITY The liability of DHI is limited as specified in your DHI Software
Licence Agreement:
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
1.1 Introduction
The appearance of the Time Series Editor differs if you create a new (blank)
time series compared to opening an existing data (*.dfs0) file.
Creating a new time series requires specification of properties for the time
series file, and the File Properties dialog is therefore opened in this case.
If you are opening an existing time series data file, the data are immediately
presented in the Time Series data dialog where data can be viewed and
edited both in a graphical and in a tabular view. In this case, if you wish to
change the already defined file properties, it is required to open the File Prop-
erties dialog from the graphical view.
You operate the Time Series Editor from the main menu, the tool bar icons, or
by right-clicking on the graphical view.
It is possible to create a "Blank" data set, import from ASCII file, Excel or
KMD/KML2 file, or select from a number of pre-defined templates containing
different sets of properties.
If you chose "Blank Time Series", the File Properties Dialog is displayed with
a set of default properties. You can then customize the time series according
to your own needs.
If you choose to import from an ASCII File or Excel file and select the relevant
data file, the import dialog is displayed where you can set the properties for
the data.
If you choose one of the template files, the File Properties Dialog is displayed
with a set of properties specific to this template. It may not be possible to edit
all of the properties. The following templates are available:
This functionality can be used to import time series data from an ASCII file.
The data set can then be saved as a dfs file or exported to an ASCII file
again. Please refer to File Formats.
File to Import
On the Import from ascii dialog select the ASCII file from which you wish to
import the data. The ASCII file must have a certain format in order to be read
correctly, see File Formats.
Time description
Choose the axis type of the data in the ASCII file. It’s impossible to know
which axis type the data in the ASCII file has. So, the user interaction is
needed in this property. You can select all the axis types: Equidistant Calen-
dar Axis, Equidistant Relative Axis, Non-Equidistant Calendar Axis, Non-
Equidistant Relative Axis and Relative Item Axis. Please refer to Axis Infor-
mation
Delimiter
Choose the Delimiter that separates the data in the ASCII File. When you use
Time series Editor to export to ASCII, the TAB is used as delimiter.
Delete Value
Fill in the Delete Value used in the file. The Delete value should be a number
not typical for the data and that represents meaningless data. When a delete
value is found on the data, the correspondent cell in the tabular view is empty
and there is no point in the graphical view.
Preview
File preview
Just below the description properties, there is the file preview, where you can
see the top part of the ASCII file specified.
Import preview
Below file preview, there is the import preview. Here you can preview the
result of the import with the selected description properties and change the
properties till you get the expected result
After all description properties are set as wished, click the OK button and the
import is done.
This functionality can be used to import time series data from an ASCII file
where the data is structured in rows and columns. The data set can be saved
as a dfs file or exported to an ASCII or Excel file again.
File path
On the File Import dialog select the ASCII file from which you wish to import
the data. The ASCII file must be structured in rows and columns in order to be
read correctly.
Templates
It is possible to use a template for saving and reusing the properties on the
dialog for another import.
When you choose 'Save template file' and specify the location of the template
this will be saved with the defined properties when the ASCII file is imported.
If you choose 'Use template file' and specify a template file the properties will
be prefilled with values from the template.
Delimiter
Choose the delimiter that separates the data in the ASCII File.
Decimal separator
Choose the decimal separator used in the ASCII File.
Time description
Specify how the time is specified and in which format. It is possible to define
the time either by:
For either type the date and time format are specified with the relevant col-
umn.
Data description
The item type, unit and value type can either be specified in the dialog directly
or can be imported from the ASCII file. If specified in the dialog all time series
will get the same properties. If the property is imported from the ASCII file the
relevant row should be specified.
The row of the item description and the first data must always be specified.
If the Delete value is not empty it is possible to either specify it directly for all
time series or import from the ASCII file. The Delete value should be a num-
ber not typical for the data and that represents meaningless data. When a
delete value is found on the data, the correspondent cell in the tabular view is
empty and there is no point in the graphical view.
Preview
Input file
On the preview tab you will see the top part of the ASCII file specified.
Import result
Below the input file the import result is displayed. Here you can preview the
result of the import with the selected description properties and change the
properties elsewhere till you get the expected result.
This functionality can be used to import time series data from an Excel file if
Excel is installed on the computer. The data set can then be saved as a dfs
file or exported to an ASCII or Excel file again.
File path
On the File Import dialog select the Excel file from which you wish to import
the data.
Templates
It is possible to use a template for saving and reusing the properties on the
dialog for another import.
When you choose 'Save template file' and specify the location of the template
this will be saved with the defined properties when the Excel file is imported.
If you choose 'Use template file' and specify a template file the properties will
be prefilled with values from the template.
Excel Sheets
Specify the sheet number where the data should be imported.
Time description
Specify how the time is specified and potentially in which format. If no format
is specified it is assumed that the date and time are specified in the format
specified by Excel.
For either type the date and time format are specified with the relevant col-
umn.
Data description
The item type, unit and value type can either be specified in the dialog directly
or can be imported from the Excel file. If specified in the dialog all time series
will get the same properties. If the property is imported from the Excel file the
relevant row should be specified.
The row of the item description and the first data must always be specified.
If the Delete value is not empty it is possible to either specify it directly for all
time series or import from the Excel file. The Delete value should be a num-
ber not typical for the data and that represents meaningless data. When a
delete value is found on the data, the correspondent cell in the tabular view is
empty and there is no point in the graphical view.
Preview
At the top of the preview tab you will see the first part of the Excel file speci-
fied.
At the bottom of the preview tab you will see the result of the import with the
selected description properties and change the properties elsewhere till you
get the expected result
This functionality can be used to import time series data from a KMD or KM2
file. The data set can then be saved as a dfs file.
The Profile Evolution Hydrodynamics template creates a time series with the
following pre-defined properties
You can edit the title, the start time, the time step and the number of time
steps.
It is always possible to customize the data set. When the data set has been
created, you can right-click in the graphical view and select "Properties". The
File Properties Dialog is displayed, and all the properties can be edited.
Wind template creates a time series with the following pre-defined properties
The Title is Wind. You can edit the title, the start time, the time step and the
number of time steps.
It is always possible to customize the data set. When the data set has been
created, you can right-click in the graphical view and select "Properties". The
File Properties Dialog is displayed, and all the properties can be edited.
You can Export a Time series to an ASCII File. For further description of Time
Series File Formats, see File Formats.
Go to 'File', ‘Export’ and 'Export to Simple ASCII...'. In the pop-up window you
can specify where the ASCII File should be saved and under which File
Name.
The file is exported using default Time series Editor properties. When import-
ing an ASCII file exported by Time series Editor, just activate the Time Series
Export ASCII format property on the Import from ASCII dialog and the import
will be made with the expected result. Please refer to Import from ASCII File.
This functionality can be used to export time series data to an ASCII file.
File path
On the File Export dialog specify the output file.
Templates
It is possible to use a template for saving and reusing the properties on the
dialog for another export.
When you choose 'Save template file' and specify the location the template
the defined properties are saved when the ASCII file is exported.
If you choose 'Use template file' and specify a template file the properties will
be prefilled with values from the template.
Delimiter
Choose the Delimiter that separates the data in the ASCII File.
Decimal separator
Choose the decimal separator used in the ASCII File.
Format specification
Specify format and column for date and time.
Preview
In the preview area the result is previewed. If properties are changed the but-
ton 'Preview' will update the preview area.
This functionality can be used to export time series data to an Excel file if
Excel is installed on the computer.
File path
On the File Export dialog specify the output file.
Templates
It is possible to use a template for saving and reusing the properties on the
dialog for another export.
When you choose 'Save template file' and specify the location the template
the defined properties are saved when the Excel file is exported.
If you choose 'Use template file' and specify a template file the properties will
be prefilled with values from the template.
Data Format
Specify format and column for date and time. If no format is specified it is
assumed that the date and time are specified in the format specified by Excel.
Preview
In the preview area the result is previewed. If properties are changed the but-
ton 'Preview' will update the preview area.
Title:
The title for the data contained in the file. Any text can be typed here
Axis Type:
The type of the time axis. You can select between the following types:
Start Time:
The start time of the data. This is only relevant for calendar axis data. The for-
mat used is the standard windows format. To change this edit the regional
settings in the windows control panel.
Time Step:
The time step for the data. Only relevant when the time axis is equidistant
(Equidistant Calendar Axis or Equidistant Time Axis). You can specify days,
hour:minute:second and milliseconds. A time step of one hour would thus be
given as “01:00:00” in the [hour:min:sec] input box.
Axis units:
Spatial axis is not used in dfs0 files.
1.5.3 Precision
Item values in dfs0 files can be specified in single precision or double preci-
sion.
You can specify the delete values for single precision and double precision,
respectively. The allowed ranges for delete values are listed in the table
below:
You also have the opportunity to convert all items in the file to either single
precision or double precision with one click.
NOTE: The engines and tools in MIKE Zero are in general only validated for
use with input items in single precision. Using double precision may lead to
unexpected results. In some instances, e.g. when using the Passing Vessel
tool for Mooring Analysis, double precision items are expected.
Name:
Text that identifies the item.
Type:
The type of the data contained in the item, indicating if it is e.g. a water level,
wave height, etc. It is possible to select from a number of types using the
combo box which appears if you click in the field. If a type not contained in the
list is needed, write the type in the text field. This also applies to the unit
below.
Unit:
Text that identifies the unit of the item. Unit is always related to the type. It is
possible to select from a number of units using the combo box which appears
if you click in the field. If a unit not contained in the list is needed, write the
unit in the text field.
Precision
You can specify an item to save values in either single precision or double
precision.
NOTE: The engines and tools in MIKE Zero are in general only validated for
use with input items in single precision. Using double precision may lead to
unexpected results. In some instances, e.g. when using the Passing Vessel
tool for Mooring Analysis, double precision items are expected.
TS Type:
The type of the time series for the item. It’s used to specify the meaning of the
data values. You can select between the following types:
The representation for each of the TS Types is different, since the physical
meaning of values is also different. You can read more about TS Value types
in Appendix A.5 in file ‘SDK_UserGuide.pdf’ supplied with the installation of
MIKE SDK.
Pos (x,y,z):
Coordinate that identifies a spatial location related to the item values.
Min.:
Minimum value for all data in the item. This value is not editable since it’s
based on statistical information of the Item.
Max.:
Maximum value for all data in the item. This value is not editable since it’s
based on statistical information of the Item.
Mean:
Mean value for the data in the item. This value is not editable since it’s based
on statistical information of the Item.
Insert:
Insert an item before the selected one. This item will be named “Untitled” and
you can immediately edit the Item properties.
Append:
Append an item at the end of the list. This item will be named “Untitled” and
you can immediately edit the Item properties.
Delete:
Delete the selected item. You cannot delete an Item if it is the last one in the
list, but trying to delete it causes that all properties in the Item will be cleared.
You can select entire rows or columns by clicking on one of the grey cells.
Data can be cut and pasted freely.
The time column is greyed out for equidistant axis, as editing the time has no
meaning in that case.
The time is shown in the default windows format selected on your computer.
You can change this by editing the regional settings in the windows control
panel.
You can move around in the table by using the arrow buttons or the TAB or
ENTER keys. If the TAB and ENTER key is pressed at the right most column,
the active cell is moved to the first column in the next line. This can be used
to quickly enter data in a typewriter fashion. SHIFT+TAB or SHIFT+ENTER
works the other way. If you are at the bottom right cell of the table and press
TAB or ENTER, a new row is added. The time is extrapolated from the previ-
ous values and the item values are empty.
The currently selected cell can also be seen in the Graphical View as a
square around the value that corresponds to it.
By pressing the right mouse button a pop-up menu is displayed. This menu
can be used to zoom, enable options, customize the representation, select
sub-sets are select which items are shown.
You can know the precise point where the mouse pointer is positioned look-
ing at the Status Bar at the bottom of the screen.
1.7.1 Zoom
You can zoom in and out on the data shown, use previous zoom, use next
zoom or refresh the view using the Zoom In, Zoom Out, Previous Zoom, Next
Zoom and Refresh commands accessible from the menu that pops up right
clicking on the view, from the View menu or even from the Zoom toolbar
The first icon represents the Zoom In command, the second one the Zoom
Out, The third one the Previous Zoom, the fourth one the Next Zoom and the
fifth one enables or disables the grid lines in the view, which is also accessi-
ble from the menu that pops up right clicking on the view.
When you zoom in, scroll bars are displayed at the bottom and right hand
side of the view. You can pan by moving the scroll bars.
Select points: allows you to select points. When clicking in a point that
point is selected. A red square around the point appears and the corre-
spondent cell in the Tabular View is selected
Move points: allows you to move points. When the mouse pointer is near
a point, the pointer becomes a moving cross and you can move the point
by moving the mouse pointer while keeping the left button of the mouse
down (drag)
Insert points: allows you to insert new points in the data set just by posi-
tioning the mouse pointer where the new point shall be located and click
the left button. When this mode is enabled, the mouse pointer becomes
a pencil. It’s only possible to select this mode in a Non Equidistant Axis
type.
Delete points: allows you to delete points. When this mode is selected,
when the mouse pointer is near a point, the pointer becomes a rubber
and clicking on the left button of the mouse, deletes the point. The point
is not deleted from the data but its value is set to empty.
You can select these four modes through the pop-up menu, the Edit menu or
using the Mode Toolbar
The first icon enables the Select Points Mode, the second one enables the
Move Points Mode, the third one enables the Insert Points Mode and the
fourth one enables the Delete Points Mode.
When a file is opened, all items contained in the file are by default plotted.
The title contained in the file is used as an header and the item names are
displayed in the upper left hand corner of the plot.
If data are associated with a calendar axis, the date and hour is plotted at
appropriate intervals. If data are associated with a relative axis, a normal X
axis is shown.
The axes are scaled automatically so all data presented are shown.
The appearance of the text and graphics can be controlled through the graph-
ics and font commands in the Settings menu or the pop-up menu.
In the graphics settings, you can select which point style (or no point at all)
you want to use for each item, which line style (or no line at all) you want to
use to connect the points and the text format to apply to the points labels (if
desired).
In the font settings, you can select the font, font style, size, font effects and
font colour to use in the legends.
Step Accumulated: A line is drawn from the x-axis previous time step till
the point.
Mean Step Accumulated: A line is drawn from the previous time step till
the current time step with the value at current time step
Reverse Mean Step Accumulated: A line is drawn from the current time
step till the next time step with the value at current time step
On the left hand side, the dialog shows the items organized in a tree struc-
ture. Each item has branches for points, lines and labels. By selecting a
branch it’s settings can be changed in the right hand side of the dialog.
For points, you can select the point mark, the point mark colour, the point
mark fill style and the point mark size and you can also enable/disable the
point marks.
For lines, you can select the line style, the line colour, the line fill style and the
line thickness and you can also enable/disable lines.
For labels, you can select the text justification, the text colour, the text back-
ground style and you can also enable/disable labels.
It is also possible to control if items are displayed or not by using the right
mouse button on top of the item name in the tree structure.
You can select the font, font style, font size, font effect like strike out, under-
line and colour and the script (language resource) to use for special charac-
ters.
Note that files can be converted from one format to the other, i.e. saved in a
different format than they opened in, but with restrictions (see below).
DFS:
This format is developed by DHI for storage of hydrodynamic time varying
data. Both zero, one, two and three dimensional data can be stored, although
only zero dimensional data is relevant for the time series editor.
Files saved in this format must have the extension .dfs0 or .dfs. dt0 is also
allowed, since it is the old time series file format.
Simple ASCII:
This is a generic text format which can be produced by almost any spread-
sheet or text editors. Only non-equidistant calendar axis data can be saved in
this format. Files must have the following format:
Title
Time Itemname 1 Itemname 2
Unit 100182 1003 2 100256 1800 1
1996-12-24 18:00:00 1.23 2.34
1996-12-24 18:30:00 1.44 3.38
1996-12-24 19:00:00 2.12 4.63
etc...
The second line contains the string “Time” followed by the name of the items.
The list is separated with tabs.
The third line is optional. It contains the string "Unit" followed by three values
per item specifying unit item type, unit type, and time series values type, usu-
ally as a result of a previous export.
Each of the following lines contain data for one time step. Each line consists
of a date and time followed by one field for each of the data items.
The date and time format follows the ISO standard 8601, which is YYYY-
MM-DD HH:MM:SS. Between the date and time there can be a 'Space' or the
letter 'T'. Following the time there must be a Tab and each of the data items
must be separated by Tabs.
Note, that the date and time format shown in the example above is not the
same as in the tabular view, and therefore you cannot paste the example data
into that view.
Files saved in this format can have any extension except .dfs0 and .dfs.
1.11 Tools
This is a set of tools available to work with the time series data.
Tools are accessible through the Tools menu or by clicking on the desired tool
icon on the Tools Toolbar:
1.11.1 Calculator
You can access Calculator tool from Calculator in the Tools menu or by click-
ing the Calculator icon in the Tools Toolbar (the second icon in the Tools Tool-
bar).
Here you can specify the calculation to make and which Item to set the calcu-
lated data in.
Target Item specified which item will have the data set based on the calcula-
tion specified. Item is specified by ‘i’ followed by the number of the item
sequence in the time series.
You can insert a Operand, which basically, is an item. the value of the Oper-
and item is then used to make the calculations of each of the time steps (all
time steps in the item or all the time steps in the current Sub-Set that you can
specify).
You can also insert an Operand which basically is + for addition, - for subtrac-
tion, * for multiplication and / for division as well as a mathematical function
from the functions list.
Note that values in trigonometric functions are defined in degrees.
As an example, if you select the target item as item 2, then insert item 3 as
Operand, then insert Operator +, then insert item 4 as Operand, then insert
Operator /, then insert function cos and finally insert item 1 as Operand, you
should get the final expression of i2 = i3 + i4 / cos(i1).
You can also specify a Sub-Set where the calculation will be made, using the
tab Sub-Series that appears when you select Current Sub-Set. Please refer
to Select Sub-Set.
1.11.2 Interpolation
You can access Interpolation tool from Interpolation in the Tools menu or by
clicking the Interpolation icon in the Tools Toolbar (the fourth icon in the Tools
Toolbar).
You can choose where to interpolate. If you select Entire Data-Set, the inter-
polation will be done in the entire data of the currently selected item (the one
that corresponds to the current cell selected in the Tabular View).
If you select Current Sub-Set, the interpolation will be done in the Current
Sub-Set. You can also select at this moment the Sub-Set to use, using the tab
Sub-Series that appears when you select Current Sub-Set. Please refer to
Select Sub-Set.
You can also specify which items to interpolate, using the Item Range tab that
appears when Current Sub-Set is enable in the Interpolation Dialog. Please
refer to Select Sub-Set.
In the Interpolation tab you can also select how the data is interpreted. Since
each TS Type has a different physical meaning, the interpolation is handled in
a different way for all the 4 types. Only Instantaneous, Accumulated, Step
Accumulated and Mean Step Accumulated TS Types are supported.
NOTE: An item with an item type describing directional data, e.g. Wind Direc-
tion, is automatically interpolated using a circular interpolation method when
the data is interpreted as Instantaneous.
You can also specify the maximum allowed gaps (missing values) so that
interpolation is done. Activating Use Max. Gap length you can specify the
maximum allowed gap duration. If a gap bigger than the length specified is
found, interpolation will not be done for this time step(s).
You can access Select sub-Set tool from Select Sub-Set in the Tools menu,
by clicking the Select Sub-Set icon in the Tools Toolbar (the first icon in the
Tools Toolbar) or by selecting Select Sub-Set from the menu that pops up
right clicking on the Graphical View.
Here you can specify the time where the Sub-Set begins and the time where
the Sub-Set ends or, alternatively, the time step where the Sub-Set begins
and the time step where the Sub-Set ends. Clicking on the Select All button,
selects the entire data set.
Clicking on the tab Item Range you can also specify which items belong to
the Sub-Set.
1.11.4 Statistics
Statistics tool is used to view statistical information for all the items in the time
series data set.
You can access Statistics tool from Statistics in the Tools menu or by clicking
the Statistics icon in the Tools Toolbar (the third icon in the Tools Toolbar).
On the Statistics dialog, you can see the all item Names, all item Minimum
values, all item Maximum values, all item Mean values, all item Standard
Deviation values and the number of missing values (delete values) for the
Entire Data-Set.
You can also specify use Sub-Set clicking on the Current Sub-Set. To specify
a different Sub-Set, please refer to Select Sub-Set.
This tool can be used to edit the custom blocks of a file. Custom blocks are
data in dfs files where miscellaneous information about the file is kept.
2 Introduction
The appearance of the Profile Series Editor differs if you create a new (blank)
profile series compared to opening an existing data (*.dfs1) file.
Creating a new profile (or line) series requires specification of properties for
the profile series file, and the File Properties dialog is therefore opened in this
case.
If you are opening an existing profile series data file, the data are immediately
presented in the Profile Series data dialog where data can be viewed and
edited both in a graphical and in a tabular view. In this case, if you wish to
change the already defined file properties, it is required to open the File Prop-
erties dialog from the graphical view.
You operate the Profile Series Editor from the main menu, the tool bar icons,
or by right-clicking on the graphical view.
Tools
Calculator- transform the data using expressions that involve the data itself,
the time step etc.
3 Properties
It is possible to create a "Blank" data set, import from ASCII file or select from
a number of pre-defined templates containing different sets of properties.
If you choose “From ASCII File”, the import from ascii Dialog is displayed
where you can set the properties to import from ascii.
If you choose a “Template”, the File Properties Dialog is displayed with a set
of properties specific to this template. It may not be possible to edit all of the
properties. The following templates are available:
Cross-shore profile
Pier Resistance Profile
ADCP Vector Plot
1: Bathymetry (m)
2: Bed roughness (m)
3: Non-erodible bed (m)
4: Mean grain diameter, d50 (mm)
5: Geometrical Spreading ((d84/d16))
The Start time is the time of creating the file. Internally the DATA TYPE
Parameter is set to 101.
You cannot edit the number of time steps, the number of items and the item
definitions.
It is always possible to customize the data set. When the data set has been
created, you can right-click in the graphical view and select "Properties". The
File Properties Dialog is displayed, and all the properties can be edited.
This file describes the parameters necessary for including the resistance
effect from a pier into the hydraulic simulation. A pier data file is a profile data
file where the number of time steps in fact is the number of piers, i.e. the time
axis in the data file is not a true time axis. In the same way, the spatial axis is
not a true spatial axis, but merely a collection of data describing the pier. The
pier data file has the layout depicted in Figure 3.2.
The Pier Resistance template creates a profile series with the following pre-
defined properties:
Equidistant Calendar Axis with 1 time step and 10 seconds time step
The Start time is the time of creating the file.
10 grid points with 1 meter grid step to be used when defining the pier
position and pier layout.
It is always possible to customize the data set. When the data set has been
created, you can right-click in the graphical view and select "Properties". The
File Properties Dialog is displayed, and all the properties can be edited.
Please see the HD Reference Manual in the MIKE 21 Flow Model, Hydrody-
namic Module, User Guide for further description of the pier data.
This file describes velocity components formatted for plotting in the ADCP 2D
Plot option. Each grid step denotes a measuring point where the velocity is
measured at one specific level.
The ADCP Vector Plot template creates a profile series with the following pre-
defined properties:
5 Items:
1: Offset (seconds)
2: Easting (m)
3: Northing (m)
4: u-velocity component (m/s)
5: v-velocity component (m/s)
The Start time must be defined as the start of the survey time. The actual time
of the measurement is then defined by the start time plus the offset given in
item 1.
It is always possible to customize the data set. When the data set has been
created, you can right-click in the graphical view and select "Properties". The
File Properties Dialog is displayed, and all the properties can be edited.
Note: The orientation given in the Geographical Information dialog only refers
to the orientation of the profile line and will not be the same as the orientation
that is defined for certain pre-defined LITPACK file types.
Title:
The title for the data contained in the file. Any text can be typed here
Axis Type:
The type of the time axis. You can select between the following types:
Equidistant Calendar Axis: Data is stored with a fixed time interval and
start at an absolute date and time.
Equidistant Relative Axis: Data is stored with a fixed time interval, but do
not have a absolute start date and time. The start time is not applicable in
this case.
Start Time:
The start time of the data. This is only relevant for calendar axis data. The for-
mat used is the standard windows format. To change this edit the regional
settings in the windows control panel.
Time Step:
The time step for the data. Only relevant when the time axis is equidistant
(Equidistant Calendar Axis or Equidistant Time Axis). You can specify days,
hour:minute:second and milliseconds. A time step of one hour would thus be
given as “01:00:00” in the [hour:min:sec] input box.
Grid Step:
The grid step for the data. The unit is meters.
Name:
Text that identifies the item.
Type:
The type of the data contained in the item, indicating if it is e.g. a water level,
wave height, etc. It is possible to select from a number of types using the
combo box which appears if you click in the field. If a type not contained in the
list is needed, write the type in the text field. This also applies to the unit
below.
Unit:
Text that identifies the unit of the item. Unit is always related to the type. It is
possible to select from a number of units using the combo box which appears
if you click in the field. If a unit not contained in the list is needed, write the
unit in the text field.
Min.:
Minimum value for all data in the item. This value is not editable since it’s
based on statistical information of the Item.
Max.:
Maximum value for all data in the item. This value is not editable since it’s
based on statistical information of the Item.
Insert:
Insert an item before the selected one. This item will be named “Untitled” and
you can immediately edit the Item properties.
Append:
Append an item at the end of the list. This item will be named “Untitled” and
you can immediately edit the Item properties.
Delete:
Delete the selected item. You cannot delete an Item if it is the last one in the
list, but trying to delete it causes that all properties in the Item will be cleared.
You can select entire rows or columns by clicking on one of the grey cells.
Data can be cut and pasted freely. You can move around in the table by using
the arrow buttons or the TAB or ENTER keys.
The time column is greyed out, as editing the time has no meaning in an equi-
distant time axis.
The time is shown in the default windows format selected on your computer.
You can change this by editing the regional settings in the windows control
panel.
The currently selected cell can also be seen in the Graphical View (p. 57) as
a square around the value that corresponds to it.
The tabular view per default shows all time steps for one item. In the Naviga-
tion View dialog under ‘Options’ you can select to show all items for one time
step.
You can define how to display the values in the Tabular View by setting the
cell style:
General
The cell format is chosen as the most optimal with largest detail
Fixed
Value is shown as a decimal number with a fixed number of decimals
Scientific
Value is shown in scientific mode with a defined number of digits
By pressing the right mouse button a pop-up menu is displayed. This menu
can be used to zoom, enable options, customize the representation, select
sub-sets are select which items are shown.
3.5.1 Zoom
You can zoom in and out on the data shown, use previous zoom, use next
zoom or refresh the view using the Zoom In, Zoom Out, Previous Zoom, Next
Zoom and Refresh commands accessible from the menu that pops up right
clicking on the view, from the View menu or even from the Zoom toolbar.
When you zoom in, scroll bars are displayed at the bottom and right hand
side of the view. You can pan by moving the scroll bars.
The appearance of the text and graphics can be controlled through the graph-
ics and font commands in the Settings menu or the pop-up menu.
In the graphics settings, you can select which point style (or no point at all)
you want to use for each item, which line style (or no line at all) you want to
use to connect the points and the text format to apply to the points labels (if
desired).
In the font settings, you can select the font, font style, size, font effects and
font colour to use in the legends.
The navigation dialog is used to position the editor at the desired item for all
time steps or at the desired time step for all items. Simply choose the wanted
item and time step and close. If you want to switch to another view, click the
appropriate view at the bottom of the dialog.
Note that files can be converted from one format to the other, i.e. saved in a
different format than they opened in, but with restrictions.
3.7.1 DFS
Files saved in this format must have the extension .dfs1 or .dfs. dt1 is also
allowed, since it is the old profile series file format.
3.7.2 ASCII
The lines in the Header Information must appear in this order and fields must
be separated with tabs. The first item in the lines of the Header Information is
a string, i.e. 'Title', ‘Dim’, ‘Geo’, 'Time’, etc. The Header Information ends with
an empty line.
Data follows after the Header Information and must be arranged in blocks.
Each block represent one time step. An example of a data block is shown
below:
tstep 0
0.483734 3.11164 107.877 31.5283
0.484118 3.11231 107.92 31.5208
0.484501 3.11299 107.962 31.5133
0.484883 3.11368 108.004 31.5058
0.485263 3.11438 108.046 31.4983
0.485643 3.11508 108.087 31.4908
0.486021 3.11579 108.128 31.4833
0.486399 3.11651 108.169 31.4757
<Empty line>
Items as rows
This way the values for grid step 0 for the items are shown in the left col-
umn, the grid step number increase to the right
Files saved in this format can have any extension although dfs1, dfs and .dt1
should be avoided.
These files typically contain model grids, hydrodynamic data, model results
etc.
To import profile data, go to ' File', ' New' and select ' Profile Series' under the
MIKE Zero heading. This will open the ' New File' dialog. Choose 'From ASCII
File', and press 'OK'.
On the 'Import From ASCII' dialog select the ASCII File from which you wish
to import the data. The ASCII File must have a certain format in order to be
read correctly, see File Formats (p. 58).
To complete the importing of data press 'OK'. Thereafter the new DFS File is
shown with the Profile Editor. Here you can edit data and finally save the DFS
File.
Open the DFS File (*.dfs1 or *.dfs) in the Profile Editor. Go to 'File' and
'Export to ASCII'. In the pop-up window you can specify where the ASCII File
should be saved and under which File Name.
4 Tools
4.1 Calculator
This tool can be used to assign values or apply mathematical expressions to
a selected interval of time steps and spatial data for the active item. The
active item can be selected under the View menu under Items.
This is where you construct the expression for the calculation. The way the
expression is built depends on whether the expression should work on a sin-
gle or multiple time steps. If the expression should work on only a single time
step, the expression can be built by selecting first the target item, which is the
location of the results of the calculation. You can then select either:
As you build the expression, it will be shown in the "Current Expression" field
where you can further modify the expression manually.
If the expression should work on multiple time steps, the target and operand
are not selectable, but should always be "t" - the operand could also be "n" for
the position in the profile.
Once you are familiar with the calculator functions you can create the expres-
sion directly in the "Current Expression" field. The drop down arrow to the
right of the field allows you to re-use and modify previously constructed
expressions.
On this dialog you select the range of time steps and grid points for which the
expression should be executed.
You can either enter a starting and ending grid point number or select all data
("Select All" button).
You can either enter a starting and ending time step number or select all data
"Select All" button). The "Select Current" button will select only the time step
currently active in the view.
4.2 Interpolation
This tool can be used to fill data cells which contain missing values by inter-
polating in time or space between the nearest non-missing data cells for the
active data item. The item is activated under the View menu under items.
Interpolate on
First select the data set and item range over which you want the interpolation
function performed. If you choose "Entire Data Set" all data will be gap fill
interpolated in either time or space. Otherwise, if you choose "Current Sub-
set", only the selected grid points for the active item will be operated on.
Interpolation Type
Depending on the type of data, the interpolation can be handled in two ways.
The data can be interpolated in:
Spatial dimension
Time dimension
Interpolating in space can be useful if you have two or more water level
measurement at two or more gird points, and you want to interpolate the
water level for the grid points in between.
4.2.2 Sub-set
On these dialogs you select the range of time steps and grid points for which
the Interpolation/Gap filling should be performed.
You can either enter a starting and ending grid point number or select all data
("Select All" button).
You can either enter a starting and ending time step number or select all data
"Select All" button).
5 Introduction
The appearance of the Grid Series Editor differs if you create a new (blank)
time series compared to opening an existing data (*.dfs2) file.
Creating a new grid (or matrix) series requires specification of properties for
the grid series file, and the File Properties dialog is therefore opened in this
case.
If you are opening an existing grid series data file, the data are immediately
presented in the Grid Series data dialog where data can be viewed and
edited both in a graphical and in a tabular view. You cannot directly change
the already defined file properties of a grid series.
You operate the Grid Series Editor from the main menu, the tool bar icons, or
by right-clicking on the graphical view.
By selecting Blank Grid you must define the grid parameters as described in
the section New Grid Series File (p. 73).
By selecting From ASCII File you must follow the instructions given in section
Import from ASCII File (p. 75).
By selecting From Dfsu File you must follow the instructions described in the
section Import from Dfsu File (p. 76).
Graphical View (p. 86) - about the graphical view of the data
Tabular View (p. 85) - about the tabular view of the data
New Grid Series File (p. 73) dialog - to create a new dataset
Tools
Navigation (p. 91) - to navigate in the dataset in time and how to select
an item
Set Value (p. 95) - to assign a value to a selection of grid cells
Filter (p. 94) - to filter a selection of data (e.g. smooth the data)
Crop (p. 100) - to discard some of the data and keep the rest
Calculator (p. 95) - transform the data using expressions that involve the
data itself, the time step etc.
Interpolation (p. 93) - fill blank values
Copy File into Data (p. 98) - import data from another dataset
Toolbars (p. 88) - the Windows toolbars associated with the Grid Editor
6 File
Note that files can be converted from one format to the other, i.e. saved in a
different format than they opened in, but with restrictions.
Files saved in this format must have the extension *.dfs2, *.dfs3, *.dt2 and
*.dt3.
The lines in the Header Information must appear in this order and fields must
be separated with tabs. The first item in the lines of the Header Information is
a string, i.e. 'Title', 'Dim', 'Geo' etc. The Header Information ends with an
empty line.
Title
Dimension: Can be either 2 or 3.
Data follows after the Header Information and must be arranged in blocks. An
example of a data block is shown below:
The first data blocks must contain the Static Items. The Dynamic Items follow
and must be presented in the following order:
Files saved in this format can have any extension although dfs2, dfs3, dfs, dt2
and dt3 should be avoided.
You can save your grid file as a Grid State File (.gsf). This will save your nor-
mal grid file together with extra information about a specific palette and back-
ground layers if any.
Figure 6.1 Example of saved grid file in gsf-format as interpreted by the grid editor.
2D and 3D refer to the number of dimensions of the grid in space. Both types
of grids can have one or more time steps, see step 3.
6.2.2 Step 2: Specify the projection, the geographical position of the origin of
the dataset and the orientation
The two specification modes are linked such that e.g. when modifying the ori-
gin using the Map projection values, the Geographical coordinates will auto-
matically be updated accordingly.
The geographical position of the origin of the grid is defined as the centre
point in the first grid cell (j,k) = (0,0).
Furthermore, the orientation of the grid at the origin must be specified. This is
defined as the angle between true north and the y-axis of the grid measured
clockwise. A mnemonic way of remembering this definition is by thinking of
NYC, which normally means New York City, but which for our purpose means
"from North to the Y-axis Clockwise", see the figure below.
the type of axis, only choice is equidistant, meaning a constant time step
between the grids
The grid can contain several items. Give the item(s) a name and select the
item type from the list. A unit has been defined for each item type, and this
unit will automatically be set when choosing the item type. If you cannot find
the item type that you need, then use 'undefined'. Using the 'Insert', 'Append'
and 'Delete' options you can manage the list of items.
All values in the grid will be initially set to the delete value specified on this
page. This means that values that are not somehow filled later in the editing
process will have the delete value.
These files typically contain model grids, wind fields, model results etc.
To import grid data, go to ' File', ' New' and select ' Grid Series' under the
MIKE Zero heading. This will open the ' Grid Series' dialog. Choose 'From
ASCII File', and press 'OK'.
On the 'Import From ASCII' dialog select the ASCII File from which you wish
to import the data. The ASCII File must have a certain format in order to be
read correctly.
To complete the importing of data press 'OK'. Thereafter the new DFS File is
shown with the Grid Editor. Here you can edit data and finally save the DFS
File.
6.3.3 Hint
Creating a frame from an existing file can make it easier to create the header
for the ASCII file to be imported. Simply by exporting an existing file to ASCII
and change the relevant header information and include the actual data after
the header file.
Please notice that if the EUM Data Type and EUM Unit for an item does not
match according to the Unit Base Group definition, then the file cannot be
created.
Open the DFS File (*.dfs2, *dfs3 or *.dfs) in the Grid Editor. Go to 'File' and
'Export to ASCII'. In the pop-up window you can specify where the ASCII File
should be saved and under which File Name.
Note: You can only import dfsu files describing the horizontal domain. It is not
possible to create a dfs2 file from a dfsu file describing a vertical boundary.
On the 'Import from dfsu file' dialog select the Dfsu File from which you wish
to import the data.
You must specify the geographical position of the origin of the new grid and
the orientation of the grid.
The projection of the geographical coordinate system is read from the Dfsu
file.
You must specify the number of grid points and the grid spacing in each direc-
tion, respectively.
To complete the importing of data press 'Finish'. Thereafter the new DFS File
is shown with the Grid Editor. Here you can edit data and finally save the DFS
File.
In case you want to apply bathymetry data within a geographical domain you
need to modify the third value in the M21_Misc custom block to -900 in order
for the program to recognize the map projection, see
MIKE 21 / MIKE 3 specific (p. 83).
7 Edit
Cut/Copy/Paste
Cuts, copies and pastes your selected data through the Windows clipboard.
Copy/Paste View
Copies and pastes the current view between different instances of Result
Viewer, Data Viewer, the Graphical overview tab in the FM Input Editor, Data
Manager and the Grid Series Editor.
The two specification modes are linked such that e.g. when modifying the ori-
gin using the Map projection values, the Geographical coordinates will auto-
matically be updated accordingly.
The geographical position of the origin of the grid is defined as the centre
point in the first grid cell (j,k) = (0,0).
Furthermore, the orientation of the grid at the origin must be specified. This is
defined as the angle between true north and the y-axis of the grid measured
clockwise. A mnemonic way of remembering this definition is by thinking of
NYC, which normally means New York City, but which for our purpose means
"from North to the Y-axis Clockwise", see the figure below.
It is possible to specify the start date and time for the file as well as the time
step interval between the time steps.
7.4 Items
The Items dialog is used to manage the items in the file.
The grid can contain several items. Give the item(s) a name and select the
item type from the list. A unit has been defined for each item type, and this
unit will automatically be set when choosing the item type. If you cannot find
the item type that you need, then use 'undefined'. Using the 'Insert', 'Append'
and 'Delete' options you can manage the list of items.
For new items all values in the grid will initially be set to the delete value
specified on this page. This means that values that are not somehow filled
later in the editing process will have the delete value.
Copy
1. Insert or append a new item.
2. Select the item (row) to copy by clicking on the left most (grey) cell and
press Ctrl+C.
3. Select the newly created item (row) by clicking on the left most (grey) cell
and press Ctrl+V.
The properties and values of the new item will be identical to the original item
Delete value
It is not recommended to change the delete value in an existing file since all
un-specified values are set to the delete value. After a change, these values
will be interpreted as non-delete value.
Each axis is defined by origin grid number, number of grid points and grid
spacing. It is not possible to edit the number of grid points for an existing grid
series file.
Item 3: code for identifying whether or not the data contains geographical
information; it is -900 if it contains geographical information.
Item 4: the zland value, the value above which bathymetric data (the data
itself in case of bathymetry data file; the prefix record containing the
bathymetry in other cases) is considered as land.
Item 5-6: are more free and may have different meaning in different situ-
ations.
8 View
The graphical view appears to the left-hand side of the Grid Editor editor. On
the right-hand-side you have the Tabular View.
You may adjust the relative size of the graphical view and the tabular view by
adjusting the splitter bar between the views.
Use the mouse or the arrows to highlight a block of cells. The use cut
(ctrl X), copy (ctrl C) and paste (ctrl V) as usual. These actions may be
reversed by using undo (ctrl Z)
You can move around in the table by using the arrow buttons or the TAB
or ENTER keys. If the TAB and ENTER key is pressed at the right most
column, the active cell is moved to the first column in the next line. This
can be used to quickly enter data in a typewriter fashion. SHIFT+TAB or
ENTER works the other way
Cell Format
You can define the cell format by selecting Tabular View at the bottom of the
drop-down menu for View.
Decimal point
Please note that the tabular view always represents numbers with a '.' as the
decimal point, regardless of which representation is used by the Windows
system. You should be aware of this when copying numbers to and from
other applications that may use a different notation.
In 3D you may select the jk-plane, the jl-plane or the kl-plane by selecting the
appropriate property page at the bottom of the graphical view.
8.3 Palette
The colour palette is used to specify the colours used for shading of the
graphical view according to contour levels. A palette may be created and
saved for later use.
If you want to save the palette together with the specific grid file, you can use
the Grid State Format (p. 72).
8.4 Overlay
A number of items can be laid over the graphical view for various purposes.
Many of these options are switched on and off.
Selection - highlights the cells which have been selected by use of the
Selection tool.
Map Projection Net…- lines of constant Eastings and Northings are over-
laid.
North Arrow - shows an arrow indicating the direction towards the geo-
graphical north pole
You can select which map projection net to overlay. Per default the displayed
map projection net is defined as in the data file.
Choose here how you would like the mouse pointer coordinates to be dis-
played. The options are (x,y)-coordinates, (lon,lat)-coordinates or UTM-coor-
dinates (the UTM-zone is defined by the information in the dfs2 file).
It is possible to zoom into a particular area by defining the grid coordinates for
the lower left and upper right corner.
Having zoomed into an area, it is possible to move the view area by the pan
functionality: press the shift button while moving the mouse.
8.11 Toolbars
Two toolbars are particular to the Grid Editor:
These toolbars provide easy and convenient access to a number of tools that
are also available from the Grid Editor menu bar.
Pointer
Select item
When the pointer is in the graphical view, the status bar shows you the coor-
dinates of the point and the value at the point that you are pointing at.
9 Tools
9.1 Navigation
The navigation dialog is used to position the editor at the desired layer of data
(in 3D) at the desired time step and the desired item. Simply choose the
wanted layer, time step and item and close. When you are working with a 3D
dataset and want to switch to another plane, you should click the appropriate
view at the bottom of the graphical view.
You may also conveniently use the Grid Editor Toolbars for navigating the
data.
9.2 Go to
Using this option your active cursor will move to the minimum or maximum
value in the Tabular View.
9.3 Synchronize
Synchronize tab to map moves the Tabular View to the area displayed in
the centre of the Graphical View.
Synchronize map to tab moves the Graphical View to the area displayed in
the Tabular View.
9.4 Selection
These menu entries under Tools are used to activate the tools for making a
selection of grid cells that can then be processed in different ways. You can
also use the Select a Sub-Set of Data property page that are included in
many of the tools in the Grid Editor.
The Select tool is accumulative in the sense that the selections are combined
into one selection. To start from scratch you should un-select the cells. You
can also use the below tools in a deselect mode, such that you 'subtract' the
cells from the selection. There are a number of selection tools available:
Points
Use this tool to point to individual cells that you want to select. Click once at
each cell
Lines
Use this tool to select the cells along a line that you define. The cells nearest
this line will be selected. The line needs not be straight, but it can consist of a
number of straight segments. Click at points on the line and double click on
the last point
Polygon
Use this tool to select the cells inside a polygon. Click at each corner and fin-
ish by double clicking
Rectangle
Use this tool to select the cells inside a rectangle. Place the pointer at one
corner of the rectangle and pull it towards the opposite corner. When the
desired rectangle is shown, then click the mouse
View
Use this tool to select the cells shown in the current view
All
Use this tool to select all cells in the active dataset
Values
Use this tool to select the cells which do not have delete values
Many of the tools in the Grid Editor operate on a sub-set of selected data from
the dataset. The active data are defined in the 'Sub-Set' property page.
Sub-area: choose either the points which have been selected using the
Selection option in the graphical view, or all grid points in the plane
To change the position of the editor while the Subset page is invoked press
the "Navigation..." button to get access to the Navigation dialog.
9.5 Interpolation
This tool can be used to interpolate in the data and fill cells with missing val-
ues.
The active data are defined in the “Select a Sub-Set of Data” page.
This parameter will determine how the interpolation will weigh the values
used in the interpolation according to the distance from the interpolation point
to these points. The weights can be based on the inverse of the distance, the
distance squared or the distance cubed, in order to vary the relative weight
given to the nearest points relative to points further away.
Land points can be ignored. This is very important when using artificial values
to indicate land, because if such values are included in the interpolation this
may lead to falsified results.
Linear search
Depending on the type of data which are interpolated there may be an inter-
est to restrict the search for values to base the interpolation on to either verti-
cal or horizontal lines (i.e. along one or the other grid axis). One example
hereof could be bathymetric data in the surf zone where such data could be
obtained from a ship sailing along lines. Here the outcome of the interpolation
could vary significantly depending on the choice of search type.
Area integrated
Area integrated type for interpolation performs a convolution when calculating
the interpolated value. The algorithm starts it’s search in the current point and
searched in a rectangular area around the point. The size of the rectangle is
defined by the "Area side length". "Number of points" defines how many
neighbouring grid points that is used in the interpolation. If e.g. 20 is specified
in "Number of points" the search algorithm finds the 20 closest points inside
the specified rectangle and performs an inverse distance weighted interpola-
tion raised to the specified power chosen in interpolation settings.
9.6 Filter
This tool is used to perform digital filtering operations on the active data. The
active data are defined in the “Select a Sub-Set of Data” page.
Averaging Filter
Averaging Filter
Averaging Filter
Sharpening Filter
Sharpening Filter
Land values and delete values can be included in the calculations or ignored.
Typically delete values should not be included in the filtering process since
they represent 'empty' cells. Instead these cells could be filled by Interpola-
tion prior to the filtering. When filtering near land, the inclusion of land values
may lead to a falsification of the data for example when an artificial constant
land value has been specified in a bathymetry dataset.
Set value: set all the active data to the specified value
Add value: add the specified value to all the active data
Multiply value: multiply all the active data by the specified value
The active data are defined in the “Select a Sub-Set of Data” page.
9.8 Calculator
This tool can be used to assign values to a dataset. It can be done in terms of
a simple value or as an expression. If an expression that includes the current
value (s) is used, no changes will be made to data points which current value
equals the delete value.
Active Dataset
The active data are defined in the “Select a Sub-Set of Data” page.
Expression
Then construct the expression for the calculation. As you input the expres-
sion, it will be shown in the field below. There are three types that you can
insert in the expression.
Operands: j, k, l are the indices for the grid cell in the x-, y- and z-directions,
respectively, and s is the cell value itself
The Calculator allows you to compose your own expressions that can be
used to modify values in data sets. Below you will find a table with a list of the
mathematical functions you can choose between, which arguments they take
and which result they return.
exp (x) The exp function returns the exponential value of the
floating-point parameter, x
Active Dataset
The active data are defined in the “Select a Sub-Set of Data” page.
Statistics
The calculated values includes the minimum, maximum and mean value and
the standard deviation.
Furthermore a block diagram shows the distribution of the values in the inter-
vals defined by the Palette.
If you edit a 2D data file you may copy data from a 2D data file.
If you edit a 3D data file you may copy data from either 2D or 3D data files.
Select the items from which data should be copied and the corresponding
items to which data should be copied.
When copying a 2D file into a 3D file you can choose to populate either one
particular layer in the 3D file or all layers.
Give the coordinates in the grid being edited where the origin of the data to be
copied should be positioned. As an example, we have a grid with the dimen-
sions (0:20,0:20) and we wish to copy data into the rectangle given by the
four points (10,14), (13,14), (13,17) and (10,17). We select a file which has
data in a grid (0:3,0:3) and specify j-origin=10 and k-origin=17. This will place
the copied data in the desired rectangle.
The copied data can be placed in the dataset being edited from a given time
step and forwards. You can specify either the time step or the time. If you
specify the time, and that time is not coincident with a time step in the edited
dataset, then the nearest time step which is shown in the time step origin edit
field will be used.
9.10.6 Operation
When the data is copied to the dataset, this may be done in a number of
ways:
Copy (all values are copied such that they replace the existing data in the
dataset)
Copy if target differs from delete value
Copy if source differs from delete value
Copy if source AND target differs from delete value
+: the values are added to the existing data in the dataset
-: the values are subtracted from the existing data in the dataset
*: the existing values are multiplied by the values in the file
/: the existing values are divided by the values in the file
9.11 Crop
This tool is used to crop (or reduce) the dataset in one or more ways.
Spatial cropping
Use this option to crop the data to a smaller spatial coverage. Choose a rec-
tangular area either as the current view or as the area described by the coor-
dinates given by you. The data outside the selected area will be discarded.
Item cropping
Use this option to choose the items to keep, the rest of the items are dis-
carded.
Time cropping
Use this option to discard time steps in the dataset. The data outside the cho-
sen interval will be discarded. The time interval can be selected in terms of
the time or the time step number.
10 Data Overlay
If you want to save a link between the overlay file file image and the specific
grid file, you can use the Grid State Format (p. 72).
In the Overlay Manager you specify which layer(s) to display and the
display order. Remember to adjust the transparency level in Grid
Settings (p. 87).
The Bathymetry Editor provides a work environment for creating, editing and
presenting detailed digital bathymetries.
The Bathymetry Editor includes utilities for importing raw data from various
external sources (i.e. xyz soundings, xyz contours, MIKE 21 formatted data),
or to manually create data by using the built-in drawing tools. To aid the pro-
cess of editing data and to use for presentations, graphical background
images such as maps can be imported and overlaid with the bathymetry data.
Creating a new Bathymetry Editor setup first of all requires that the geograph-
ical workspace area be defined. If you are opening an existing bathymetry
editor specification file, the working area with all saved settings is presented
on the screen.
The Bathymetry Editor is operated from the main menu, the tool bar icon or
from the menu selection obtained by right-clicking on the graphical display of
the working area.
Various interpolation options are available to you to provide the best possible
method for your type of data.
When the bathymetry has been prepared, you can use the export utilities to
output bathymetry data in various formats.
12 Getting Started
The following example provides you with an introduction to the Bathymetry
Editor.
The Define Working Area dialog will appear, see Figure 13.1. Define your
Work Area sufficiently large such that it covers a geographical area which
contains all relevant data.
objects and will be displayed at the correct geographical positions within the
previously defined Work Area.
Hint: Select "WorkArea -> Settings" and under "Background Objects" find the
"Land/Water Lines" and adjust the "Thickness" to (say) 1 to obtain a nice
thickness of lines drawn between land/water points. Similar adjustment might
be useful for the "Point Size" of "Land/Water Points".
Hint: Select "WorkArea -> Settings" and under "Background Objects" find the
"Points" and adjust "Point Size" to (say) 0.5 to obtain a nice size of these
background objects.
1. Mark your points by selecting "Import from Background" and drag pointer
to select area of selected points.
4. The selected points are now changing colour again and are ready to be
included in the generation of the bathymetry.
To generate a bathymetry from the imported xyz data select "WorkArea ->
Bathymetry Management -> Interpolate".
To save the temporary bathymetry file on the harddisk (using a default name)
save your work by “File -> Save”.
To save the bathymetry file by a specific name use "WorkArea -> Grid
Bathymetry Management -> Export".
Your gridded bathymetry data file is now found in the same folder as the
.batsf file.
To generate a bathymetry from the imported xyz data select "WorkArea ->
Line Bathymetry Management -> Interpolate".
To save the temporary bathymetry file on the harddisk (using a default name)
save your work by “File -> Save”.
To save the bathymetry file by a specific name use "WorkArea -> Line
Bathymetry Management -> Export".
Your line bathymetry data file is now found in the same folder as the .batsf
file.
13 Dialog Overview
The bathymetry editor provides you a work environment for creating, editing
and presenting detailed digital bathymetries.
This is where you can define a new Workspace Area from which you can cre-
ate a bathymetry.
Map projection
The map projection defines the local coordinate system/rectangular area in
which the data is specified. It is best to select a map projection that result in a
minimum of distortion of the spatial data.
changed you will get the opportunity to select how to synchronize the coordi-
nates of the origin of the local coordinate system.
Geographical origin
The coordinates of the origin may be defined in two ways:
The two specification modes are linked such that e.g. when modifying the ori-
gin using the Map projection values, the Geographical coordinates will auto-
matically be updated accordingly.
Note that you can change the origin of the workspace again at a later time if
necessary.
Spatial Extent
The extent of the working area is defined by the width and height of a rectan-
gular coordinate system, oriented towards north. The properties and units of
the coordinate system correspond to the given Map projection and the origin
of the working area is defined by the given longitude and latitude of the Geo-
graphical origin.
Note that you can change the dimensions of the workspace again at a later
time if necessary.
Undo
This will undo your last operation
Cut/Copy/Paste
Cuts, copies and pastes your selected data through the Windows clipboard
Delete
Deletes your selected data. The DELETE keyboard command will also per-
form the same function.
This menu pop-up is where you enter the Current Contour Level (depth).
After you set the Current Contour Level value, all manual input data will
acquire that depth value until you change the value of the Current Contour
Level.
New
New Bathymetry is where you can define a grid bathymetry within the work-
space.
Edit
Edit Bathymetry is where you can edit the definition of a previously defined
grid bathymetry.
Delete
This is where you can delete a previously defined grid bathymetry.
Export
Export Bathymetry is where you can export the grid bathymetry to various for-
mats such as binary data files or ASCII formats or as a depth encoded
BITMAP graphic file.
Interpolate
Interpolate Bathymetry is where you can define the interpolation method and
interpolate the defined grid to a digital grid.
New
New Bathymetry is where you can define a line bathymetry within the work-
space.
Edit
Edit Bathymetry is where you can edit the definition of a previously defined
line bathymetry.
Delete
This is where you can delete a previously defined line bathymetry.
Export
Export Bathymetry is where you can export the generated line bathymetry to
a dfs1 file.
Interpolate
Interpolate Bathymetry is where you can define search radius for the points
used in the interpolation.
Import
Normally you first import data in the background into your work area. Types of
data which you can import into the background include digitizer files, MIKE 21
XYZ-files, graphical BITMAP and GIF file formats. Before you can import
graphical files into the Bathymetry Editor, you need to rectify the image to a
compatible coordinate system defined for your work area. (see MIKE Zero
Image Rectifier for details on preparing graphic files for the Bathymetry Edi-
tor).
When you import MIKE 21 XYZ files you can specify the source coordinate
system. When the XYZ-file is selected but before the “Open”-button is
pressed or a double click is executed, the source coordinate system can be
specified by selecting from the “Convert from”-combo box. Coordinates can
be imported without conversion, as longitude/latitude or by various map pro-
jections. Note that datum shift will not be considered during this automatic
conversion.
A number of background sources can be imported into your work area. If you
no longer need a background source, simply highlight the background source
you want to delete and then click the DELETE option.
You can export selected raw data to xyz format using this facility. Two ASCII
files will be generated. A land file and a water file.
This is where you can re-define your Workspace Area with a new Spatial
Extent and a new Geographical Origin.
13.4.7 Settings
The settings panel allows you to control the attributes for the 4 main layers;
Bathymetry Objects, Line Bathymetry Objects, Raw Data Objects and Back-
ground Objects. By turning on or off certain layers you can view and edit
these layers either individually or in combination with other layers. You can
display each object as either points, lines or labels where you can also define
the point size, line size and colour given to each layer independently.
Bathymetry Objects
Bathymetry Objects are those that have been interpolated into a fixed grid.
You can control Point, Line and Label attributes.
Background Objects
Background objects are those you have imported, but are not yet available to
be interpolated. You can control background objects defined as Points, Con-
tour Points, Contour Lines, Land/Water Points, Land/Water Lines and Labels.
To bring background images and data into the Foreground and produce Raw
Data Objects, you should use the Toolbar Functions.
You can set the font attributes here from this menu.
If you have imported a graphical image into the Background objects, then you
can turn the display of the background on or off here.
You define a digital grid by specifying the Geographical Origin and Orienta-
tion of the grid (in UTM or Geographic coordinates), and some Overall
bathymetry properties that includes the grid resolution and specification of
land.
Geographical Origin
You must specify the position of the origin for your grid bathymetry in map
projection or Long/LAT coordinates.
The geographical position of the origin of the grid is defined as the centre
point in the first grid cell (j,k) = (0,0).
Orientation
The orientation of your grid is defined as the angle between true north and
the y-axis of the grid measured clockwise (“North to Y orientation”). A mne-
monic way of remembering this definition is by thinking of NYC, which nor-
mally means New York City, but which for our purpose means "from North to
the Y-axis Clockwise", see Figure 13.10.
The grid rotation defines the clockwise rotation of the grid from map projec-
tion north to model north (y-axis of the grid).
Please Note: In general the grid rotation is not equal to the North to Y orien-
tation as the map projection north deviate increasingly from true north the
longer away from the centre of the map projection domain the model area is
placed, see Figure 13.11.
Figure 13.11 Left: Chart north (Nc) and true north (NT) for single UTM zone.
Right: Difference between Grid rotation and North to Y orientation.
Grid Dimensions
You must specify the number of grid points in the x and y directions.
Land Value
You must specify the limiting grid cell value defining land. All values above
this will be considered to be land.
Display Border
You can choose to display the boundary of your defined grid in the Work Area
after interpolation.
You can re-define a previously defined digital grid here by changing the origin
(in UTM or LONG/LAT coordinates), the orientation of the grid, the x and y
grid spacing, the number of grid points in x and y, and the land value.
You can use this facility to export your interpolated digital grid to another for-
mat such as binary data files or ASCII formats, or to a graphical Depth
BITMAP file.
This is where you specify how your raw data is interpolated to the fixed grid
as has been specified in the bathymetry definition.
1. Polygon Fill
2. Extensive
If your land boundaries have been entered as polygons, then all areas inside
the polygon are assigned the value of +10m which is the usual default land
value. If you are using land polygons you would choose the polygon fill
method. This is a much faster interpolation scheme than the Extensive
method that interpolates all grid points based on nearest raw values. You
would choose the extensive method if you do not have land polygons, or if
you want to interpolate true topographic elevations.
1. Bilinear interpolation
Four points from the raw data, in the vicinity of the actual point, are found
in such a way that there is a point in each quadrant. These points now
form a quadrangle (or quadrilateral) that encapsulates the grid point.
You define a digital line by specifying the Geographical origin and Orientation
of the line (in map projection or geographic coordinates).
You also define some overall Overall bathymetry properties that includes the
type of line and line resolution.
Geographical origin
You must specify the position of the origin for your line bathymetry in map
projection or Long/LAT coordinates.
Orientation
The orientation of your line is defined as the angle between true north and the
direction of the line measured clockwise.
Please Note: In general the line rotation is not equal to the North to Y orienta-
tion as the map projection north deviate increasingly from true north the
longer away from the centre of the map projection domain the model area is
placed, see Figure 13.16.
Figure 13.16 Left: Chart north (Nc) and true north (NT) for single UTM zone.
Right: Difference between Line rotation and North to Y orientation.
Cross-shore profile
(will contain bathymetry values along the line)
Coastline position
(will contain distance from raw points to the line)
Grid Spacing
You must specify the distance between grid points along the line.
Grid Dimensions
You must specify the number of grid points on the line.
Display Line
You can choose to display the extension of your defined line in the Work
Area.
You can re-define a previously defined digital line here by changing the origin
(in UTM or LONG/LAT coordinates), the orientation of the line, the grid spac-
ing and the number of grid points.
You use this facility to export your interpolated digital line to a dfs1 file.
This is where you specify how your raw data is interpolated onto the fixed line
that as has been specified in the bathymetry definition.
Search radius
You specify a search radius that defined how near the points have to be to the
defined line in order to be included in the interpolation.
Linear interpolation
The data on the line is derived by first projecting the raw data points perpen-
dicular onto the line. The values on the line is then interpolated linearly and
the values extracted in the grid point positions along the line.
Zoom Functions
Grid Function
Pick Mode
Pick Mode. When you enable pick mode, raw data points (foreground points)
can be selected by dragging the mouse over the points of interest while
depressing the left-mouse button.
Move Mode
Move Mode. If you depress the left-mouse button while over a point you wish
to move, the point can be dragged to a new location.
Import From Background mode. With this mode, you can select the back-
ground points you want to be brought to the foreground to become part of the
digital grid bathymetry. Click the Import From Background toolbar button.
Highlight the background points you wish to import (single points or area
selection). After the background points have been highlighted you then click
on the Import From Background toolbar button again. The background data
will be transferred to the foreground and become raw data points.
Add Data Points Mode. In this mode, you click the mouse on a position in the
work area, resulting in a raw data point with a depth equal to the current con-
tour level.
Add Contours Mode. In this mode, you hold down the left-mouse button and
drag the mouse. It will place consecutive points of a contour line in the work
area as raw data points with a constant depth equal to the current contour
level.
Add Land/Water Polygons Mode. In this mode, you hold down the left-mouse
button and drag the mouse. This will place consecutive points of a polygon
used to define land/water boundaries. These points will go into the raw data
layer. For land the current contour level should be set to a value of +10.
Add Points to Contours or Land/Water Polygons Mode. In this mode, you hold
down the left-mouse button near the end point of a contour or polygon. This
will allow you to add more points to the existing contour entity.
NOTE
The minimum digitization distance between consecutive points when digitiz-
ing in the Bathymetry Editor is 5 units of whatever local coordinate system the
working area has been defined in. When working in longitude/latitude type
coordinate systems, this is a significant distance and the user will experience
it impossible to digitize when working in smaller areas. In such cases, the
user should digitize in an alternate coordinate system using length units. The
digitized values may then be exported to a xyz file and subsequently imported
into a Bathymetry Editor setup using a longitude/latitude type coordinate sys-
tem.
Providing these new generation models with a suitable mesh is essential for
obtaining reliable results from the model simulations. MIKE Zero offers the
MIKE 21 Flow Model FM, MIKE 3 Flow Model FM and MIKE 21 Spectral
Wave Model FM, which all are based on a flexible mesh.
Figure 14.1 Land/Water boundary for a domain covering the Planet Earth
You generate a mesh file with the MIKE Zero Mesh Generator. The mesh file
is an ASCII file (.mesh extension) that includes information of the geographi-
cal position and water depth at each node point in the mesh. The file also
includes information about the node connectivity of the triangular and quad-
rangular elements. All the specifications for generating the mesh file are
saved in a Mesh Definition File (.mdf extension), which can be modified and
re-used.
The Mesh Generator includes utilities for importing raw data from various
external sources (e.g. XYZ soundings, XYZ contours, MIKE 21 bathymetries,
MIKE C-MAP exported data), or to manually create data by using the built-in
drawing tools. You can import background images such as maps in the Mesh
Generator and use them when editing data or for e.g. enhancing presentation
graphics.
14.1 Concepts
Your work with the Mesh Generator revolves around inserting and defining
nodes, vertices, arcs and polygons. It is therefore important that you under-
stand the meaning of these concepts, shown in Figure 14.2.
A node defines the start and end point of an arc. A closed arc will only
have one node while an open arc will have two nodes.
NOTE: The terms domain area and workspace area refer to the areas that
are to be modelled with one of the FM models and the area in which you are
working within the Mesh Generator, respectively. The domain area is a subset
of the workspace area.
The numeric value of the attribute field (the field labeled ‘a’ on the dialog) is
important. The value is used to distinguish between the different open bound-
aries in the mesh. Later when you apply the generated mesh in a model
setup, you will be asked to associate each open boundary defined in the
mesh with a boundary condition. You shall use a value of ‘1’ for all closed (i.e.
land-water) boundaries in the mesh, whereas all open boundaries must be
defined with a number > 1.
Note: Per default the Mesh Generator assumes that all boundaries are land
boundaries when generating the mesh. I.e. you only have to specify attribute
values for open boundaries.
Hint: you can select an arc and specify an arc attribute value, which willthen
be used as attribute for all points (vertices and nodes) along the arc.
In this menu you may define the selection property (node, rectangle or poly-
gon) or change the view.
15 Getting Started
15.1 Introduction
This chapter offers a brief introduction to mesh generation with the Mesh
Generator. The following example guides you through the setup of a mesh for
Funningsfjord - a fjord on the Faeroe Islands.
.\Examples\MIKE_Zero\MeshEdit
The Mesh Generator starts by prompting you for a map projection as shown
in Figure 15.1.
The Mesh Generator then creates a workspace and you are ready to initiate
with the mesh creation process.
The easiest way to define model boundaries is by using the MIKE C-MAP
tool. MIKE C-MAP is a global database with water depth and land-water
boundaries. You can zoom to a specific area in MIKE C-MAP and export
land-water boundaries and water depth values for use with the Mesh Genera-
tor.
The area from where data has been extracted is shown in Figure 15.2.
From the Data menu please select the Import Boundary… menu item and
browse to the land.xyz file. After having selected the land.xyz file, you will be
presented with a Boundary Attribute dialog as shown in Figure 15.3.
In this menu you shall specify the layout of the land.xyz file, the projection of
the data and how to interpret the data. The Reference Guide provides details
on import formats.
NOTE: The projection here is specified as LONG/LAT meaning that the data
in the land.xyz file are in longitude and latitude. The Mesh Generator will con-
vert the longitudes and latitudes to easting and northing coordinates in the
UTM-30 projection.
The Mesh Generator reads the data file and updates the workspace as
shown in Figure 15.4.
It is only the area in fjord itself that shall be modelled, i.e. the Mesh Generator
shall only generate a mesh within the fjord. From Figure 15.4 it can be seen
that the area to be modelled consists of:
One open model boundary at the north-east corner of the model area
Land boundaries along the west and east part of the fjord
The next step involves cleaning the workspace for unnecessary land-water
boundary points.
Please start by deleting the points and arc segments from the left part of the
workspace. You select the Delete points button (the eraser) in the toolbar and
click on the points and arcs in the left part of the window. This is illustrated
below in Figure 15.5.
You may delete entire arcs and related points by first selecting the arc by the
arc selection tool, and then pressing the Delete key on the keyboard, see
Figure 15.7.
Please note that the land boundary as shown in Figure 15.8 consists of one
open arc (with two nodes). This has been achieved by converting all land
nodes to vertices. During this process make sure that possible holes in the
land boundary are closed - depending on how you have cleaned the work-
space you might have to close holes.
A new arc closing the fjord must be drawn at the upper right corner of the
model area. This new open boundary arc uses the same nodes as the land
boundary arc. To draw this arc, select the Draw Arc tool and click on the 2
nodes at the entrance of the fjord, see Figure 15.10.
Please select the Select Arc function in the editing toolbar and select the
Open Boundary Arc. Right click and select properties. In the dialog box
please specify the arc attribute as 2, see Figure 15.11. This is an indication to
the model simulation program that this is an open boundary.
Note: Arcs - and node attributes - are per default 0. During export of a gener-
ated mesh, all arc and node attributes with a value of 0 are converted to 1. An
attribute value of 1 indicates land. You shall therefore always use a value of 2
or higher as attribute value. Use the same attribute value for boundary nodes
and arcs that shall be exposed to the same boundary conditions.
From the Mesh menu please select the Generate Mesh… menu item. The
Triangulation dialog appears. Please specify the values as shown below in
Figure 15.12 and click Generate.
Note: The Boundary Definition toolbar becomes disabled when the mesh has
been generated and the Mesh Editing toolbar is enabled instead. If the mesh
is deleted from the workspace the process is reversed. Pls. see Toolbar
Functions (p. 209).
Please delete the mesh by selecting the Mesh menu and then the Delete
Mesh menu item. Thereafter select the Land Boundary Arc and right-click the
mouse and select Redistribute vertices. You are presented with a dialog box
as shown in Figure 15.14.
Please specify the values as shown in Figure 15.14 and press OK.
Note: You should always try with a preview before accepting the redistribu-
tion. With very complex geometries, the redistribution can fail with an unusa-
ble land boundary as result.
The new land boundary should be as shown in Figure 15.15. As you can see,
the land boundary appears much smoother.
Note: The points are placed much more regular along the boundary line than
what was the case with the “raw” boundary line as shown in Figure 15.13.
Please select the Smooth mesh… menu item in the Mesh menu and specify
10 as the number of iterations.
In Figure 15.17 you can see the effect of smoothing the mesh.
Before you can interpolate the Z-values at the mesh nodes, you must
import scatter data to interpolate from. You add scatter data from the
Manage Scatter Data… menu item in the Data menu.
Please select the water.xyz file and specify LONG/LAT as projection. After
importing the data your display should look as shown in Figure 15.18.
You can now interpolate the imported scatter data to the mesh nodes. Select
the Interpolate… menu item in the Mesh menu. Accept the default values and
select Interpolate. After the interpolation has finished, click the Close button
and the depth interpolated mesh is displayed as a contour plot. See
Figure 15.19 for the result.
Note: It is possible to modify the applied colour palette for scatter data and
contours individually by selecting menu items in the Data menu and Mesh
menu, respectively.
You can now refine the mesh in order to take the water depth into considera-
tion. In the Mesh menu select the Refine mesh… menu item, choose the
Depth/gradient option, accept the default values and click the Refine button.
A subset of the mesh before and after refinement mesh is shown in
Figure 15.20.
Figure 15.20 Detail of mesh before (left) and after (right) refinement
You should be able to notice that the areas of the triangles are smaller close
to land than out in the middle of the fjord.
Another way to achieve this is by dividing the model area in different zones -
or polygon areas - and defines different maximum element areas for each
zone. This method gives you more control of the mesh generation than refin-
ing a mesh relative to the water depth.
In the present example you would probably like to have the inner part of the
fjord resolved with smaller elements than the outer part.
Please delete the mesh by selecting the Mesh menu and the Delete Mesh.
Thereafter you should divide the model area into two zones - an inner and an
outer zone. You do this by converting two vertices half-way up the fjord - one
at each side of the fjord - to nodes by right-clicking the vertex and select Ver-
tices to Nodes. You can then draw an arc between the two nodes and thus
divide the model area into two zones. This is illustrated in Figure 15.21.
Note: In Figure 15.21 a number of vertices have been placed between the
two nodes. The mesh generation algorithm will use these vertices when gen-
erating the mesh. In this way, You can control the layout of the meshes close
to the borderline between the two zones.
You place a polygon marker in the two zones by clicking the Insert Polygon
button in the toolbar and then click first in the outer and then in the inner
zone. This is shown below in Figure 15.22.
You now have to select the zones and define the maximum element area.
Please, click the Select Polygon button in the toolbar, select the inner polygon
marker and right-click and select properties. You will be presented with a dia-
log box as shown in Figure 15.23.
Make sure that the Apply Triangular mesh is selected and then specify that
the triangulation algorithm shall use a local maximum element size of 5000.
Do the same for the outer area and specify 40000 as local maximum element
size.
You are now ready to make the mesh. In the Mesh menu, select the Generate
Mesh… menu item. The result is shown in Figure 15.24.
Figure 15.24 Triangulation using two zones with different maximum element areas
From Figure 15.24 it is clearly seen that the mesh elements now are smaller
in the inner part of the fjord than in the outer part.
4. Define a new polygon marker in the new inner polygon. Select the poly-
gon marker (this will highlight the polygon and show the arc attribute val-
ues)
5. Right click to select Properties. Use the tick box to define the polygon as
a quadrangular mesh and specify the options shown in Figure 15.26
6. Generate a mesh - in the Mesh menu select the Triangulate… menu item
First interpolate the scatter data into the node points as shown in section
15.11 while using the triangulated mesh from section 15.12. This creates the
bathymetry information that ensure that all options in the Mesh Analysis dia-
log is available.
Select Mesh in the Toolbar, Mesh Editing and then Analyse Mesh. This will
give the Analyse Mesh dialog shown in Figure 15.28.
The two first options in the Analyse Mesh dialog calculates the time step con-
straints for each mesh element based on the CFL stability criteria. The latter
two options analyse the mesh solely defined on the mesh element geometry.
Selecting the zoom button for the smallest time step at the top of the table will
cause the display to mark the grid cell and zoom into the local area, see
Figure 15.29.
Note: Choosing some of the other analysis options will reveal that the CFL
criteria causes the most severe time restriction.
Figure 15.29 Marked grid cell for smallest restrictive time step when calculation is
based on the water level.
By using the information from the analysis it is possible to optimize the mesh
layout by modifying the mesh resolution locally around the critical mesh ele-
ments.
You can now try to optimize the mesh by adding or deleting node points using
the Mesh Editing toolbar. Note that each edition may change the result of the
analysis.
16 Reference Guide
The following describes the main functions that are available to you from the
menubar.
File/New Menu
You use the New menu item in the File menu to create a new mesh docu-
ment, i.e. mesh definition file. The only information you initially must specify is
the geographical projection of the mesh.
File/Open Menu
You use the Open menu item in the File menu to open an existing mesh doc-
ument file. All mesh documents have a .mdf as file extension.
16.2.1 Undo
You use the Undo menu item to undo the last change made to the mesh doc-
ument. All changes made during an edit session are recorded and can be
undone. However, you can define a limit for the number of changes to record
from the Options menu item (p. 170).
Note: You can use the keyboard shortcut Ctrl-Z to activate the undo function.
16.2.2 Redo
You use the Redo menu item to redo an undo action. If you have undone too
many changes you can come back to a previous state by using the redo func-
tion.
Note: The redo stack is cleared the first time you make direct changes to a
mesh definition, e.g. inserting new nodes.
You can use the keyboard shortcut Ctrl-Y to activate the redo function.
16.2.3 Delete
You use the Delete menu item to delete all selected features, e.g. nodes or
arcs.
Note: You can use the keyboard shortcut Delete to activate the delete func-
tion
16.2.4 Options
You use the Options… menu item to set different Mesh Generator global
options, i.e. options that take effect in all Mesh Generator editing sessions.
The undo level specifies how many changes the Mesh Generator should
record and make available for undoing. If you are working with a very large
setup that requires a lot of memory, you could lower the level and in this way
reduce the memory needed for holding the undo buffers.
The undo level can be anywhere between 0 and 100. For very large model
setups it is recommended to apply a value below 10.
This menu item makes it possible to overlay the workspace area with a geo-
graphical net showing the latitudes and longitudes and a North arrow.
The Zoom In menu item gives access to a rubber band you can use to select
a sub-area to work with. You use the rubber band to define the sub-area. With
the band present; you outline the area by pressing the left mouse button and
dragging the band. When you release the button, the workspace area will
zoom to the specified area.
The Zoom out menu item resets the zoom level to the full workspace area.
The Zoom to Extent of Data menu item sets the zoom level such that all
data points are shown in the workspace area.
16.3.3 Go To
The Go To menu item shows a dialog you can use to navigate in the work-
space.
A specific coordinate
A specific node in a generated mesh
A specific element in a generated mesh
The largest or smallest element in a generated mesh
The smallest angle element in a generated mesh
The deepest or highest located node in a generated mesh
The most shallow located node in a generated mesh
The dialog also allows you to zoom in on the specified point. Setting the zoom
level to a value higher than 100 implies zooming in on a point, and values
less that 100 correspond to zooming out.
Double Buffer
Double buffer redraw is a technique where you draw into a bitmap and then
copy the bitmap to the display. It gives you a much faster refresh rate of the
display, but at the cost of reduced available system memory.
With the Export Graphics menu item you can copy the workspace area as an
image to the clipboard or directly save it in a file as either a bitmap or as a
Windows metafile.
16.3.6 Toolbar
The Status bar menu item toggles between showing and hiding the MIKE
Zero status bar.
Note: Some of these menu items are only accessible when the relevant
object has been selected.
The Import Boundary menu lets you import an XYZ file defining the land-
water boundary. After having selected the file with the boundary information,
you have to specify additional information for the editor to correctly interpret
the XYZ data.
By selecting the Data Info button you can view the statistics of the XYZ file
and the minimum and maximum values of the columns.
The Export Boundary menu gives you the option of exporting selected point
and/or arcs to an XYZ file. This can be used to e.g. import the data in other
models or if you want to manipulate the arcs with another program like e.g.
Microsoft Excel.
16.4.3 Clean
When importing boundary data you might come in a situation where either
some points are placed very close to each other or points are defined more
than once (double-defined). The triangulation algorithm cannot triangulate
areas with double-points and generates strange meshes with points located
very near each other.
With the Clean menu you have the possibility of removing nodes located near
each other. You specify a minimum distance between nodes. All nodes with a
distance less than the specified threshold value will be removed.
Note: The algorithm can only remove nodes - and not vertices - located near
each other. In case your data contains two or more vertices - or a node and a
vertex - placed near each other, you will have to manually resolve the prob-
lem. Zoom to the point and move or remove points in order to solve the prob-
lem. The mesh algorithm will - in case of double points - abort the mesh
calculation and report the location of the double points.
With this menu item you can convert selected nodes to vertices.
Note: Changing a node to a vertex results in merging two arcs into one arc.
You cannot convert a node representing a single arc to a vertex.
With this menu item you can convert selected vertices to nodes.
Note: Changing a vertex to a node results in splitting a single arc into two
smaller arcs.
This menu item provides you with a dialog you can use to redistribute the ver-
tices along selected arcs, e.g. ensuring that all vertices are place with at con-
stant distance apart.
You can redistribute the vertices along the selected arc(s) in three different
ways:
The selected arcs are curve-fitted following a spline curve. You can specify
the spline factor. A smaller spline factor leads to a smoother curve, but at the
cost of moving points.
Note: This menu item is only accessible after you graphically have selected
one or more arcs.
The Manage Scatter Data menu gives you a dialog from where you can man-
age your scatter data. You can add, remove or reduce scatter data sets as
well as convert scatter data points to nodes or arcs.
It is also possible to modify individual scatter data points using the Scatter
Data Toolbar (p. 220).
NOTE: Reducing scatter data sets using the Reduce Scatter Data Set button
saves the edited data in a new file. Modifying individual scatter data points
using the Scatter Data Toolbar will modify the original scatter data set.
Furthermore you can choose which data files to display in the graphics.
XYZ files, ASCII files organised in columns – X,Y coordinates and the
bathymetry value (Z) in the first three columns
NOTE: Headers in xyz files are not allowed
Mesh files, files exported from the Mesh Generator with a mesh definition
and bathymetry value
TIFF files, georeferenced raster files containing elevation values
NOTE: When you select a xyz file you have to specify the map projection for
the data values. In case this map projection is different from the Workspace
Projection the coordinate values will be converted automatically however the
conversion will not consider Datum Shift. If required then convert the xyz data
using the Datum Convert Utility before adding the data to the setup.
From this menu item you also get the opportunity to Convert scatter data to
nodes and arcs. (Note: when you select a dfs2, dfsu or mesh file as scatter
data the file must not be open in another editor).
If you convert scatter data to arcs or nodes you should normally also remove
the scatter data file from the list of inserted scatter data file.
Note: The action takes effect when you click the OK button and cannot be
reversed.
If the scatter data you have imported has a much finer resolution than the
area of mesh element, it is often advantageous to reduce the amount of scat-
ter data.
When reducing the data you first specify in the Manage Scatter Data dialog if
you want to reduce all the scatter data or only the data from a specific file.
The Mesh Generator offers three different algorithms for reducing the amount
of scatter data:
You can reduce the number of scatter data based by defining a maxi-
mum number of points per square unit
This algorithm divides the area in a number of equally sized squares
and retains only the first number of specified points per square.
You can reduce the number of scatter data based on the proximity of
scatter points.
This algorithm scans all scatter point and detects and removes all
points located within the specified distance from the actual point.
Note: When you reduce a scatter data set you have to save the reduced scat-
ter data set to a new file. The new file will be written as an XYZ file.
The Prioritize Scatter Data menu item displays a dialog that allows you to
apply different weights for specified scatter data sets and define a sequence
of prioritization that is used when you Interpolate the mesh bathymetry.
To enable the prioritization functionality you must enable the 'Use Prioritiza-
tion' check box.
You can define one or several weight combinations in the lower part of the
dialog. The corresponding Weight IDs can then be selected for global and/or
local prioritization.
The local prioritization are defined in the upper part of the dialog. To be able
to use prioritization for only a part of the domain, a Prioritization area must be
defined beforehand. In case of several local prioritization areas the order
entry defines the sequence of the interpolation.
Prioritization area
A prioritization area is a user defined area where a specific prioritization
weight combination is to be used. Prioritization areas are different from the
polygons used for specifying mesh resolutions and mesh type. To create
areas for local prioritization use the Prioritization Toolbar (p. 223).
Introduction
The input topographical data typically originate from various sources. The
multiple sources are reflected in the variation in spatial extent, resolution and
quality. As an example one may have data in a coarse resolution for a region
and additionally some fine resolution LIDAR for a subarea. For the subarea
one would typically solely use the LIDAR data for constructing the bathymetry
whereas for the remaining area the coarser regional wide data would be
used. Thus the user would preferably assign some rules to the interpolation
of the scatter data.
Please see the outline of the applied scatter data sets in the figure below.
Once the data files have been selected the window will look similar to the one
in Figure 16.4. Note that at the bottom of this window the range of the various
data sources may be viewed. Furthermore the zoom button can zoom to the
extent defined by a selected data set as shown below.
To define the weights access the prioritization dialog through the menu item
Prioritize Scatter Data. In the dialog that appears the lower part of the window
defines the weight combinations. To activate these you must enable the 'Use
Prioritization' check box. Subsequently one can add any number of weight
combinations.
In the example shown in Figure 16.7 two weight combinations have been
defined: one which only takes the survey data into account and one which
uses a combination of Regional lines and Survey lines. Note that the weights
must be non-negative values and cannot all be zero.
Using these tools one can define, move, add, delete and select nodes of a
prioritization area. The user is prompted to supply a name for the defined
area to be used in the Local prioritization dialog later. Once the area has been
defined the view will look similar to the one below.
The SurveyArea area encompasses data from the WeightID Survey and the
LocalLinesArea data from WeightID Vicinity.
menu will look similar to Figure 16.7 once the weight combinations have been
assigned.
Note that outside the two defined areas (global prioritization) no prioritization
is applied which means that all data sources are pooled into one data set
which is then used to interpolate the data onto the mesh.
You can define which scatter data sources to display from the Manage Scat-
ter Data dialog (see p. 176).
Note: The menu item is only active if scatter data have been imported.
Note: The menu item is only active if scatter data have been imported.
The “Import mesh” functionality can be utilized as a starting point for creating
a new mesh or for converting mesh files into dfsu files.
When selecting to import a mesh file (or the mesh file information contained
in a dfsu file) a pop-up window will ask if you want to generate information for
Arc Editing.
Pressing NO to generate information for Arc Editing will cause the mesh to be
added as follows:
Pressing YES to generate information for Arc Editing will, besides including
the existing mesh structure, enable additional mesh features to become avail-
able in the Mesh Generator setup the following way:
Note: Internal polygons that outlined areas for e.g. quadrangular mesh or
local maximum element area during generation of the original mesh cannot
be derived from the mesh. Hence the mesh structure may be modified if the
mesh is regenerated.
You use the Generate Mesh... menu item to generate a mesh of the area.
There are a certain number of rules to follow in order to secure a successful
mesh generation:
The mesh algorithm cannot handle double-defined points. You will have
to remove all double-points before a mesh can be generated. You can
either remove double-points through the Clean menu item in the Data
menu or by editing the points
Mesh generation
The Generate Mesh ...menu leads to a Mesh Generation dialog box from
where you can initiate the mesh generation or specify a number options con-
trolling the mesh generation.
After the mesh has been calculated the Generate Mesh ... dialog will report
the number of elements and nodes that have been generated both for the tri-
angular and the quadrangular part.
The Smooth Mesh menu item can be used to smooth the triangular part of a
generated mesh. Smoothing a mesh means that the differences with respec-
tive to area and angles between neighbouring elements are reduced, i.e. the
elements are homogenised.
16.5.4 Interpolate
The Interpolation menu item is used for interpolation of scatter data to the
mesh nodes. Typically, the scatter data represents the bathymetry in the
area, but it could also be other types of spatial data.
Prioritization
If you want to utilize prioritization in the interpolation you have to have defined
the prioritization weights beforehand using the Prioritize Scatter Data menu
item in the Data Menu (p. 180).
NOTE: Node points assigned a value in this way will not be included in the
overall interpolation. E.g. the presence of break lines will not be considered.
Triangles
You can select between two different algorithms for performing the interpola-
tion for the triangular part:
With the Natural Neighbour method four additional points can optionally
be used in the interpolation. The position of the four points can be con-
trolled through the Size of bounding window parameter. The points will
be placed at the lower left, upper left, lower right and upper right corner
of the workspace area, respectively. The parameter specifies the dis-
tance from the four points to the data extent area. The water depth value
at the four points will be defined as the extrapolation value.
You can specify a node value to be used in situations where the Mesh
Generator needs to extrapolate in order to calculate the water depth at a
node value.
Linear interpolation
The linear method uses a mesh generated from the scatter points when
doing the interpolation. For each point to be interpolated a surrounding
triangle is determined and a linear interpolation based on the node val-
ues is made.
Quadrangles
For the quadrangular part the interpolation settings are set individually for
each of the polygon areas. The areas defined by quadrangles are listed at the
bottom of the Interpolation dialog. For each quadrangular mesh area the
interpolation method used is listed. Further you may choose to zoom to the
area in question by clicking the zoom button. Finally the Edit button grants
access to the interpolation settings for the individual quadrangular mesh
areas.
Within the quadrangular interpolation options you may choose the same
methods available for the triangular part. In addition you can choose the
Inverse Distance Weighted method that requires a strength value in both the
flow direction and the transversal flow direction. The latter gives the possibil-
ity of applying a greater weight to data in the flow direction compared to data
lying in the transversal direction.
See also Setting up zones with quadrangular mesh elements (p. 215).
Face bisection
Depth/Gradient
Face bisection
You can refine a mesh by subdividing the faces of the existing elements. This
approach is termed 'Face bisection'. The bisection method is designed to
only change the size of the elements in a given mesh without changing the
overall quality of the mesh, i.e. the angles of the refined mesh will not become
less than the original mesh. The approach is illustrated in Figure 16.14.
The only parameter that is required is the number of bisections to apply. Once
this has been selected the start button can clicked and the progress will visu-
alized through a progress bar.
The number of elements grows by a factor of four per bisection applied. Thus
using e.g. 3 bisections will make the number of elements grow by 43=64. In
general try to select the number of bisections in the range 1-4. In the present
version you cannot create a mesh with more than 500.000 elements via
bisection.
Note: The bisection method may also be invoked when exporting the gener-
ated mesh to either a mesh file or a dfsu file.
Depth/Gradient
You can refine a mesh in order to take the water depth into account when
generating a mesh. Doing so requires:
That the workspace area has been interpolated with respect to water
depth
That at least one zone has been defined. A zone is a polygon that can be
marked for inclusion or not in the triangulation. You define a zone by
placing a zone marker within a polygon and marking the zone (right click
the zone point and select properties) for taking part in triangulation or
not. You can give the zone a name for easier identification
Note: This feature does not work if the mesh contains any quadrangular ele-
ments.
Note: A polygon is a closed loop composed of one closed arc, or two or more
open arcs. A polygon is not explicitly defined by the user. It is automatically
generated when an arc, or a set of arcs, is closed. A polygon can (but does
not have to be) assigned to be a zone.
The refinement option dialog lets you specify the correlation between element
area and water depth or bed level gradient. You can specify both linear and
non-linear by choosing the curve (double-click on the curve and drag the gen-
erated knot) dependency.
You can analyse the mesh for its applicability in a simulation by evaluating the
restricting time step for each mesh element. The minimum time step will
define the maximum time step for the entire simulation.
By using the editing facilities in the Mesh Editing Toolbar (p. 223) you have
the possibility to modify the mesh in selected regions in order to increase the
minimum time step and thus decrease the total simulation time for your
model.
Smallest angle
The smallest time step, dtmin, for each element is found by the limiting CFL
number, the length of the smallest face of the element, le, and the total water
depth, Dt, as follows:
1
dt min = --- CFL l e 9,8D t (16.1)
2
The resulting table in the dialog contains the upper most restrictive values
and you have the option to zoom into each of the elements in the table.
Note that you may control the number of elements in the table.
The Arc editing mode is used for setting up the arcs and single nodes which
make up the skeleton for generating the mesh. The Arc editing mode is typi-
cally only used initially to get the overall working area defined along with
delineation of coast lines or other specific topographical features in the
domain.
The Mesh editing mode on the other hand is used when modifying an
already generated mesh e.g. merging triangular elements or moving individ-
ual mesh nodes. Keep in mind that if the mesh is subsequently regenerated
all mesh editing will be lost.
To switch between the two modes select the 'Mesh' menu and then choose
either 'Arc Editing' or 'Mesh Editing'. When selecting Arc editing a possible
mesh will be displayed by a paler shade of colour and any Mesh editing tools
are inactive. Similarly choosing the mesh editing mode inactivates Arc editing
tools and all arcs in the set-up will be visualized by a stronger mesh colour,
see Mesh Visualisation (p. 196).
Note: You can use the keyboard shortcut Ctrl-M to toggle between the two
modes.
You use the Export Mesh functionality to export a generated mesh to a file for
use in one of the simulation models in the FM-series.
Note: You cannot use the Mesh Generator document file (.mdf-file) with the
simulation models. You will have to export the mesh to a .mesh file in order to
use it in a model simulation.
Export as
Typically, you will export the mesh as a .mesh file - an ASCII-file defining the
node positions, the element topology and the depth at the nodes. This infor-
mation defines the necessary information for the FM-simulation models for
setting up the computational grid.
You can also select to save the data as a .dfsu file. Such a file cannot be used
as a mesh-definition file with the simulation models. However, you can use
this possibility to generate e.g. bottom friction and eddy viscosity maps for the
simulation models.
1. The original mesh in the format (*.dfsu or *.mesh) selected by the user
2. A refined mesh where the refinement algorithm has been applied.
The latter file will be given the name 'filename_refined.*' where the original
mesh is saved in a file named filename.*. The extension being either mesh or
dfsu.
Note: The additional refined mesh is only generated if the user checks the
'Create refined mesh'. This feature may be used to carry out simulations with
same mesh structure but different resolutions.
Example
To make a .dfsu file including e.g. a bottom friction map instead of bathymetry
you do the following:
Draw mesh
This menu item toggles between displaying and hiding a generated mesh.
Mesh colour
This menu items toggles the main colour of the mesh shown in the display.
You have the option to choose between black, yellow, red or blue. The shade
of the colour is determined by the choice of Arc/Mesh editing modes (p. 194).
Note: Some menu items are only accessible after a mesh has been gener-
ated or loaded.
Contour type
With this menu you can toggle between showing the interpolated water depth
as a box contour map or as a shaded contour map. A box contour map differs
from a shaded contour map by colouring a triangle according to the depth of
the centre of gravity point of the triangle. A shaded contour map is drawn
without relation to the generated mesh.
You also have the option to set the transparency of the contour map.
Contour palette
You may define your own attribute palette for the contour map.
Note: The last menu item is only active if a contour map exist.
Note:
- The Shoreline Morphology module can only be applied for domains defined
in a projected coordinate system.
- exported (.xy) or (.xyz) files must be provided in metric units
You use this menu to define and generate the arcs representing the outline of
the baseline and the coastline, respectively, to use as input to the Shoreline
morphology model.
In order for the Shoreline morphology model to work the following conditions
must be considered:
The points along the baseline defines the resolution of the shoreline
model
The number of points on the coastline must be 1 more than the number
of points on the baseline
The points on the coastline should be located to match the centre loca-
tion of the baseline sections
The extension of the coastline must be sufficient to cross all normals to
be baseline
Note:
- The Shoreline Morphology module can only be applied for domains defined
in a projected coordinate system.
- exported (.xy) or (.xyz) files must be provided in metric units
Attribute values
You must define the arc attribute value for the baseline arc and coastline arc,
respectively.
The start point of the resulting baseline, and hence the direction, is defined by
the node point with the lowest attribute value as shown in Figure 16.18. In
case the node point attributes in ends of the arc are the same, the start point
will be the western most point.
Figure 16.18 Definition of baseline direction and positive distance. Node point Attrib-
ute value in start point is smaller than attribute value in end point
Pressing Cancel will cause the coastline arc to revert to the original. Pressing
OK will update the arc and create vertices in the modified point positions.
You use the Export Shoreline data functionality to export the defined baseline
and coastline to xyz files for use in the Shoreline Morphology model.
Note: you can only export the coastline data if the number of points on the
coastline exceeds the number of points on the baseline by 1.
In this menu you can generate the edge map that will match the mesh ele-
ments to a given coastline ID in the Shoreline Morphology module.
First define the arc attribute of the arc defining the limiting line for the edge
map extension from the defined baseline.
Note: The Shoreline Morphology module can only be applied for domains
defined in a projected coordinate system.
Pressing Cancel will cause the edge map values to revert to the original.
Pressing OK will update the edge map values in memory.
You use the Export Edge Map functionality to export the generated edge map
values to a dfsu file for use in the Shoreline Morphology model.
In this menu you can generate cross-shore profiles to use in the Shoreline
Morphology model. Each point on the coastline will need to be allocated to a
profile, that being the same profile or varying profiles along the coastline.
Note:
- The profile is considered to be perpendicular to the baseline section how-
ever it doesn't need to extend to the baseline.
- The Shoreline Morphology module can only be applied for domains defined
in a projected coordinate system.
- exported (.xy) or (.xyz) files must be provided in metric units
Profile extension
A profile in the Shoreline Morphology model is described by a number of
points defining the bed level at a certain distance from the baseline. The pro-
file is resolved by an equidistant grid that is defined by three parameters:
1. Profile start
Distance from the coastline position to the start of the profile (up on land,
i.e. negative distance)
2. Profile end
Distance from the coastline position to the end of the profile (in water, i.e.
positive distance)
3. Number of grid points
(i.e. the grid spacing in the profile is found by
(Profile end - profile start)/Number of grid points)
NOTE: The profile extension is defined by the same number of grid points
along the coastline. It is possible to describe shorter profiles locally by setting
the distance value and z-value to delete value in the superfluous points.
Profile lines
You can define a number of profile lines simultaneously by adding lines and
selecting various Coast ID numbers.
You can derive the Z-values for a profile in one of two ways:
When deriving the Z-values the bathymetry values along the defined equidis-
tantly spaced profile line is obtained from the mesh bathymetry.
Using Z-values from external files require that you select an ascii file (.xy
or.xyz) containing a profile bathymetry defined by points defining the distance
to the coastline and the bed level.
When deriving the z-values the bathymetry values along the defined equidis-
tantly spaced profile line is obtained by interpolating the data given in the
external file.
You use the Export Profiles functionality to export the generated profiles.
Single profile
Varying profiles
If you select to output a single profile, you need to select the CoastID for the
given profile and specify the name of the ascii file (.xyz), in which the profile
data is to be saved. The file will contain three columns representing distance,
z-level and a dummy value 0, respectively.
If you select to output varying profiles, you need to specify the name of the
data file (.dfs2), in which the profile data is to be saved. The file will contain
the profile data for each point along the coastline, given in the two items dis-
tance and bed level, respectively.
The profile data for the CoastID's not explicitly defined in the Manage Profiles
dialog will be derived from interpolation using the nearest defined profiles.
16.7.1 Projection
This menu item gives you the possibility of selecting or changing the projec-
tion of the workspace area or data. If data points have already been inserted
in the area, they will also be converted to the new projection.
Note: The automatic conversion of coordinates does not consider any datum
transformation. If this is required then use the MIKE Zero Datum convert util-
ity to convert the data before entering the data into the Mesh Generator.
16.7.2 Workspace
From this menu you can redefine the size of the workspace area.
Note: you have to "Zoom Out" in order to redraw the workspace area to the
new extent.
This menu lets you import image files and use them as background in the
workspace area. You have to specify the path of the images. In case the
image is georeferenced the positioning and extent of the image in the work-
space area is automatically set. Otherwise you have to define the position by
specifying the coordinates to the image origin (lower left corner) and the
extent of the image in metres or degrees.
Note: You specify the image origin and extent by clicking the Edit button in
the Import Layers dialog.
The Graphics setting menu let you specify the symbol and colour for nodes,
vertices, arcs and polygons.
You may define your own attribute palette for the point attributes.
During a mesh editing process you may want to avoid the pop-up windows
attached to the editing of adding, deleting and editing mesh nodes. The Mesh
Editing Options dialog enables you to define and activate different types of
pop-up windows used during the mesh editing process.
17 Toolbar Functions
The following describes the main editing functions that are available to you
from the toolbar. In the process of generating a mesh you will work in two
modes which will influence on the availability of the toolbar functions:
Generation mode
During the initial generation and interpolation of the mesh you will mainly
use the Boundary Definition Toolbar and Scatter Data Toolbar
Editing mode
If adjustments of the generated mesh or editions in existing old files are
needed you will mainly use the Mesh Editing Toolbar.
You use the Navigate toolbar to zoom and pan in the workspace area.
Icon Description
Pan
Note: Pan can also be activated by pressing the Enter key and
dragging the mouse
These functions are also available from the workspace context menu, i.e. by
right-clicking in the workspace area.
Use this function to select break line Left button selects break line
Note: The Boundary Definition toolbar is only available when you are in the
Arc Editing mode.
If the point is a node you can also specify an attribute value. The attribute
value is used by the simulation setup editor to distinguish between different
stretches of the open boundaries in the mesh, i.e. the stretches of the convex
hull (outer line) where you have to specify a boundary condition.
Note: During export of a generated mesh, all arc and node attributes with a
value of 0 are converted to 1. An attribute value of 1 indicates land. You shall
therefore always use a value of 2 or higher as attribute value. Use the same
attribute value for boundary nodes and arcs that shall be exposed to the
same boundary conditions.
You use the Arc properties dialog to uniquely identify the boundaries in the
mesh. The mesh includes two types of boundaries:
1. Land boundary, i.e. a boundary line that separates land from water.
When you use the mesh in a simulation, the computational engine implic-
itly defines a zero velocity boundary condition perpendicular to the arc
2. Open boundary, i.e. a boundary line where you when setting up a simula-
tion shall prescribe the boundary condition
A boundary in the model equals the vertices plus the start and end node
along the arc(s) as defined in the Mesh Generator. You therefore have to
specify an attribute for both the arc itself and the start and end nodes of the
arc.
The first and last node of an arc is defined as the positive direction of rotation
around the model area, i.e. counter clockwise
A node – which by definition is the start and end point of the arc – typically
belongs to two arcs. This implies that you have to pay special attention to the
attribute values you give the start and end nodes.
Depending on how the arcs connect to each other you shall follow on of the
following two rules.
Note: During export of a generated mesh, all arc and node attributes at an
outer boundary with a value of 0 are converted to 1. An attribute value of 1
indicates land. You shall therefore always use a value of 2 or higher as attrib-
ute value for an open boundary. Use the same attribute value for boundary
nodes and arcs that shall be exposed to the same boundary conditions.
You use the Polygon properties dialog to specify the details of the mesh
within the polygon. That is whether a triangular or quadrangular mesh
approach is to be used within the polygon.
Islands located in the inner part or the model domain shall be defined as pol-
ygons and be excluded from mesh generation.
You can also give the polygon a name for easy identification and you can set
an upper limit for the triangular mesh elements within the polygon.
When selecting the quadrangular mesh option the direction of the elements
must be specified through the start and the end arc. These arcs are chosen
such that the anticipated flow is perpendicular to the arcs.
There are two approaches with respect to the generation of the quadrangular
grid
The first of these requires that the start and the end arcs each consist of only
two nodes and one line segment. This constraint is also reflected in the avail-
able arcs to be chosen. The list only displays the simple two node (no verti-
ces arcs). The transfinite interpolation method does not have such a
constraint.
For both methods the element size must be specified through a maximum
length in the stream wise direction and in the transversal stream direction.
Further it is possible to zoom to the polygon and to control the display set-
tings when the polygon is selected.
2. The inner polygon is defined using the ‘Insert Polygon’ tool. Simply acti-
vate the tool and click within the polygon.
3. Select the ‘Select Polygons’ tool and click on the defined polygon and
then right click to activate the conetxt sensitive menu. Note that as the
polygon is selected the outline of the polygon is marked and the inner
part is coloured.
5. Within the properties dialog the polygon or zone should be given a name
for easy identification say ‘river bed’.
7. Within the quadrangular mesh options the start and the end arcs must be
selected. Note that only valid arcs are displayed for selection. A Start and
an end arc cannot be adjacent. Further when using the algebraic boxing
method the begin and end arc must both be single line segment arcs i.e.
no vertices.
8. The maximum element length in the stream wise direction is set (from
start arc to end arc)
10. You may choose to control the display settings for the polygon if you so
desire
11. Click OK
12. In the main menu select ‘Mesh’ and then ‘Generate Mesh’ and then
finally ‘Generate’. A combined mesh will then appear.
Polygons should not have vertices giving rise to angles which are greater
than 270 degrees
When applying the algebraic box method the end and start arcs must
only consist of one line segment each
Break lines are polylines which act as boundaries for interpolation. Thus a
point lying on the opposite side of a break line should be disregarded when
carrying out an interpolation using the nearest neighbour or the linear interpo-
lation routine. Two points lie on opposite sides of a break line, if the line seg-
ment joining the points intersect the break line at least once.
Having inserted a break line to divide the two main areas the interpolated
bathymetry clearly shows a shallow area next to a deep channel (left figure
below), if no break line is inserted this is not the case (right figure below).
NOTE: Node points assigned values by the Value from scatter data option will
not consider the presence of the break lines as these are not a part of the
interpolation.
You use the info toolbar to navigate in the workspace and to measure dis-
tances..
Icon Description
You use the scatter data toolbar to add, select, reduce, delete and edit scatter
data.
Note: Changing scatter data using the toolbar functionality will overwrite the
original xyz file.
Clicking the Add Scatter Data toolbar function opens a dialog box where you
can specify the Z-value of the added scatter points.
Figure 17.4 Add scatter data dialog for manual insertion of scatter points
You add scatter points by holding down the left mouse button and moving the
mouse in the workspace area. The points are not added to the active scatter
data set – the set used for interpolation – until you have saved the added
scatter data points to an XYZ-file.
Note:
- You can add scatter data points to an existing XYZ-file by specifying the
existing file in the File selection field.
- You can dynamically change the Z-value in the dialog box. This only affects
the points added after the value has been changed.
Clicking the Select Scatter Data toolbar button makes it possible to outline a
region in the workspace. You define the region by clicking at the corner points
of the region.
After you have defined the region you can display the region context menu by
clicking the right mouse button. The context menu gives you the possibility to
display the properties for the outlined region.
Clicking the Delete scatter data toolbar button makes it possible to delete
individual points or multiple points. The choice between a singular and multi-
ple selection is done by right clicking and choosing either 'node', 'inside rec-
tangle' or 'inside polygon'. The points being deleted will be removed from the
view and the scatter data files.
Clicking the Edit scatter data toolbar button makes it possible to modify the z-
value of a scatter data point. By activating this tool and selecting either a one
or multiple scatter points the user may select to either add a value to the z-
value or to modify the z-value. The Selection is done in the same way as the
deletion tool.
Finally, the editing that has been carried out on to the scatter data will be
saved in the corresponding xyz files when the set-up is saved.
Note: Scatter data editing is not covered by the undo and redo functionality
within the mesh generator.
You use the Area prioritization toolbar to define, modify and delete areas for
use in prioritizing scatter values during interpolation.
Select area
When you have selected an existing prioritization area or are creating a new
prioritization area, a dialog shows the name of the polygon. You may edit the
name.
The names are used for local prioritization of scatter data during interpolation,
see Prioritize Scatter Data (p. 180).
You use the mesh editing toolbar to modify the mesh layout and the node val-
ues. After pressing the toolbar icon the pointer enables you to select a node,
a face or an element, respectively, for editing.
Note: The changes made to the mesh using the mesh editing facilities are not
tracked or saved as a list in the mdf-file. Only the resulting mesh is saved for
further reference.
Collapse element.
The adjacent elements will automatically be re-trian-
gulated
Note: The Mesh Editing toolbar is only available when you are in the Mesh
Editing mode.
When you delete a mesh node you have to specify how to handle the adja-
cent elements.
You can choose to re-triangular the adjacent elements or to Make land of the
adjacent elements.
Figure 17.7 Deleting node: Initial and resulting mesh after re-triangulation
Make land
If the resulting polygon is to be defined as land you have to specify the value
of the boundary nodes.
The code value for the boundary nodes will per default be 1 (land) but it can
be larger, thus indicating an internal boundary.
Figure 17.9 Deleting node: Initial and resulting mesh making land
You can move a mesh node by selecting and dragging it to a new location.
The new location must be within the polygon made up of the elements con-
nected to the node to be moved. Figure 17.10 shows an example.
The z value at the new location is interpolated based on the user default set-
tings for interpolation. The data used as scatter data for the interpolation are
the values at the mesh nodes.
When you add a mesh node to the existing mesh you have to specify if you
want to re-triangulate adjacent elements.
If yes, then the area with elements adjacent to the element enclosing the
new mesh node will be re-triangulated
If no, then only the element enclosing the point will be changed
An example of the resulting mesh using each of the two options is shown in
Figure 17.12.
The z value is obtained through interpolation using the user settings. The
data used as scatter data for the interpolation are the values at the mesh
nodes.
The code value of the mesh node is set to zero i.e. an internal node.
You can add a mesh node to the boundary of the mesh. An example is shown
in Figure 17.13.
The z value of the new mesh node is obtained through interpolation using the
user settings. The data used as scatter data for the interpolation are the val-
ues at the mesh nodes.
When a face is collapsed the joined elements may be either triangular or rec-
tangular. As shown in the figures below a triangular element will degenerate
into a face element whereas a quadrangular element will degenerate into a
triangular element.
The z value of the new mesh node is obtained through interpolation using the
user settings. The data used as scatter data for the interpolation are the val-
ues at the mesh nodes.
The code value of the mesh node is set to the maximum of the two nodes
being collapsed.
Note: This procedure may remove up to four mesh elements (five if the col-
lapsed element is quadrangular).
The z value at the new mesh node is obtained through interpolation using the
user settings. The data used as scatter data for the interpolation are the val-
ues at the mesh nodes.
The code value of the mesh node is set to the maximum of the nodes of the
collapsed element.
You can create a new quadrangular element by removing the common face
between two triangular elements as shown in Figure 17.17.
Note that element faces can only be removed at the interface between two
triangular elements. No interpolation is needed for the new mesh.
Figure 17.17 Merging two triangular elements into one quadrangular element
You can change the properties for the individual mesh nodes. The options
depends on the location of the mesh node.
Inside the model boundary you can modify the location of the mesh node
by the (x,y) coordinates and the z value.
At the model boundary can modify the z value and the code value.
Note: It is possible to select multiple mesh nodes to edit by using the context
sensitive polygon or rectangular selection tool. In this case the x and the y
fields are deactivated.
You can re-interpolate scatter data onto the mesh in a selected region. Click
the toolbar icon and select a region using the context sensitive polygon or
rectangular selection tool. The mesh nodes lying within the polygon are then
highlighted and the interpolation can be carried out for only the selected
mesh nodes based on the global settings in the interpolation menu.
You can re-triangulate a selected region of the mesh. Click the toolbar icon
and select a region using the context sensitive polygon or rectangular selec-
tion tool. The selected elements and mesh nodes lying within the polygon are
then highlighted and the Mesh generation dialog appears (p. 187). After set-
ting the triangulation parameters the re-triangulation can be carried out for
only the selected area.
With the tool you can visualize the results as 2D contour plots or as 2D vector
field maps, extract values at one or more points and present them in time
series plot, presenting results as vertical slices and inspect the raw values as
numbers in arbitrarily selected regions. The tool provides you numerous func-
tions for navigating and visualizing the data - e.g. zooming in the horizontal
plane, forward and backward spooling in the time dimension and selection
horizontal layers in results from the 3D MIKE 3 flow Model FM.
Although the tool is targeting results files from the MIKE Zero FM models, it
provides also some functionality for inspecting and analysing results obtained
with the classic MIKE Zero structured mesh models, e.g. MIKE 21 HD. If you
use the Data Viewer for analysing model results obtained with one of these
models, you have to know, that the Data Viewer interpolate the point values in
order to specify the shade colour of the element.
Typically you use the Data Viewer for one of the following two reasons:
NOTE: Both the Data Manager and the Data Viewer can be applied to visual-
ize the outline and contents of .mesh and .dfsu files. You may shift the default
editor for .mesh and .dfsu files by modifying the file association:
MIKE Zero->File->Options->User Settings->File Associations
After having selected the file you want to analyse your work with the Data
Viewer revolves around the use of:
The menu system for defining how and what you want to see from the
result file.
The workspace area context menu - right clicking in the main window -
provides you a shortcut for the most used functionality.
The workspace area for specifying time series points, vertical profile
routes and node selection for viewing numeric data values.
Although you can use the Data Viewer to modify the loaded data files, the tool
is - as the name also indicates - mainly a browser type of tool. I.e. you will
typically not change any data values.
In order for you to get the best out of your work with the Data Viewer, you
have to know a few things about MIKE Zero data files:
Data files can be categorized as 0-, 1-, 2- and 3-dimensional. The Data
Viewer works only with 2- and 3-dimensional files, i.e. files with data that
is addressed with 2 or 3 spatial coordinates and one time coordinate.
With the Data Viewer you can navigate in the data file by going from time step
to step for visualizing e.g. the progression of a tidal wave or from item to item
for e.g. correlating tidal wave progression with e.g. salt intrusion.
20 Getting Started
20.1 Introduction
This chapter guides you through a working session with the Data Viewer.
During the session you will try-out a number of the many features the Data
Viewer provides you for analysing and presenting results obtained from the
MIKE Zero FM models.
All of the exercises in this getting started guide uses a results file obtained
from a 3D simulation of the flow field and transportation of salt and tempera-
ture in Øresund - the sound between Denmark and Sweden. The simulation
were originally made during a study undertaken by DHI for the Danish and
Swedish authorities in order to assess the environmental impact of construc-
tion a link between the two countries. You can read more about this study in
the MIKE Zero Flow Model FM Getting Started guide.
The result file used in this example is located in the default MIKE Zero instal-
lation folder at
.\Examples\MIKE_Zero\DataViewer
Please start MIKE Zero, select FileOpenFile. From the presented Select
data file dialog you browse to the 3D_flow.dfsu result file. After having
selected the file, the workspace area of the Data Viewer displays a contour
plot of the first data item in the file extracted at the first time step and top
layer. You should see a drawing similar to Figure 20.1.
You can see that the first times step in the data file corresponds to the 6. Sep-
tember, 1997 at midnight and that the file contains 13 time steps in total
(counted from 0 to 12) and have 10 layers. You can also see that the first item
is the U velocity, which corresponds to the velocity component in the X-direc-
tion.
Please select Salinity as a data item from the item selection dropdown button
in the toolbar or from the Data menuOptionsContour dialog. Go to time
step 7 (either by using the time step text field in the toolbar or by using the
DataOptionsTime dialog). From the ViewDisplay Settings... dialog
switch to Box Contour. Zoom on the narrow strait at the North end of the area.
You should now see something similar to Figure 20.2.
Note: You can move around in the model area at the current selected zoom
level by use of the scrollbars, e.g. by moving the vertical scrollbar downwards
you will also move the viewport in the data.
Please from the View menu switch to Shaded Contour, impose the mesh,
enable a title and a North arrow indicator. Place the North arrow on land area
just below the North open boundary. The drawing should then appear as in
Figure 20.3.
Please select Salinity from the item selection dropdown button in the toolbar
and then select Vectors at element centers from the DataOptionsVector
dialog.
In most case time step zero in a results file corresponds to the initial condi-
tions of the simulation. This implies that the current velocity is zero in the
entire model area and correspondingly no vectors will be drawn. Please go to
time step 10 from the time step text button in the Workspace. You should now
be able to see some very small vectors representing - and scaled after - the
current flow velocities.
In order to better see the vectors please increase the vector length scaling.
From the DataOptionsVector options dialog specify User defined scaling
and use 5 as scale factor in both the X- and Y-directions. Figure 20.4 shows
the flow field before and after vector scaling.
Please load the 3D_flow.dfsu result file as described in Step 1 of this guide.
You will during this step define two time series location point - one close to
the north boundary and one close to the south boundary - and extract data
values of salinity and present the data values in a time series plot.
Please ensure that the current selected data item is Salinity. If this is not the
case, you can select Salinity as current selection from the dropdown item
selection button in the toolbar. Select the Time Series Location button in the
toolbar, please notice that cursor changes to a time series icon. Click at a
position close to the north boundary and a position at the left part of the south
boundary. You should notice that the workspace is updated with a marker at
the selected point. Double click the left mouse button outside the model area
and the Data Viewer displays the exact location of the point, see Figure 20.5.
Please keep the settings as they are and click the OK button. The Data
Viewer then spools through the file and extracts the requested values. The
values will be shown in a time series plot in a window separate from the
works space window. You should see something similar to what is shown in
Figure 20.6.
Please load the 3D_flow.dfsu result file as described in Step 1 of this guide.
You will during this step define a profile route - ranging from the island of
Amager to the island of Saltholm - and generate a vertical contour plot of the
distribution of current in the profile.
Please ensure that the current selected data item is Current speed. If this is
not the case, you can select Current speed as current selection from the
dropdown item selection button in the toolbar. Select the Selection of Vertical
Profile button in the toolbar and please notice that shape of the cursor
changes to a profile. Click at a position on the island of Amager (the largest
island in the model area and located almost in the middle of the area) and
move the mouse to a position on the island of Saltholm (the island slightly to
the right of Amager) and double-click. This ends the profile route definition
and you will be presented a dialog that shows you the exact coordinates
defining the profile route. You can - optionally - modify the coordinates from
the dialog as well as you can choose to overlay the workspace area with the
profile route. Please accept the settings as they are shown by selecting the
OK button.
The Data Viewer extract values along the profile route and downwards. The
extracted values will be shown in a window separate from the workspace win-
dow as a profile plot. You should end up with visualization similar to the one
shown in Figure 20.7. Please note that contours in Figure 20.7 are drawn as
shaded contours.
Note: You can with the profile plot view the time evolution of the current distri-
bution by time navigating forward and backward in time - use the Navigate
toolbar to either single stepping or playing the data file.
Please load the 3D_flow.dfsu result file as described in Step 1 of this guide.
You will during this step define a polygon in the area between the islands of
Amager and Saltholm (see the previous step for the location of the islands).
The reason for this is to inspect the exact values of the current speed within
the area.
Please ensure that the current selected data item is Current speed. If this is
not the case, you can select Current speed as current selection from the
dropdown item selection button in the toolbar. Then Navigate to time step 22
in the data file and finally do a zoom on the area to be inspected. You should
now see a workspace area similar to the one in Figure 20.8.
Select the Position of Node Selection Polygon button in the toolbar and
please notice that shape of the cursor changes to a polygon. Click at a posi-
tion on the top-right corner of Amager and outline an area encompassing the
straits between the two islands. Double-click the left mouse button when you
are satisfied with the outline. The Data Viewer then opens a dialog showing
you the index numbers of the elements located within the polygon, the current
speed at the centre of the elements and the x- and y-coordinates at the cen-
tre point. Depending on your outline the dialog should appear someway simi-
lar to the one presented in Figure 20.9.
It is possible to use this dialog for editing the selected item values, however
for this example the functionality is only used for reviewing the data.
Note: The dialog also lets you specify whether you want the values to be
drawn in the workspace area - here, you can select between having the ele-
ment numbers and/or data values shown. Selecting the Empty Selection
check box empties the current selection and erases any workspace annota-
tion. You may use the Calculator to modify the selected element values.
Please ensure that the Display Element Value is selected and the two check
boxes are de-selected. Then click the OK button. You should then see a
drawing equal to the one shown in Figure 20.8, but with the current speed
values shown on top of the contours. Most likely the numbers are located too
close to each other for you to be able to read the values. Try to zoom closer
to the strait area - you should then see something similar to what is shown in
Figure 20.10.
Figure 20.10 Zoom on the Strait between the islands of Amager and Saltholm
Note: Please be aware that drawing data values on top of the workspace
area can take a considerable amount of time.
Please load the 3D_flow.dfsu result file as described in Step 1 of this guide
and ensure that Salinity is selected as the current data item (if this is not the
case you can use the Item Selection dropdown button in the toolbar to select
the Salinity Item).
Please from the VideoProperties dialog specify the name of the file to hold
the video and specify a frame rate of 10 frames per second, see Figure 20.11.
Select the OK button and back in the Workspace area make sure that the cur-
rent time step number is 0 (use the time step button in the Navigate toolbar if
this is not the case). Press the Video Forward button in the Navigate toolbar
to initiate the video generation. You will then be given the option to compress
the video output file. The workspace window will be updated during the video
recording.
Note: Please be aware that video generation can take a considerably amount
of time.
A message box, see Figure 20.12, will inform you when the video generation
has ended.
You can distribute video like this one to e.g. your customers. They will be able
to view the video with most modern media players like e.g. Microsoft Media
Player. Figure 20.13 below shows the above-generated video loaded in
Microsoft Media player.
21 Reference Guide
The Data Viewer provides you an environment for inspecting and analysing
simulation results obtained from one of the MIKE Zero flexible mesh models.
You use the FileNew menu to create a new workspace for viewing and ana-
lysing model results. Selecting this menu provides you with a file selection
box you use to navigate to the result file you want to analyse. You can select
files with the following extensions:
You can use this menu to open a MIKE Zero FM result file (file type .dfsu) for
viewing and analysing model results.
If a .frv file exists with the identical basename this file will be read and
applied. A .frv file contains settings from a previous work session with the
Data Viewer, e.g. a reference to the results file and zoom level, item selec-
tion, vector scaling etc.
If you save your workfile the Data Viewer settings from the current session
will be saved in a .frv file. This file will contain a reference to the results file
plus various settings like zoom level, item selection, vector scaling etc.
Undo
Undo latest command.
Cut/Copy/Paste
Cuts, copies and pastes your selected data through the Windows clipboard.
A data title giving the name of the currently loaded data file
Changing the used contouring algorithm
Zoom level
Etc
This menu makes it possible to overlay the workspace area with a geograph-
ical net showing the longitudes and latitudes, a map projection grid and an
arrow pointing towards true North.
Map Projection
You can add or remove a map projection net in the display.
You can select which map projection net to overlay. Per default the displayed
map projection net is defined as in the data file.
North Arrow
You can add or remove a north indicator in the display.
By default the Data Viewer shows a shaded contour plot of the first item (and
first time step) in the data file. Alternatively other contouring algorithms can
be applied by editing the Contour type.
21.3.3 Vectors
This menu toggle between showing or hiding a layer with the calculated flow
velocity, the flow velocity is shown in the form of a vector field. The Data
Viewer will in most cases be able to select the right information from the
result file in order to create the vector field, this is always the case with e.g.
results file from the MIKE Zero FM models.
In case the Data Viewer for some reasons does not have the information nec-
essary for selecting the flow velocity information, you can specify the items in
the result file that contains the flow velocity components. You do this from the
Vectors entry in the Data Viewer dialog, select the DataProperties menu.
This enables you to toggle between showing or hiding the workspace axes,
i.e. the coordinate axes.
This enables you to toggle between showing or hiding the value of the individ-
ual element.
21.3.6 Zoom in
The Zoom In menu gives access to a rubber band you can use to select a
sub-area to work with. You use the rubber to define the sub-area - with the
band present, you outline the area by pressing the left mouse button and
dragging the mouse. When you release the button, the Data Viewer will zoom
to the specified area.
With the Zoom to Coordinates menu you can define the zoom area by speci-
fying the coordinates at the lower left and upper right corner of the area.
The Zoom Out menu resets the zoom level to the full workspace area.
This menu toggle between drawing in fixed aspect ratio or not. With Fixed
Aspect Ratio enabled the workspace area will be drawn using the same scale
for both x- and y-coordinates. Clearing Fixed Aspect Ratio results in a work-
space area that fills the entire editor window.
Note: It is not possible to enable Fixed Aspect Ratio whenever the ratio
between the two axis is less than 0.02.
With the Export Graphics menu you can copy the workspace area as an
image to the clipboard or directly save it in a file as a bitmap or Windows
metafile. This is mainly used when preparing presentations or for importing
illustrations in reports.
21.3.11 Font
This menu lets you select the font to use for drawing text in the workspace
area.
21.3.12 Toolbar
The Status bar menu toggles between showing or hiding the MIKE Zero sta-
tus bar.
21.4.1 Properties
The Properties menu provides you a number of dialogs from where you can
select and specify different aspects of the data to be visualized.
This is where you define the overall style of the display area.
Properties like title, display of title, x- and y-axis annotation, display of info
line, properties of geographical and map projection overlay, displayed map
projection and position of attached overlay like the e.g. the color legend can
be controlled.
Line style
You can customize the line style by width and color.
Grid Overlay
This is where you define the display style of the grid, and which item to dis-
play.
Contour type
You can define the way contours are displayed. The contour is defined by a
primary option that defines the contour type and a secondary option that
depends on the primary option.
You can also select between discrete or continuous coloring of the color
scale.
Primary option
Box Contour
Each grid cell is given a colour according to the value in the cell.
Shaded Contour
The grid is covered with colours indicating the values in the cells, a smooth
surface is used. The land values will always be displayed in green.
Secondary options: No. 2 or No. 3 or No. 4 + No. 1
No Contour
Used in connection with background overlays. The bathymetry will not be
shown.
Secondary option
1. Transparency
Used in connection with background overlays the value defines the
transparency of the layer.
2. Copy Colours
The colours indicate the values in the cell.
3. Copy Colours with Transparency
The colours indicate the values in the cell, one colour is fully transparent
(usually white).
4. Blend colours
All colours are transparent with a user-defined transparency (secondary
option 2) and one colour is fully transparent (usually white).
You may define contours, isolines and which item of the data file to display.
The Layer no. refers to the layers in 3-dimensional data files.
Isolines
You can customize the display of both isolines and isoline labels.
Miscellaneous
You can toggle between showing or hiding a layer with the mesh or boundary
lines in the model area, and customize the line styles used.
You can also toggle between showing or hiding a color legend for the
selected item. The colour legend is drawn to the right of the workspace and
shows the correlation between colours and data values.
For specifying the values in the color legend, goto the Colors tab.
Item/Layers
In case of a 3D dfsu file, you can specify a specific slice to display. There are
two options for the slice type:
Colors
The color palette specify the colors used for displaying data according to var-
ious levels. You may create a palette and save it for later use.
Vectors
This dialog enables you to overlay the workspace area with a vector field
illustrating the flow field within the model area. The Data Viewer uses two
items from the data file in order to draw the flow field. With results files from
all the MIKE Zero FM models the Data Viewer knows the items for use with
vector drawing, with other types of files, however, you might have to specify
the (X,Y) items manually. In such case you can use Custom defined items.
The dialog also lets you specify how to place the vectors and - in case you
select the vectors to be interpolated to a structured mesh - how to distribute
the vectors in the workspace area.
Note: You can also use the View menu to enable/disable vector drawing.
You specify the style of the vectors in the Vector Options dialog.
Vector Options
You use the options on this dialog to specify the scaling of the vectors illus-
trating the flow field. The default value is one, but you can specify your own
scaling factor.
You can specify a limit on the vector length, and the color and thickness of the
displayed vectors.
Background tiles
This is where you can select to display a background derived from a number
of different map themes or satellite images available from the web.
Interpolation type
Choose between bilinear and nearest neighbour. Bilinear gives a nicer and
smoother rendering of especially the texts embedded in the background
image, whereas nearest neighbour might be a few % faster.
Transformation accuracy
Is specified in % of the covered area. The reason why it's given in % is that
covers projection accuracy in both length units like meter and feet, but also in
degrees. The accepted range is from 0.0001% to 1% of the covered area.
Modifying the value will have greater effect the more distorted the projection
is. Specifying a value closer to the max of 1% allows for a faster but less
accurate reprojection of the background images.
If the data file you work with includes 3-dimensional data values, you can use
the Vertical Profile by Coordinates dialog to visualize the data values in a ver-
tical plan. The vertical plane is defined by defining a polyline in the horizontal
plane - you define the polyline by entering the x- and y- coordinates oat the
corners of the polyline in the dialog.
After confirming the coordinates by selecting the OK button, the data in the
vertical plane will be visualized in a separate window as a contour plot.
All z-layers are shown as originally defined, i.e. the adjusted thickness of the
lower layer in a sigma-Z level grid is not visualised.
You can enable or disable a graphical representation of the profile route in the
workspace.
Note: You can also specify the polyline by using the Position of vertical profile
toolbar button.
The Time Series by Coordinates dialog lets you specify one or more points in
the workspace area. The maximum number of points to extract is 100.
The Data Viewer extracts values at each time step in the data file and pre-
sents them in a time series plot.
You have to be aware that with large data files, it might take some time for the
Data Viewer to extract the values and present them graphically.
You can specify whether the Data Viewer shall remember the Time Series
locations between activation of the dialog and whether the location of the
extracted time series shall be shown in the workspace.
Note: You can also specify the points by using the Position of time-series
toolbar button.
In some situations you might want to know the exact numeric value at one or
more points within the model area or you want to modify the values. You
specify the points by using the Position of node selection polygon toolbar but-
ton to select an area that includes one or more points at which you want to
know or edit the data values. Alternatively you can select all points by using
the ‘Select All...’ property in the Data drop-down menu. This will open a new
dialog with the selected points. An example is shown in Figure 21.10.
The data values will both be shown in the dialog and - optionally - in the
workspace area In case you prefer to view the numbers in the workspace
area, you will most often have to zoom very close to the area with the
selected points.
You can also select to see the element numbers in the workspace area by
selecting the Display Element No. check box. To remove data values from the
workspace area, you re-select this dialog and select the Empty selection
check box.
Calculator
The calculator can be used to modify the selected values. This can be done
in terms of a simple value or as an expression, as shown in Figure 21.10.
You need to enter the value or expression and click the Calculate button for
the values to change and need to save the file to keep the changes.
Table 21.1 gives an overview of the functions and lists the function names,
the number of arguments and a brief description.
Operator Meaning
= assignment*
+ addition
- subtraction
* multiplication
Operator Meaning
/ division
^ raise x to power of y
Expression Description
You have the option to filter the objects (nodes or elements) before you use
the Node selection polygon area to select values. Usually no filters are active
so all elements can be selected. However, if you select the item 'Code values'
in a mesh file the default setting is to select only nodes with code values > 0.
For each item you can activate or deactivate the filter entirely, and/or specify
the filter settings by an operator and a value.
The default filter settings for a mesh file is shown in Figure 21.11.
Figure 21.11 Item selection filters for mesh file, default settings
This menu lets you import image files and use them as background in the
workspace area. You have to specify the path of the images and the position
of the images relative to the workspace area. The latter is defined by specify-
ing the coordinates to the image origin (lower left corner) and the extent of the
image in meters or degrees.
Note: You specify the image origin and extent by clicking the Edit button in
the Image Manager dialog. In the Overlay Manager dialog you can specify
which layer to display and the display order.
21.5.1 Properties
This dialog lets you specify the filename of the video output.
The video file will be generated as an AVI file. You can use e.g. Microsoft
Media Player to play the file. From the dialog you can also specify the frame
rate of the video, i.e. the speed with which the file shall be played.
Note: The generation of the video is not initiated from this dialog. You will
have to use either the Video forward or Video reverse toolbar buttons to
actual generate the video. You shall be aware that generation of a video can
take a considerable amount of time.
The Auto Scale Type menu lets you select between three different ways to
generate the colour legend:
Current Zoom - this option generates the colour legend based on the
minimum and maximum data values from the data at the current time
step and within the current zoom level (the area you have zoomed to).
Current Layer - this option generates the colour legend based on the
minimum and maximum data values from the data at the current time
step and current vertical layer, i.e. at the same Z (or sigma) coordinate.
All Data - this option uses the minimum and maximum values from all
time steps and all layers when generating the colour legend.
This menu lets you define a custom palette. The palette is used for selecting
the specific colours representing data value ranges.
This menu lets you open and read a previous defined palette.
You use this dialog to select the items, i.e. values from specific points, you
want to save in the dfs0 file.
22 Toolbar Functions
The following describes the main editing functions that are available to you
from the toolbar.
These functions are also available from the workspace context menu (i.e.
right-clicking in the workspace area).
Icon Description
Icon Description
You use the navigation functions to navigate in the data file. You can:
Icon Description
Use this function to select the item from the data file to
visualize.
Use this function to select the layer just above the cur-
rent layer for visualization.
Use this function to select the layer just below the cur-
rent layer for visualization.
Icon Description
Use this function to visualize the data from the first time
step in the data file.
Use this function to visualize the data from the time step
just before current time step.
Use this function to visualize the data from the time step
just after current time step.
Use this function to visualize the data from the last time
step in the data file.
23 Data Manager
The Data Manager is a utility for managing (create, edit, copy, etc.) Dfs data
files associated with the DHI Software product series.
Data Manager supports the flexible mesh (FM) data files: 2D and 3D .dfsu
files, .mesh files and to some degree 2D and 3D grid files (dfs2 and dfs3
files).
Note: The Data Manager cannot work with Decoupled Flux files.
The Data Manager can be accessed by right-clicking the file and choosing
the option ‘Open with’ Data Manager if the Data Manager has not been asso-
ciated as a default editor for the file.
Note that the Data Manager is designed to update files. Do take a backup of
important simulation files, before loading it into the Data Manager. When
changes to a file are saved to disc, and the Data Manager closed down, there
is no undoing of changes.
By pressing and holding the shift button and then pressing and holding the
left mouse button, you can pan/move the view. By pressing and holding the
shift button and role the mouse wheel, the view will zoom in/out.
To the right of the graphical view, there is a table of "Element id" and "Value".
You can mark individual element values by using shift/Ctrl and left mouse but-
ton, or you can mark all values by clicking the "Value" header. These values
can be copy-pasted into other applications (text editors, Excel etc.). Similarly,
data can be copy-pasted back into the table from text editors, Excel or others.
Right clicking in the graphical view, you get the context menu, see
Figure 23.1. The context menu contains options to zoom, pan, view mesh
and other visual options, herein Selection and Cropping of data.
Unselecting "Shaded contours" will show box contours instead.
23.1.1 Selection
23.1.2 Cropping
Having selected one or several areas, you can crop the data in two ways:
Crop to selection
Here you keep the data that are selected
Cut out selection
Here you keep the data that are not selected
23.2 File
You may create, open and save files from the File drop-down menu.
Note: Any modifications you have made to your file after opening or creation
are only saved after you have selected ‘Save’ or ‘Save As’ from the File
menu. However, when using Cut/Crop the modifications are saved immedi-
ately.
Creating a new data file requires specification of the spatial properties of the
mesh, the time axis and the item(s). Thus a wizard of three steps must be fol-
lowed to create a new file.
Note: You have to save the new file by a filename before you can continue to
edit the data values in the file.
The new file will have one time step only.
Spatial Information
First you define the spatial properties of the file by selecting a file to import
the mesh from.
This can be a mesh file generated by the Mesh Generator or an existing dfsu-
file. If the selected file is a 3D dfsu file, the layers will be imported, but not
editable and constant in time, corresponding to the initial time step in the 3D
file.
Undefined
Equidistant - no explicit start time
Non-equidistant - no explicit start time
Equidistant - explicit start time
Non-equidistant - explicit start time
If selecting an equidistant axis, you have to specify the time step and time
step unit. If selecting an explicit start time you have to define the date and
time of the first time step. You also need to specify the number of time steps.
Items
Finally you define the items in the file.
For each item, you must specify its name, type and unit. You may add, edit
and delete item information before you save the file by pressing `Finish'.
When `Finish´ has been pressed, it is no longer possible to add more items.
The default editor/viewer for dfsu data files can be set to either the Data
Viewer or the Data Manager via the User Settings in the MIKE Zero shell.
If the dfsu file is contained in a MIKE Zero project, you can open an existing
file in the Data Manager, even if the default editor is set to the Data Viewer, by
right-clicking the file in Project Explorer and choose the option ‘Open with...’
Data Manager. The data are then immediately presented in the Data Man-
ager dialog where data can be viewed and edited both in a graphical and in a
tabular view.
23.3 Edit
Undo
Undo latest command.
Cut/Copy/Paste
Cuts, copies and pastes your selected data through the Windows clipboard.
Copy/Paste View
Copies and pastes the current view between different instances of Result
Viewer, Data Viewer, the Graphical overview tab in the FM Input Editor, Data
Manager and the Grid Series Editor.
23.3.2 Calculator
The Calculator can be used to assign/edit values of the current dataset. It can
edit the currently selected item of the dataset. The assignment can be done in
terms of a simple value or as an advanced expression. You can decide to
assign to
The user defined subset must be selected in the Data Manager before enter-
ing the Calculator.
Variables
The list shows variables that can be used in an expression. Default is listed
the CurrItem, the currently selected item of the dataset being edited.
You can add more items from the same file, and items from other files. The
Calculator automatically handles a number of issues.
Note: The resulting Calculator-expression must have the same unit type as
the current item, unless the function void() is used.
The files need not have the same temporal definition. Necessary interpo-
lation in time is performed in the added items, when the time steps do no
match.
The files need not cover the same geographical area. The full expression
is only applied in the intersecting area. In areas not covered by the
added items, undefined or zero values will be used instead.
Output Options
Time step selection
The expression can be applied to time steps in the following ways:
In the special case the current item is replaced by the added item, e.g.
CurrItem = Var3, and the time definition of the added item goes beyond the
final time of the current item, time steps will be added to the current item and
the file, thereby increasing the number of time steps in the current file.
Area selection
If a number of elements are selected in the DataManager before entering the
Calculator, you can specify whether the expression is applied to the selected
elements, or all elements in the current file. Default is "only selected area" if
some area is selected, and "all elements" if no area is selected.
You may limit the data for editing by defining certain time steps and/or
selected area.
Calculation mode
You have the option to force the calculations to be carried out in interpolate
mode instead of using discrete values values as per default. This is especially
useful when you perform complex computations and the meshes are differ-
ent.
Expression
The Calculator allows you to compose your own expressions that can be
used to assign or modify values of the current item in the data set. All opera-
tors and functions can operate on either constants or variables.
All operators and functions will be applied to elements of the current item indi-
vidually. This means that all/selected values of the current item will be
updated, but the spatial description will remain unchanged.
The usual Mathematical Functions and Operators can be used, and works in
the traditional manner. Furthermore, some Special Functions are defined.
Units are handled in the expression. If one item of unit [m/s] is multiplied with
an item of type [s], the resulting unit is [m]. A variable with unit [m/s] can not
be added to a variable of unit [m].
Note: The entire expression must return the same unit as the current item. To
circumvent mismatching units, either the convert() or the void() function must
be used.
Mathematical Functions
Below you will find a table with a list of the mathematical functions you can
choose between and which result they return.
Function Evaluation
Function Evaluation
Special Functions
A number of special functions are available in the Calculator:
undefined()
E.g. undefined(arg).
convert()
E.g. convert(value, eumUnit)
if()
E.g. if (test_expression, then_expression, else_expression)
foreach()
E.g. foreach(<iteratorname> in <var>, expression)
void()
E.g. void(value)
Operators
Besides the normal operators such as plus, minus, multiply and divide you
may use delimiters and relation operators as given below.
23.3.3 Interpolate
This feature interpolates a given item spatially. The interpolation will replace
originally undefined or delete values with interpolated values.
Mark and restore provides a kind of version control and can be used to undo
changes made to a dataset.
When modifying a dataset, you may want to mark the current version, to be
able to recognize it at a later time. You can continue editing the file, make as
many marks as necessary. If you at some point find out that a previous ver-
sion of the dataset is better, you can restore the data from that version.
When you restore a previous version, all future marks/versions are deleted.
23.4 View
You may select which item, time step and layer to view and edit from the View
drop-down menu.
23.4.1 Items
You select the item to view by choosing between the available data items in
the dataset.
From this dialog you can also modify an item name, and convert the data val-
ues in the file to another data unit.
It is possible to add images to the graphical display. The order of the dis-
played layers can be defined in the overlay manager.
23.5 Tools
23.5.1 Statistics
This tool calculates the statistics of the selected item in the dataset.
The output will be a dataset file with only one time step, containing three
items:
1. Statistical minimum
2. Statistical maximum
3. Statistical mean
23.5.2 Extraction
In the Data Extraction tool you can extract data from a dfsu file.
Point
Column (for 3D data files only)
Profile
Figure 23.8 Illustration of output types when extracting data from dfsu files
Red: 2D dfsu file, Green: 3D dfsu file
Point
The output from extracting data in a point is a dfs0 file.
Coordinates
Here you define the xy(z) coordinates of the extraction point directly.
Digitize from graphical view
Here you mark the position of the point on the graphical view.
You define the z-coordinate of the extractio point directly.
Column
The output from extracting data in a column is a dfsu file. The dfsu file con-
tains the values from the layers in the vertical, defining element number 1 as
the bottom layer, and increasing in number towards the water surface.
Coordinates
Here you define the xy coordinates of the extraction point directly
Profile
The output from extracting a profile depends on the dimension of the input
dfsu file. In case the file is a 2D file, the output is a dfs1 file showing the val-
ues along a line. In case the file is a 3D file, the output is a dfsu file showing
the values in the vertical along a line. You may define the location in two
ways:
An additional option is to interpolate the profile line to follow the nearest seg-
ment list, i.e. a line through the node values as displayed in Figure 23.9.
Figure 23.9 Extraction of data along profile line from (0,50) to (1000,50)
Upper: element mesh
Middle: default extraction line
Lower: extraction line when including nearest segment list
This tool export element values from the file to ascii file(s) with extension xyz.
For each selected item and time step a separate file is generated. The indi-
vidual files are named by the item description and time value, e.g. ‘Surface
elevation_01-01-2004_01-20-00.xyz’ for the item ‘Surface elevation’ at the
time step ‘01-01-2004 01:20:00’.
1. x-coordinate
2. y-coordinate
3. z-coordinate (in case of 2D files this is the bathymetry value)
4. element value
23.6 Examples
The following describe some examples of use of the Data Manager.
If you have several simulations of the same area, the Data Manager can com-
pare the results.
Assume we want to compare one item as, e.g., surface elevation from the two
files: data1.dfsu and data2.dfsu. There are two ways of accomplishing this: A
fast procedure and a "reusable" one.
The fast procedure can be applied, when you want to see the difference here
and now, but you do not need to save the difference to a file. The reusable
procedure will save the difference to a new file.
Now the current item will be the difference between the two.
Note: Do not press save, since the current item will be overwritten with the
newly calculated data, and the original data in data1.dfsu will be lost.
1. From the menu, select "file", "new", "file" and find the Data Manager. This
will start the "New file wizard".
2. Select "import 2D or 3D dfsu file", and choose either data1.dfsu or
data2.dfsu. This will be the mesh that the comparison will be made on.
Click "next"
3. Select an equidistant time axis - no explicit start time. Specify a time step
corresponding to either of the data1.dfsu, data2.dfsu files.
4. Add a new item corresponding to the item you wish to compare, e.g., sur-
face elevation. Specify type and unit. If you wish to compare more than
one item, you can add more items here. Click "finish", and you will have
the skeleton of a new file defined.
5. Start the Calculator. Add two variables, as Var3 select data1.dfsu and rel-
evant item, and as Var4 select data2.dfsu and relevant item. Now enter
Var3-Var4 in expression. Press Calculate.
Note: The two data files need not to be based on the same mesh, or the
same projection. See Variables in Calculator for reference.
IMPORTANT: The result will in general not be exactly the same when com-
paring data1.dfsu with data2.dfsu as opposed to comparing data2.dfsu with
data1.dfsu. This is the case if the meshes in the two files differ. The result will
depend on the mesh used when performing the actual difference, due to the
application of interpolation when meshes differ.
Now we shall show how to make a new file containing initial conditions for a
new simulation. In this example we will generate a grain size map where the
mean grain size, d50, is defined based on the water depth, D, according to the
formula:
or
We assume that we already have a data.dfsu 2D file containing the still water
depth.
1. From the menu, select "file", "new", "file" and find the Data Manager. This
will start the "New file wizard".
2. Select "import 2D or 3D dfsu file", and choose data.dfsu. Click "next"
3. Select an equidistant time axis - no explicit start time.
4. Add a new item corresponding to the item you wish to use as initial con-
dition, in this case a type Grain Diameter with unit mm. Click "finish", and
you will have the skeleton of a new file defined.
5. Start the Calculator. Add one variable; select data1.dfsu and the still
water depth item. This will be represented by a new variable Var3.
if(CurrItem<>0,CurrItem,1*10^(-35))
or
if(CurrItem!=0,CurrItem,1*10^(-35))
5. We need to specify whether we want to modify all time steps, or just the
current one.
6. Press Calculate and Click “Save” to save the file
24 Data Extraction FM
The Data Extraction FM is a tool for extraction of data from 2D and 3D
unstructured data files (dfsu), e.g. result files from MIKE 21 & MIKE 3 Flow
Model FM and MIKE 21 Spectral Waves FM.
The output dialogs is similar to the outputs dialogs in the setup editors of
MIKE 21 & MIKE 3 Flow Model FM and MIKE 21 Spectral Waves FM and has
a subset of the functionality of these. The specification of point, line and
area/volume series in the Data Extraction FM tool is identical to the specifica-
tion in the setup editors.
Note: This tool doesn’t work for Spectral Parameter files varying in space
(from MIKE 21 SW) or for Decoupled Flux files (from MIKE 21 & MIKE 3 Flow
Model FM).
24.1 Input
Select name and location of the input file, which must be a 2D or 3D unstruc-
tured data file (dfsu).
24.2 Output
In the main Outputs dialog you can add a new output file by clicking on the
"New output" button. By selecting a file in the Output list and clicking on the
"Delete output" you can remove this file. For each output file you can specify
the name (title) of the file and whether the output file should be included or
not. The specification of the individual output files is made subsequently. You
can go to the dialog for specification by clicking on the "Go to .." button.
Finally, you can view the results using the relevant MIKE Zero viewing/editing
tool by clicking on the "View" button during and after the extraction.
For each selected output file the field type, the output format, the output file
(name and location) and the time step must be specified. Depending on the
output format the geographical location/extend of the output data must also
be specified.
Field type
For a 2D unstructured data file the default field type is 2D (horizontal).
In case the 2D data file contains the necessary items to calculate the flow dis-
charge, it is also possible to select field type Discharge.
Note: The flow discharge can be calculated if one of the following item com-
binations is contained in the input data file:
(P flux, Q flux)
(Surface elevation, U velocity, V velocity)
(Total water depth, U velocity, V velocity)
Output format
The possible choice of output format depends on the field type.
For field type Discharge the output format is automatically selected as Cross
section.
Data type
You must specify the data type. You can select discrete values or interpolated
values. For point series, area series, horizontal plane series, vertical plane
series and volume series both options are available. For line series only inter-
polated values is available. See also Table 24.1.
If "discrete values" is selected for the data type for point series, area series,
vertical plane series and volume series, the values written in the data file are
the cell-averaged values. For horizontal plane series this is also the case if
"Layer number" or "Layer number above the bed" is selected for the vertical
type. For the four remaining options (see Horizontal plane series), a linear
interpolation in the vertical direction is applied to calculate the values at the
specified z-level.
If "interpolated values" is selected for the data type, the values written in the
data file are determined by 2nd order interpolation. The element in which the
point is located is determined and the point value is obtained by linear inter-
polation using the vertex (node) values for the actual element. The vertex val-
ues are calculated from on the cell-averaged values using the pseudo-
Laplacian procedure proposed by Holmes and Connell (1989).
Note, that all adjacent elements, including dry elements, are considered in
the interpolation calculation.
Output file
A name and location of the output file must be specified along with the file
type. The file type depends on the Output format and the Data type as shown
in Table 24.1.
Table 24.2 List of tools for viewing, editing and plotting results
Time step
The temporal range (first and last time step) and time step frequency refers to
the time steps in the input file. Note, that 0 is the first time step in the input
file.
Point series
You must select the map projection (LONG/LAT, UTM-32 etc.) in which you
want to specify the horizontal location of the points.
The geographical coordinates of the points are either taken from the dialog or
from a file. The file format is an ascii file with four space separated items for
each point on separate lines. The first two items must be floats (real num-
bers) for the x- and y-coordinate. For 3D field data the third item must be an
integer for the Layer number if discrete values are selected and a float (real
number) for the z-coordinate if interpolated values are selected. The layers
are numbered 1 at the bed and increasing upwards. For 2D field data the
third item is unused (but must be specified). The last item (the remaining of
the line) is the name specification for each point.
Layer number
The layer number selected for discrete values in the point output is defined
from the lowest active layer (=1) increasing upwards. In case the mesh is a
type sigma mesh the number of active layers in the water column will always
be the same in any point in the domain. In case the mesh is a combined
sigma-z level mesh the number of active layers may vary in the domain. An
example is shown in Figure 24.1.
Figure 24.1 Example of layer numbers in point output specification in case of com-
bined sigma-z level mesh
Line series
You must select the map projection (LONG/LAT, UTM-32 etc.) in which you
want to specify the horizontal location of the points.
data the third item must be a float (real number) for the z-coordinate. For 2D
field data the third item is unused (but must be specified)
Area series
You must select the map projection (Long/Lat, UTM-32, etc.) in which you
want to specify the horizontal spatial information.
If discrete values is selected for the data type the discrete field data within a
polygon can be selected. The closed region is bounded by a number of line
segments. You must specify the coordinates of the vertex points of the poly-
gon. Two successive points are the endpoints of a line that is a side of the
polygon. The first and final point is joined by a line segment that closes the
polygon. The geographical coordinates of the polygon points are taken from
the dialog or from a file. The file format is an ascii file with three space sepa-
rated items for each of the two points on separate lines. The first two items
must be floats (real numbers) for the x- and y-coordinate. The third item is
unused (but must be specified).
If interpolated values is selected for the data type the values is calculated on
a structured grid (overlay). For each direction you should specify
The origin
The grid spacing
The number of grid points
Furthermore, the orientation of the grid at the origin must be specified. This is
defined as the angle between y-axis in the selected projection and the y-axis
of the grid measured clockwise.
If discrete values is selected for the data type the discrete field data within a
polygon can be selected. The closed region is bounded by a number of line
segments. You must specify the coordinates of the vertex points of the poly-
gon. Two successive points are the endpoints of a line that is a side of the
polygon. The first and final point is joined by a line segment that closes the
polygon. The geographical coordinates of the polygon points are taken from
the dialog or from a file. The file format is an ascii file with three space sepa-
rated items for each of the two points on separate lines. The first two items
must be floats (real numbers) for the x- and y-coordinate. The third item is
unused (but must be specified). For the vertical type the following 6 options
are available
Layer number
Layer number above bed
Distance above bed
Distance below surface
z-coordinate
Percentage of water column
If interpolated values is selected for the data type the values is calculated on
a structured grid (overlay). For each direction you should specify
The origin
The grid spacing
The number of grid points
Furthermore, the orientation of the grid at the origin must be specified. This is
defined as the angle between y-axis in the selected projection and the y-axis
of the grid measured clockwise. Finally, the z-coordinate for the horizontal
plane must be specified.
Layer specification
When "Layer number" is specified for the "Vertical type", the number refer to
the vertical discretization specified on the Vertical Mesh page. Here the layers
are numbered 1 at the lowest layer and increase upwards. In case of a com-
bined sigma-z level mesh only the active elements are saved in the output.
An example is shown in Figure 24.1. When "Layer number above bed" is
specified for the "Vertical type", the number is defined from the lowest active
layer (=1) increasing upwards. In case the mesh is a type sigma mesh, the
number of active layers in the water column will always be the same in any
point in the domain. In case the mesh is a combined sigma-z level mesh, the
number of active layers may vary in the domain. An example is shown in
Figure 24.2.
If discrete values is selected for the data type you must also specify the range
of layers (first and last Layer number) which should be stored in the output file
The intersection between the line segments and the faces of the unstructured
mesh is determined and added to the list of points on the polyline. A vertical
unstructured mesh is then created from the horizontal polyline points and the
vertical discretization for the computational mesh. For each element of the of
vertical mesh the discrete value at the centroid is determined as the discrete
value in the element of the computational mesh, where the centroid point is
located.
If interpolated values is selected for the data type the values is calculated on
a structured grid (overlay). You should specify the number of grid points along
the polyline. For the vertical direction the minimum and maximum z value and
the number of grid points should be specified.
In the dfs2 output file Dimension 1 is the coordinate along the polyline and
Dimension 2 is the vertical coordinate (z-direction). The origin in the z-direc-
tion in the dfs2 file is determined as the specified maximum z value.
Layer number
The layer number(s) selected for the vertical plane output refer to the vertical
discretization specified on the Vertical Mesh page. Here the layers are num-
bered 1 at the lowest layer and increase upwards. In case of a combined
sigma-z level mesh only the active elements are saved in the output.
Volume series
You must select the map projection (Long/Lat, UTM-32, etc.) in which you
want to specify the horizontal spatial information.
If discrete values is selected for the data type the discrete field data within a
polygon can be selected. The closed region is bounded by a number of line
segments. You must specify the coordinates of the vertex points of the poly-
gon. Two successive points are the endpoints of a line that is a side of the
polygon. The first and final point is joined by a line segment that closes the
polygon. The geographical coordinates of the polygon points are taken from
the dialog or from a file. The file format is an ascii file with three space sepa-
rated items for each of the two points on separate lines. The three items must
be floats (real numbers) for the x-, y- and z-coordinate. You must also specify
the range of layers (first and last Layer number) which should be stored in the
output file.
If interpolated values is selected for the data type the values is calculated on
a structured grid (overlay). For each direction you should specify
The origin
The grid spacing
The number of grid points
Furthermore, the orientation of the grid at the origin must be specified. This is
defined as the angle between y-axis in the selected projection and the y-axis
of the grid measured clockwise.
Note, the origin, z0dfs3, in the z-direction in the dfs3 file is determined as
z0dfs3 = z0 + dz*(nz-1), where z0 is the user specified origin, dz is the grid
spacing and nz in the number of grid points.
Layer number
The layer number(s) selected for the volume output refer to the vertical dis-
cretization specified on the Vertical Mesh page. Here the layers are num-
bered 1 at the lowest layer and increase upwards. In case of a combined
sigma-z level mesh only the elements containing water are saved in the out-
put. An example is shown in Figure 24.2.
Cross-section series
The cross section is defined by defining a polyline in the horizontal domain.
The polyline is given by a number of geo-referenced points which together
make up a polyline. A minimum of two points is required. The polyline is com-
posed of a sequence of line segments. The line segments are straight lines
between two successive points. The geographical coordinates are taken from
the dialog or from a file. The file format is an ascii file with three space sepa-
rated items for each of the two points on separate lines. The first two items
must be floats (real numbers) for the x- and y-coordinate. The third item is
unused (but must be specified). The polyline (cross section) in the numerical
calculations is defined as a section of element faces. The face is included in
the section when the line between the two element centres of the faces
crosses one of the line segments. The faces defining the cross section are
listed in the log-file.
You must also select the map projection (Long/Lat, UTM-32, etc.) in which
you want to specify the horizontal location of the points.
By definition, discharge is positive for flow towards left when positioned at the
first point and looking forward along the cross-section line. The transports are
always integrated over the entire water depth.
All output items are optional, i.e. the user is free to select among the items in
the input file.
For volume series (3D output) the (hidden) Z coordinate item is automatically
selected in order for the output file to be treated as a proper 3D unstructured
data file in for example the Data Viewer.
Discharge
When selecting discharge output for the flow you can select the following
items:
By definition, discharge is positive for flow towards left when positioned at the
first point and looking forward along the cross-section line. The transports are
always integrated over the entire water depth.
25.1 Introduction
The Time Series Comparator (TSC) is a MIKE Zero post processing tool
which facilitates the comparison of two time series by computing some perfor-
mance measures and producing relevant comparison plots. This tool is
designed to assess the performance of MIKE Powered by DHI numerical
models by comparing numerical outputs to local measurements at the calibra-
tion and validation stages.
Settings
Comparison results
Log
25.2.1 Settings
The “Settings” tab is the default tab of the TSC GUI. It is the place where the
time series files to compare are set up.
The validation area (7) displays errors encountered during the set-up pro-
cess. No comparison can be performed if errors are detected.
Comparison table
The Comparison table is where the user defines the different time series pairs
he wants to compare using this tool ((4) in Figure 25.2). A comparison is
defined by pairing an item of the observation data file with an item of the sim-
ulation data file.
Multiple comparisons can be defined and included (or excluded) in the com-
parison process. However at least one needs to be included in order to ena-
ble the comparison process (provided that no other setup errors have been
detected).
Once the comparison has been executed, individual comparison results can
be displayed using the View link of each Comparison pair (located in the out-
right column of the Comparison table).
Output File
Optionally Time Series files (dfs0) of observation, simulation and difference
can be saved for each defined combination in the above Comparison table
((5) in Figure 25.2). The “ – Combination i” will be augmented to the filename
defined in the GUI for each defined combination (where i is the number of the
comparison).
For each comparison set, the following information is displayed to the user
(numbers refer to Figure 25.4 below):
25.2.3 Log
The “Log” tab displays the Log file content of the current TSC analysis..
1 N
Mean error ME = ---- OBS i – SIM i = OBS – SIM
Ni = 1
1 N
Mean absolute error MAE = ---- OBS i – SIM i
Ni = 1
Standard deviation
1 N
of residuals STD = ---- OBS i – SIM i – OBS – SIM 2
Ni = 1
2
N
N
OBSi – SIMi 2
i=1
Index of agreement d = 1 – ----------------------------------------------------------------------------------------------
N
2
SIM i – OBS + OBS i – OBS
i=1
The mean error (ME), root mean squared error (RMSE), and standard devia-
tion of residuals (STD) are related via the equation:
2 2 2
RMSE = ME + STD (25.1)
The ME, MAE, RMSE and STD statistics are all dimensional measures with
units of the variable considered. Dimensionless measures can be defined by
using relative residuals in the equations, i.e. by dividing (OBSi – SIMi) with
the observation OBSi within the summation. If the variable considered has
values that cover a large range (over several decades), the dimensional and
dimensionless measures may give different interpretations on model perfor-
mance. While the dimensional measures are sensitive to high extremes, the
dimensionless measures are sensitive to low extremes. To put less emphasis
on high extremes one may also use statistics based on logarithmic trans-
formed values. The effect of this is virtually similar to using relative residuals.
The index of agreement is not as widely used as E and R2. It ranges from 0
to 1 with large values indicating a better fit. The d measure is also based on
the sum of squared residuals, but standardised according to a potential error
(the term in the summation in the denominator represents the largest error
that each (SIMi – OBSi)2 can reach). As is the case with E and R2, d is also
sensitive to outliers.
25.3.1 References
Nash, J.E., Sutcliffe, J., (1970), River flow forecasting through conceptual
models, Part I A discussions of principles, J. Hydrol., 10, 282-290.
Willmott, C.J., Ackleson, S.G., Davis, R.E., Feddema, J.J, Klink, K.M., Leg-
ates, D.R., O’Donnell, J., Rowe, C.M., (1985), Statistics for the evaluation
and comparison of models, J. Geophys. Res., 90, 8995-9005.
25.4 Example
An example of use of the TSC is provided with the official distribution under:
C…\MIKE_ZERO\TimeSeriesComparator\Oresund
The example data is based on the Oresund model as described in the MIKE
21 FM HD Step by Step guide.
From this model, different two observation / measurements data at the loca-
tion Ndr. Roese (NR) are provided:
obs NR currents.dfs0
obs NR waterlevel.dfs0
Time Series Outputs of two different models runs at the same NR location are
also provided:
sim NR HD Run1.dfs0
sim NR HD Run2.dfs0
25.4.2 Setups
For each run, three different setups of the TSC are provided to assess the
performance of the numerical model against available measurement at the
NR location:
The “single” setups define only one single comparison combination for the
current speed parameter while the “multi” setups present different possible
comparison combinations. The “waterlevel” setups define comparison for this
item using the observed datafile “obs NR waterlevel.dfs0”.
25.4.3 Results
Figure 25.5 Scatter plot OBS vs SIM for the current speed parameter at NR
Left: Run1, Right: Run2
But the Time Series Comparator allows a more objective comparison by pro-
viding numerical value for different performance indices as shown in
Table 25.2 for each run.
Table 25.2 Performance indices between OBS and SIM data for the current speed
parameter at NR
Time Series Comparison results on the surface elevation parameter show the
modification made between two runs are insignificant.
File Menu
Edit Menu
View Menu
Projects Menu
Display Properties
Window Menu
Result Viewer Toolbar
26 Result Viewer
The information provided in the present manual is related, specifically, to the
use of the MIKE Zero Result Viewer for the applications involving presenta-
tion of results from DHI numerical modelling software within the MIKE Zero
suite.
New
Opens the standard MIKE Zero File/New dialog where you can choose to cre-
ate a document type.
Open
Opens the standard MIKE Zero File/Open dialog where you can choose to
open an existing document.
Close
Closes the active document.
Save
Saves the Animator mza-file.
Save As
Saves the Animator mza-file as a new file.
Print
Produces a hardcopy of the current plot.
Print Preview
Shows a preview of the hardcopy, as it will appear on the hardcopy device.
Print Setup
Here you may select the printer and modify its setup. This is also where you
choose the layout of the paper and the paper size.
Undo
Undo latest command.
Cut/Copy/Paste
Cuts, copies and pastes your selected data through the Windows clipboard.
Copy/Paste View
Copies and pastes the current view between different instances of Result
Viewer, Data Viewer, the Graphical overview tab in the FM Input Editor, Data
Manager and the Grid Series Editor.
This menu makes it possible to overlay the workspace area with a geograph-
ical net showing the longitudes and latitudes, a map projection grid and an
arrow pointing towards true North.
Map Projection
You can add or remove lines of constant Eastings and Northings in the dis-
play.
You can select which map projection net to overlay. Per default the displayed
map projection net is defined as in the work area.
North Arrow
You can add or remove a north indicator in the display.
Zoom In
Allows you to zoom in on the plotted data and change the focus of the plot.
Zoom to coordinates
Allows you to zoom in on an area specified by (x,y) coordinates.
Zoom Out
Zooms out to default coverage.
26.3.4 Profile
This enables you to load, save and create a new profile plot.
If you have a profile open you can save the current profile location. This
allows you to create stardard profiles for comparing scenarios.
The entire plot area with all plot objects within can be exported.
Copy to Clipboard
Copies the selected data to the clipboard. The general idea is that the graph-
ics from an object at any time can be copied to a standard Windows applica-
tion which supports GDI-operations. An example could be to export the
graphics to MS Word. Activate the "Copy to Clipboard" function, then switch
to MS Word and activate the "Paste"-function or press "Ctrl" V in and active
Word document, and then a copy of the plot appears in MS Word.
Save to Metafile
Saves the current plot to an enhanced meta file.
Save to Bitmap
Saves the current snapshot plot to a bitmap file.
Batch command
It is possible to generate graphic files through a batch-command once the
graphical setup file (.rev) has been generated in the Result Viewer.
Alternatively you may create other file types e.g. output.bmp, output.jpg or
out-put.tif.
The options [-screen], [-height xxx] and [-width xxx] can be applied to set the
size (pixel resolution) of the image. The option [scalefont] (alternatively
[scale_font]) can be applied to scale the font size in case the height or the
width of the image is user defined.
Writing MzResultApp -? in a DOS prompt will show the full syntax of the com-
mand.
This value defines how the display is scaled relatively in the x- and y-axis
direction.
26.3.7 Toolbar
Allows you to insert and remove toolbars. The Result Viewer Toolbar provides
a number of tools especially relevant for the Result Viewer.
Toggles the status bar at the bottom of the window on and off. While it pro-
vides useful information, it may be convenient to toggle the status bar off for
an increased viewing area.
This is where you add a new file to the project. The file can be a number of
types:
Shape File
XYZ File
Some of the documentation for the individual modules (e.g. MIKE SHE) con-
tains further description and examples related to the use of the Result Viewer.
Note: The calculations of derived items are based on the assumption of the
absolute delete value in the file is very small, e.g. -10-30. The use of other
delete values may lead to incorrect derived results in grid cells next to cells
holding delete values.
You can also specify which item goes on top, by using the up/down arrow but-
tons.
If e.g. an item is very low on the list (high number), it will be plotted on top of
an item higher on the list, thus creating a different picture than if the two were
switched around.
The display of each of the layers must be defined. Dependent of the type of
result file, different properties can be set.
The work area for the presentation is set by specifying the extent of the work-
ing area and the projection to be used.
26.4.5 Video
Video properties
You can control various output settings for the video. Which ones and in what
way is dependent on the particular plot object(s).
Double Buffering
This is a special drawing technique, that allows flicker-free animations. Dou-
ble Buffering is only used if the plot control is active.
File name
The video file name is the name of the AVI-file used for generation of video
output from the plot.
Frame rate
The Frame rate is the number of frames per second that is displayed in the
video.
Image size
The Image size for a single plot object is defined by the layout in the plot. The
Image size for multiple plot objects can be defined by one of three options:
Full paper
The image will display the full page of the plot
Custom
Here you define the margins for the image to control the size.
Record
Record a video in avi format. Besides the format you can select how long the
video should be (no. of frames), the speed of the video (frame rate), the
image size and the output name and directory.
In case you want to stop the recording before the end of the animation press
‘Escape’.
Snapshot
Make a still picture in either *:BMP, *:JPEG, *.PNG or *.TIF format. Besides
the format you can select the image size and the output file name.
This is where you define the overall style of the display area.
Properties like title, display of title, x- and y-axis annotation, display of info
line, properties of geographical and map projection overlay, displayed map
projection and position of attached overlay like the e.g. the color legend can
be controlled.
Line style
You can customize the line style by width and color.
This is where you define the display style of an image. Using transparent col-
ours gives the possibility to view several layers.
The size and position of the image in the work area is given in the projection,
such as they are defined in the Work Area.
This is where you can select to display a background derived from a number
of different map themes or satellite images available from the web.
Interpolation type
Choose between bilinear and nearest neighbour. Bilinear gives a nicer and
smoother rendering of especially the texts embedded in the background
image, whereas nearest neighbour might be a few % faster.
Transformation accuracy
Is specified in % of the covered area. The reason why it's given in % is that
covers projection accuracy in both length units like meter and feet, but also in
degrees. The accepted range is from 0.0001% to 1% of the covered area.
Modifying the value will have greater effect the more distorted the projection
is. Specifying a value closer to the max of 1% allows for a faster but less
accurate reprojection of the background images.
You may define contours, isolines and which item of the data file to display.
The Layer no. refers to the layers in 3-dimensional data files.
Isolines
You can customize the display of both isolines and isoline labels.
Miscellaneous
You can customize the line styles and include/exclude a color legend for the
selected item.
26.5.5 Shapes
You define how the points, lines/polygons and text annotations are to be dis-
played.
The shape file must be georeferenced within the Work Area to be displayed.
26.5.6 Vectors
You need to define the items for the X- and Y-coordinate, respectively. You
have the option to specify the vector scale, and to plot only some of the vec-
tors in the domain.
You specify the style of the vectors in the Vector Options dialog.
You can specify a limit on the vector length, and the color and thickness of the
displayed vectors.
26.5.8 Branches
This is where you define the display of branches from a MIKE 11 model
setup.
You can define the branch width and the branch colour.
26.5.9 Pipes
This is where you define the display of pipes from a MIKE URBAN CS or
MOUSE setup.
26.5.10 Profiles
This is where you define the display of e.g. a cross-section plot of a saturated
zone from a MIKE SHE simulation.
Graphical Items
In this dialog you specify the layout for the individual graphical items. If you
click on the Details... button for the item, you will get the 3D Items properties
dialog where you can change the colour scale and plotting characteristics for
the cross-section, see page 341.
Tabular Items
In this dialog you specify the layout for the individual tabular items.
When you add a tabular item you must specify whether it is a static item or a
dynamic item.
In this dialog you specify the layout for the individual user defined indicators.
In this dialog you can change the colour scale and plotting characteristics for
a cross-section.
Style
Color
Vectors
26.5.12 Cross-section
26.5.13 UZ plot
Style
This is where you specify the style of the contours.
Color
This is where you specify the colour of the contours.
26.5.14 Baseline
A baseline represents the spatial outline of a Profile series file defined by the
geographical origin, orientation and extent.
Lines
This is where you define the display of the line.
You can define the line thickness, line style and line color.
Points
This is where you define the display of the points on the line.
A spatial line represents item values along a Baseline from a Profile series
file, e.g. the coastline position or spatially distributed transport.
Lines
Spatial line
A line will display the item values in the file
Vector profile
The item values will be displayed as vectors extending perpendicular
from the baseline. You will have the option of selecting the number of
vectors to show.
You can define the line thickness, line style and line color.
Points
This is where you define the display of the points on the line.
Enhanced metafile allows you to import and use your own point symbol
in the display. You can modify the orientation of the metafile symbol.
26.5.16 Colors
The color palette specify the colors used for displaying data according to var-
ious levels. You may create a palette and save it for later use.
26.5.17 Particles
You may choose to have a fixed size for all the markers or have the size vary
according to the value of a selected variable. In the latter case the marker
scale factor can be used to resize the marker.
You may choose to display the particles for only the current time step, a num-
ber of recent time steps or all the time steps. The tail length defines the num-
ber of recent time steps to display.
Annotations
You can show annotations for selected particles.
Filters
You can define filters such that only a part of the particles or annotations are
displayed.
Figure 26.31 Specifying filter: this only display the first 4 particles
You can define the line thickness, style and color of the lines.
The Track length may be displayed as the total track, the track from start to
current time step or the recent track only (current with Tail).
Line Styles
The Line Styles dialog is an entry where you describe the column order of the
xyz data to display.
Only the first three or four columns in the xyz files are considered (depending
on the number of columns in the file). A sample of the contents from the
selected xyz file is displayed for overview.
It is possible to connect the individual xyz points with a line. You can define
the thickness, style and color for the lines. It is possible to display only closed
polygons and to define polygon fill style.
In case the file contains xyz data only, the points connects as they are listed
in the xyz file, otherwise the connecting lines are defined by the values in the
connectivity column.
Point Styles
This is where you define the display of the individual xyz points.
You may choose to have a fixed size for all the markers or have the size vary
according to the value of a selected variable. In the latter case the marker
scale factor can be used to resize the marker.
You may choose to display only a part of the points by specifying a point fre-
quency > 1.
Annotations
You can show annotations for selected points. You may choose to show all
the variables, or a selected few.
Many of the functions in the Results Viewer are the same as those available
in other DHI software tools (e.g., 2D Grid Editor). Additional tools available in
the result viewer are summarized in Table 26.1 and below.
Time series pipe Display time series plot for pipe network. Multiple
plot time series can be selected
The Time Series tool allows you to plot a time series of all the data available
in the current view. To select display of time series data you must click on the
Time series extractor icon, .
After selecting the locations of the time series files to extract you have the
option to deselect some of the selected points and to accumulate the data
over the simulation period (Figure 26.36). After making the appropriate selec-
tions/deselections press the OK button to generate the time series plot. The
entire extraction process can be stopped by pressing the Cancel button. An
example of a time series plot generated in the Results Viewer is shown in
Figure 26.37.
Figure 26.37 Time series plot generated using the time series extraction tool
To display a cross section plot of a set of 3D gridded data, you must click on
the Profile icon, . Clicking on this icon will allow you to interactively
define a cross-section by left-clicking at each vertex of the profile line and
double-clicking to close the profile.
After closing the profile, the following dialogue will be displayed listing the
available output items.
Only one of these items can be selected. After selecting your item, click OK
and the profile will be displayed.
The profiles extractor tool can be used to extract a cross-section through sim-
ulated MIKE SHE and MIKE 11 results. The type of cross-section created is
dependent on the simulated data displayed in the result viewer. For example,
if the result viewer contains simulated 3D heads and MIKE 11 results then the
cross-section will have simulated water levels and simulate MIKE 11 canal
stages.
After defining the profile, the items to be displayed on the profile should be
selected. The resulting profile is shown in Figure 26.38. As with the other
tools, extracted profiles can be animated on the screen and/or exported as
avi and image files.
Figure 26.38 Resultant profile generated with the profile extractor tool
You can modify the plot by right clicking on the plot and selecting Properties
form the pop-up menu, see Profiles (p. 337).
As with the other tools available in the result viewer, users should experiment
with the available options to learn how to fully use the result viewer profile
extractor.
To load a saved profile, make the plan view plot active, by either minimising
or closing open profile plots. The View/Profile/Load option becomes active
and you can load a saved profile and select the profile item normally.
MIKE 11 results can also be added to the result viewer and simulated canal
water levels can be displayed using the Cross-section extractor. The cross-
section extractor shows simulated stages and the geometry of the cross-sec-
tion being viewed.
To display a cross section plot from MIKE 11 results, you must click on the
Cross-section icon, . After selecting the cross-section extractor tool, move
the cursor over the location you want to extract the MIKE 11 results from
(Figure 26.39). The simulated results are displayed along with the cross-sec-
tion geometry (Figure 26.40). As with the other tools, extracted profiles can
be animated on the screen and/or exported as .avi and image files.
UZ Scatter plots only show simulated results for UZ calculation cells. The
number of UZ calculation cells may be less than the total number of active
model domain used by the overland and saturated zone modules if the UZ
module for the simulation is not using the “calculation in all cells” option. An
example of when use of the UZ scatter plot is useful is shown in Figure 26.41.
Figure 26.41 A) UZ Scatter Plot and its relationship to B) the UZ calculation cells
UZ Plot
UZ Plots can only be extracted from simulated unsaturated zone water con-
tents and flow. This is because UZ plots display results for a single column for
all of the UZ calculation nodes in the column. Other simulated UZ results
show net values for the entire UZ (i.e., infiltration, recharge to the SZ, etc.).
After selecting the UZ Plot extractor tool, , move the cursor over the col-
umn you want to extract the results from and double-click (Figure 26.43).
Results from multiple UZ columns cannot be displayed on the same UZ Plot.
Figure 26.43 Extracting a UZ Plot from simulated unsaturated water contents and
flow
The simulated water content results for the selected column are displayed in
Figure 26.44. The UZ Plots show either water content or unsaturated zone
flow for each node in the column (y-axis) for the entire simulation (x-axis).
An example of a modified UZ plot with the mesh displayed and only showing
the upper five meters of the soil column is shown in Figure 26.45.
Figure 26.45 Close up of upper 5 meters of soil column with the calculation grid dis-
played
27.1 Introduction
All MIKE Powered by DHI products use a standard library of data units, called
the Engineering Unit Management (EUM) library. Every time you open a
model the default Unit Base Groups file, ‘EUM.ubg’ is read. This file is saved
and located in the local application data folder, e.g.
where [User] is the user identification name and [Year] the release year.
The Unit Base Group Editing Utility is a tool for the advanced user to edit the
default units for various item types.This allows you to change the displayed
units for any value that is included in the library.
The MIKE Zero models are per default setup to work with a selection of
European data units, however it is possible to customize the MIKE Zero work
environment to another unit system, e.g. US-units, that specifies an alterna-
tive EUM Unit Type for the given EUM Item Type (see 27.3 Changing from SI
to Imperial (American) data units. (p. 371)).
Note: Not all modules in MIKE Zero are prepared for showing alternate units
in the dialogs.
All data in MIKE Zero (either given as a constant or in a DFS data file) is
based on an EUM Item Type (a string containing the item name) and one of
the related EUM Unit Types (a string specifying the corresponding unit). The
EUM library contains the selected user unit for each EUM Item Type. The first
registered unit of the possible EUM unit types is termed the FRU-unit, and is
considered to be the default base unit of the given EUM item type. FRU units
are typically SI units or units derived directly from SI units.
Figure 27.1 shows the data flow in MIKE Zero, in terms of user interface and
pre- and post-processing components.
The core unit management is done using the EUM libraries, and the item
types and units supported therein
All files - both parameter and data files - store data in their default base
units (FRU)
From file to GUI, parameters and data values are maintained in the
default base units
In the GUI, the units are entered and displayed in "user units". Conver-
sion between base units and user units is done in the GUI
The above implies that computational engines read pfs data and parameters
directly in their default base units (FRU). No unit conversion takes place in
the computational engine.
When you select this menu item, the Unit Base Group Editing dialog appears,
see Figure 27.3. By default all of the data units for each active module are
displayed. For a clearer overview of the item types, close all of the model
engines that are not relevant.
To change a unit select the data item that you want to change the units of.
Then select the new units from the combo box list of available units.
After you have changed the data units, click ’Save and Close’. This saves
your changes to the default Unit Base Groups file (EUM.ubg).
Note: If you have already added data to your model, changing the Unit Base
Group will not convert any of your data. This process simply changes the dis-
played units in the user interface and the conversion factors used to make the
input files internally consistent.
In some cases the relevant data item name is not clear, as there may be sev-
eral data items with similar names. This is more likely to occur if several mod-
ules are selected at the same time. To find out which data item is correct,
close the dialog and re-open your model. Then either move the mouse to the
relevant text box, where a fly-over text box should appear telling you what is
the relevant item type for this field. Alternatively, for gridded data, you can use
the Create button to create a data file and then notice the item type that is dis-
played in the dialog.
Finally, occasionally, you may find that the data unit that you are looking for is
not available. In this case, contact your local Technical Support Centre, who
should forward your request to the developer for inclusion in the next release.
The first is the default file and contains standard SI units for all data items in
all of the MIKE Zero products. The second contains standard Imperial (US)
units for most data items in all of the MIKE Zero products.
To change the display units for all of your data items to Imperial units, load the
EUM_US_Units.ubg file, Save and Close the dialog and then reopen your
model (i.e. the EUM_US_Units.ubg file will be copied to EUM.ubg).
If you want to change individual data items to SI or Imperial, you can change
the items individually. Then use the Save and Close button to save your
changes back to the EUM.ubg file. If you want to create and save special unit
versions, then you can copy the EUM.ubg to a different filename and reload
it.
Note: Not all modules in MIKE Zero are prepared for showing Imperial
(American) Data Units.
IMPORTANT: If you want to save any of your model specific changes, then
you should first save the EUM.ubg to a new name.
For example, in the following set of dialogs shown in Figure 27.4, an Evapo-
transpiration time series was selected instead of the correct Precipitation time
series file.
The first error is in the Select Item tab (upper dialog), where there is a mes-
sage that no Valid Items are found.
To find out why there is no valid items, you should look in the Constraints Info
tab (centre dialog). In you can see that the item type is supposed to be Pre-
cipitation Rate, but this constraint has failed.
To find out what the item type of the selected file is, look at the Item Info tab
(lower dialog) where you can see that the current item type is Evapotranspira-
tion Rate.
Alternatively you may change the EUM type of any existing data file by using
the MIKE Zero tool ‘Data Utility...’ shown at the bottom of the File pull-down
menu.
To change the EUM item type of a parameter in a .dfs0 file, open the time
series in the Time Series Editor and then select the Properties... item from the
Edit drop down menu, see Figure 27.5.
This opens the item properties dialog (Figure 27.6) where you can change
the EUM item type and the EUM unit type that is assigned for each item in the
file.
To change the EUM item type of a parameter in a .dfs2 file, open the grid file
in the Grid Editor and then select the Items... item from the Edit drop down
menu, see Figure 27.7.
This will open the Edit Properties dialog for the Grid Editor (Figure 27.8)
where you can change the EUM item type and the associated EUM unit type.
28.1 Introduction
The Data Utility is a tool for the advanced user to edit header information in
DFS data files.
From the Main Menu of the MIKE Zero window, open the File menu and then
choose Options, followed by Data Utility... to open the MzDataUtility window.
From the Main Menu of the MzDataUtility window you may choose Open in
the File menu to open an existing DFS file.
With Data Utility, you can edit various DFS header information, such as:
File Overview
Dynamic Items
Static Items
Custom Blocks
Data Type and Delete Values
In this dialog you can edit the common file information such as file title, time
axis and geographical information.
In this dialog you can edit the item information such as item name, type and
unit.
In this dialog you get an overview of the dimension of the static items con-
tained in the file. It is not possible to edit the data.
Note that static items only appear in some output files.
For some files model specific information are stored in the custom blocks (for
example the coastline orientation in a LITPACK line series file).
28.5.1 M21_Misc
Many MIKE 21 and MIKE 3 “classic” data files have a custom block called
"M21_Misc". It is a block of 7 floats:
Note that not all values necessarily are used for the particular file.
28.5.2 MIKE_FM
Dfsu files may have a custom block called “MIKE_FM”. The block contains 5
floats:
1. Number of nodes
2. Number of elements
3. Dimension of file: 2 (2D) or 3 (3D)
4. Number of layers
5. Highest Sigma layer number
Note that not all values necessarily are used for the particular file.
In this menu you may edit the data type and the delete values used in the
model.
The data type is a numerical marker that enables various models to recog-
nize the origin of the file and the data type may be used as part of the verifica-
tion of the file contents. The data type is set automatically when the data file
is written, but if you have manually edited a data file so that it complies with a
particular data type, you will need to edit the designated data type yourself for
the various models to accept it.
Some of the frequently used data types are shown in Table 28.1.
Input . . . . . . . . . . . . . . . . . . 299 P
Insert Zone . . . . . . . . . . . . . . 157 Palette . . . . . . . . . . . . . . . . . 86
Interpolate . . . . . . . . . . . . . . . 188 Point Attribute . . . . . . . . . . . . . . 141
Interpolation . . . . . . . . . . 42, 157, 288 Point data . . . . . . . . . . . . . . . . 291
Introduction . . . . . . . . . . . . . . . 69 Point Properties . . . . . . . . . . . . . 211
Inverse Distance Weigthed interpolation . . Points . . . . . . . . . . . . . . . . . . 263
191 Polygon . . . . . . . . . . . . . . . . . 141
Item information . . . . . . . . 34, 56, 380 Polygon Properties . . . . . . . . . . . 214
Polygon selection . . . . . . . . . . . . 278
L Position . . . . . . . . . . . . . . . . . 125
Land Boundaries . . . . . . . . . . . 144 Precision . . . . . . . . . . . . . . . . 34
Land Generation . . . . . . . . . . . 129 Prioritization area . . . . . . . . . . . . 180
Layer number . . . . . . . . . . . 303, 307 Profile data . . . . . . . . . . . . . . . 291
Layers . . . . . . . . . . . . . . . . . 267 Projection . . . . . . . . . . . . . 143, 204
Line rotation . . . . . . . . . . . . . . 131
Linear Interpolation . . . . . . . . . . 190 Q
LITPACK Orientation . . . . . . . . . . 54 Quadrangular mesh . . . . . . . . . . . 215
Local Maximum . . . . . . . . . . . . 162
R
M Redistribute . . . . . . . . . . . . . . . 175
M21_Misc . . . . . . . . . . . . . . . 381 Redo . . . . . . . . . . . . . . . . . . 169
Map projection . . . . . . . . . . . 302, 303 Refine . . . . . . . . . . . . . . . . . . 159
Mark element values . . . . . . . . . 277 Refine Mesh . . . . . . . . . . . . . . 191
Memory . . . . . . . . . . . . . . . . 170 Re-interpolate . . . . . . . . . . . . . . 232
Merge . . . . . . . . . . . . . . . . . 231 Re-triangulate . . . . . . . . . . . . . . 232
Mesh . . . . . . . . . . . . . . . . . 139
Mesh Definition File . . . . . . . . . . 139 S
Mesh editing mode . . . . . . . . . . 195 Scatter data . . . . . . . . . . . . . . . 176
Mesh files . . . . . . . . . . . . . . . 177 Segment list . . . . . . . . . . . . . . . 291
MIKE_FM . . . . . . . . . . . . . . . 382 Select area . . . . . . . . . . . . . . . 278
Move mesh node . . . . . . . . . . . 226 Select Sub-Set . . . . . . . . . . . . . 43
Select Zone . . . . . . . . . . . . . . . 157
N Shape file . . . . . . . . . . . . . . . . 325
Natural Neighbour Interpolation . . . . 190 Shoreline Morphology . . . . . . . . . . 197
Navigation . . . . . . . . . . . . . . . . 91 SI units . . . . . . . . . . . . . . . . . 371
Navigation View . . . . . . . . . . . . . 58 Smooth Mesh . . . . . . . . . . . . . . 187
New data file . . . . . . . . . . . . . 279 Smoothing . . . . . . . . . . . . . . . 156
New File . . . . . . . . . . . . . 19, 51, 73 Spatial properties . . . . . . . . . . . . 279
Node . . . . . . . . . . . . . . . . . . 140 Statistics . . . . . . . . . . . . . .44, 289
North to Y orientation . . . . . . . 127, 131 Status Bar . . . . . . . . . . . . . . . . 172
O T
Open Boundaries . . . . . . . . . 141, 144 Tabular View . . . . . . . . . . 36, 57, 85
Open file . . . . . . . . . . . . . . . . 251 Temporal range . . . . . . . . . . . . . 302
Options . . . . . . . . . . . . . . . . 170 Tensor . . . . . . . . . . . . . . . . . 301
origin . . . . . . . . . . . . . . . 126, 130 Time axis . . . . . . . . . . . . . . . . 280
Output . . . . . . . . . . . . . . . . . 299 Time step . . . . . . . . . . . . . . . . 302
Toolbars . . . . . . . . . . . . . . . . . 88
Transparency . . . . . . . . . . . . . . 257
Triangulate . . . . . . . . . . . . . . . 152
TS Types graphical representation . . . 38
U
Undo . . . . . . . . . . . . . . . . . . 169
Unit Base Group . . . . . . . . . . . . 76
Unit Base Groups . . . . . . . . . . . . 367
V
Vector . . . . . . . . . . . . . . . 259, 301
Vectors . . . . . . . . . . . . . . . . . 253
Vertex . . . . . . . . . . . . . . . . . . 140
Vertical position . . . . . . . . . . . . . 284
Video . . . . . . . . . . . . . . . . . . 267
video . . . . . . . . . . . . . . . . . . 330
View Colour Legend . . . . . . . . . . 185
View Scatter Data . . . . . . . . . . . 185
W
Workspace . . . . . . . . . . . . 141, 205
X
XYZ . . . . . . . . . . . . . . . . . . . 139
XYZ files . . . . . . . . . . . . . . . . 177
Z
Zoom . . . . . . . . . . . . . .37, 58, 269