MIKEZero Preprocessing Postprocessing
MIKEZero Preprocessing Postprocessing
PREPROCESSING
& POSTPROCESSING
User Guide
Generic Editors and Viewers
2
Please Note
Copyright
This document refers to proprietary computer software which is protected
by copyright. All rights are reserved. Copying or other reproduction of
this manual or the related programs is prohibited without prior written
consent of DHI Water & Environment (DHI). For details please refer to
your 'DHI Software Licence Agreement'.
Limited Liability
The liability of DHI is limited as specified in Section III of your 'DHI
Software Licence Agreement':
'IN NO EVENT SHALL DHI OR ITS REPRESENTATIVES (AGENTS
AND SUPPLIERS) BE LIABLE FOR ANY DAMAGES WHATSO-
EVER INCLUDING, WITHOUT LIMITATION, SPECIAL, INDIRECT,
INCIDENTAL OR CONSEQUENTIAL DAMAGES OR DAMAGES
FOR LOSS OF BUSINESS PROFITS OR SAVINGS, BUSINESS
INTERRUPTION, LOSS OF BUSINESS INFORMATION OR OTHER
PECUNIARY LOSS ARISING OUT OF THE USE OF OR THE INA-
BILITY TO USE THIS DHI SOFTWARE PRODUCT, EVEN IF DHI
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
THIS LIMITATION SHALL APPLY TO CLAIMS OF PERSONAL
INJURY TO THE EXTENT PERMITTED BY LAW. SOME COUN-
TRIES OR STATES DO NOT ALLOW THE EXCLUSION OR LIMITA-
TION OF LIABILITY FOR CONSEQUENTIAL, SPECIAL, INDIRECT,
INCIDENTAL DAMAGES AND, ACCORDINGLY, SOME PORTIONS
OF THESE LIMITATIONS MAY NOT APPLY TO YOU. BY YOUR
OPENING OF THIS SEALED PACKAGE OR INSTALLING OR
USING THE SOFTWARE, YOU HAVE ACCEPTED THAT THE
ABOVE LIMITATIONS OR THE MAXIMUM LEGALLY APPLICA-
BLE SUBSET OF THESE LIMITATIONS APPLY TO YOUR PUR-
CHASE OF THIS SOFTWARE.'
Printing History
June 2003
June 2004
August 2005
December 2006
3
4 MIKE Zero
CONTENTS
5
Time Series Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1 TIME SERIES EDITOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.2 New File Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.2.1 Import from ASCII File . . . . . . . . . . . . . . . . . . . . . . . . 20
1.2.2 Wave Climate Template . . . . . . . . . . . . . . . . . . . . . . . 22
1.2.3 LITProf template . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.2.4 LITTren template . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.2.5 Source Template . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.2.6 STPBatch template . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.2.7 Wind template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.3 Export to ASCII File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.4 File Properties Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.2 Axis Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.3 Item Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.5 Tabular View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.6 Graphical View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
1.6.1 Zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
1.6.2 Editing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
1.6.3 Graphical and font settings . . . . . . . . . . . . . . . . . . . . . . 33
1.6.4 TS Types graphical representation . . . . . . . . . . . . . . . . . 34
1.7 Graphical Settings Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.8 Font Settings Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.9 File Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.10 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
1.10.1 Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
1.10.2 Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
1.10.3 Select Sub-Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
1.10.4 Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
1.10.5 Edit Custom Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6 MIKE Zero
3.1.1 Cross-shore profile . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.1.2 Initial coastline alignment . . . . . . . . . . . . . . . . . . . . . . . 50
3.1.3 Cross-section of Trench . . . . . . . . . . . . . . . . . . . . . . . 51
3.1.4 Pier Resistance Profile . . . . . . . . . . . . . . . . . . . . . . . . 52
3.1.5 ADCP Vector Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.2 Geographical Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
3.3 File Properties Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.3.1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.3.2 Axis Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.3.3 Item Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3.4 Tabular View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
3.5 Graphical View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.5.1 Zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.5.2 Graphical and font settings . . . . . . . . . . . . . . . . . . . . . . 59
3.6 Navigation View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.7 File Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.7.1 DFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.7.2 ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.8 Import from ASCII File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.8.1 File to Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.8.2 Completion and Editing . . . . . . . . . . . . . . . . . . . . . . . . 62
3.9 Export to ASCII File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
4 TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
4.1 Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
4.1.1 Edit Expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
4.1.2 Sub set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.2 Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.3 Edit Custom Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
7
6.1.3 Grid State Format . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
6.2 New Grid Series File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
6.2.1 Step 1: Select the type of grid to be created . . . . . . . . . . . . 77
6.2.2 Step 2: Specify the projection, the geographical position of the origin
of the dataset and the orientation 77
6.2.3 Step 3: Specify the temporal and spatial properties . . . . . . . 79
6.2.4 Step 4: Specify the items to be included . . . . . . . . . . . . . . 79
6.2.5 Step 5: Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
6.3 Import from ASCII File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
6.3.1 File to Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
6.3.2 Completion and Editing . . . . . . . . . . . . . . . . . . . . . . . . 80
6.3.3 Hint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
6.4 Export to ASCII File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
6.5 Import from Dfsu File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
6.5.1 Step 1: Select File to Import . . . . . . . . . . . . . . . . . . . . . 80
6.5.2 Step 2: Specify geographical parameters . . . . . . . . . . . . . 80
6.5.3 Step 3: Specify the spatial properties . . . . . . . . . . . . . . . . 81
6.5.4 Step 4: Specify land value . . . . . . . . . . . . . . . . . . . . . . 81
6.5.5 Step 5: Completion and Editing . . . . . . . . . . . . . . . . . . . 81
7 EDIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.1 Geographical Information . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.2 Time Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.2.1 Modifying Time Steps . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.3 Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
7.3.1 Editing an existing file . . . . . . . . . . . . . . . . . . . . . . . . 87
7.4 Spatial Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.5 Edit Custom Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.5.1 MIKE 21 / MIKE 3 specific . . . . . . . . . . . . . . . . . . . . . . 88
8 VIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
8.1 Tabular View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
8.2 Graphical View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.3 Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.3.1 Palette Wizard, step 1 of 3 . . . . . . . . . . . . . . . . . . . . . . 91
8.3.2 Palette Wizard, step 2 of 3 . . . . . . . . . . . . . . . . . . . . . . 92
8.3.3 Palette Wizard, step 3 of 3 . . . . . . . . . . . . . . . . . . . . . . 93
8.3.4 Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
8.3.5 Save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8.4 Overlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8.5 Grid Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
8.5.1 Contour type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
8 MIKE Zero
8.5.2 Isolines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
8.6 Axis Annotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.7 Mouse Pointer Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.8 Fixed aspect ratio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.9 Export Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.10 Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.10.1 Grid Editor Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
8.10.2 Grid Editor Navigation . . . . . . . . . . . . . . . . . . . . . . . . . 97
8.11 Status Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
9 TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
9.1 Navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
9.2 Go to . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
9.3 Synchronize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
9.4 Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
9.4.1 Select and deselect . . . . . . . . . . . . . . . . . . . . . . . . . 100
9.4.2 Select a Sub-Set of Data . . . . . . . . . . . . . . . . . . . . . . 101
9.5 Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.5.1 Active Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.5.2 Interpolation Settings . . . . . . . . . . . . . . . . . . . . . . . . 102
9.5.3 Search Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.6 Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
9.7 Set Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
9.8 Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
9.8.1 List of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
9.9 Calculate Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
9.10 Copy File into Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.10.1 File to Copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.10.2 Item Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.10.3 2D to 3D Layer Mapping . . . . . . . . . . . . . . . . . . . . . . 109
9.10.4 Sub-area Position . . . . . . . . . . . . . . . . . . . . . . . . . . 109
9.10.5 Time Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
9.10.6 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
9.11 Crop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
10 DATA OVERLAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
10.1 Image Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
10.2 Overlay Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
9
11 GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
11.1 Step 1: Create a new Bathymetry document . . . . . . . . . . . . . . . . 117
11.2 Step 2: Import background data . . . . . . . . . . . . . . . . . . . . . . . . 118
11.3 Step 3: Import digitised survey depth data . . . . . . . . . . . . . . . . . . 118
11.4 Step 4: Define bathymetry data grid . . . . . . . . . . . . . . . . . . . . . 118
11.5 Step 5: Import data from background . . . . . . . . . . . . . . . . . . . . 119
11.6 Step 6: Interpolate xyz data to grid points . . . . . . . . . . . . . . . . . . 120
11.7 Step 7: Save bathymetry file . . . . . . . . . . . . . . . . . . . . . . . . . . 120
12 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
13 DIALOG OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
13.1 File Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
13.1.1 File/New Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
13.1.2 File/Open Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
13.1.3 Geodesy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
13.2 Edit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
13.3 View Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
13.4 Work Area Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
13.4.1 Set Current Contour Level . . . . . . . . . . . . . . . . . . . . . . 127
13.4.2 Bathymetry Management . . . . . . . . . . . . . . . . . . . . . . 127
13.4.3 New Bathymetry . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
13.4.4 Edit Bathymetry . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
13.4.5 Export Bathymetry . . . . . . . . . . . . . . . . . . . . . . . . . . 131
13.4.6 Interpolate Bathymetry . . . . . . . . . . . . . . . . . . . . . . . . 131
13.4.7 Background Management . . . . . . . . . . . . . . . . . . . . . . 133
13.4.8 Export raw data to XYZ format . . . . . . . . . . . . . . . . . . . 135
13.4.9 Resize workspace area . . . . . . . . . . . . . . . . . . . . . . . . 135
13.4.10 Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
13.4.11 Set Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
13.4.12 Show Background Image . . . . . . . . . . . . . . . . . . . . . . 136
13.5 Window Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
13.6 ToolBar Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
14 SCIENTIFIC BACKGROUND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
14.1 General Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
14.2 Interpolation techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
14.3 Land Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14.3.1 Polygon fill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14.3.2 Extensive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14.4 Box Grouping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14.5 Gap Filling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
14.5.1 Bilinear Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . 144
10 MIKE Zero
14.5.2 Triangular Interpolation . . . . . . . . . . . . . . . . . . . . . . . 148
11
17.4.1 Import Boundary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
17.4.2 Export Boundary . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
17.4.3 Clean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
17.4.4 Convert Nodes to Vertices . . . . . . . . . . . . . . . . . . . . . . 181
17.4.5 Convert Vertices to Nodes . . . . . . . . . . . . . . . . . . . . . . 182
17.4.6 Redistribute Vertices . . . . . . . . . . . . . . . . . . . . . . . . . 182
17.4.7 Import Scatter Data . . . . . . . . . . . . . . . . . . . . . . . . . . 183
17.4.8 Reduce Scatter Data Set . . . . . . . . . . . . . . . . . . . . . . . 183
17.5 Mesh Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
17.5.1 Triangulate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
17.5.2 Smooth Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
17.5.3 Interpolate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
17.5.4 Refine Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
17.5.5 Delete Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
17.5.6 Export Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
17.5.7 Draw Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
17.5.8 Shading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
17.6 Options Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
17.6.1 Projection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
17.6.2 Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
17.6.3 Import Graphic Layers . . . . . . . . . . . . . . . . . . . . . . . . 191
17.6.4 Graphics Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
17.6.5 Use Attribute Palette . . . . . . . . . . . . . . . . . . . . . . . . . 191
17.7 Window Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
17.8 Other Dialogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
17.8.1 Workspace projection . . . . . . . . . . . . . . . . . . . . . . . . . 192
17.8.2 Arc Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
17.8.3 Point Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
17.8.4 Polygon Properties . . . . . . . . . . . . . . . . . . . . . . . . . . 195
17.8.5 Export of Boundaries . . . . . . . . . . . . . . . . . . . . . . . . . 196
17.8.6 Convert Scatter Data to Boundaries . . . . . . . . . . . . . . . . 196
18 TOOLBAR FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
18.1 Navigate toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
18.2 Boundary Definition Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . 198
18.3 Info Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
18.4 Scatter data Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
18.4.1 Graphically Adding Scatter Data . . . . . . . . . . . . . . . . . . 200
18.4.2 Graphically Selecting Scatter Data . . . . . . . . . . . . . . . . . 201
18.4.3 Scatter Data Reduction . . . . . . . . . . . . . . . . . . . . . . . . 201
18.4.4 Scatter Data Properties . . . . . . . . . . . . . . . . . . . . . . . . 202
12 MIKE Zero
19 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
20 CONCEPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
21 GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
21.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
21.2 Step 1 - Visualize salt intrusion in the model area . . . . . . . . . . . . 209
21.3 Step 2 - Viewing the flow field . . . . . . . . . . . . . . . . . . . . . . . . 212
21.4 Step 3 - Making a time series plot of the salinity concentration at two points
213
21.5 Step 4 - Creating a Vertical profile of the current . . . . . . . . . . . . . 215
21.6 Step 5 - Inspecting data values . . . . . . . . . . . . . . . . . . . . . . . 216
21.7 Step 6 - Making a video animation of Salt intrusion . . . . . . . . . . . . 219
22 REFERENCE GUIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
22.1 File Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
22.1.1 File/New Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
22.1.2 File/Open Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
22.1.3 File/Save (Save As) . . . . . . . . . . . . . . . . . . . . . . . . . 221
22.2 Edit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
22.3 View Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
22.3.1 Coordinate Overlays . . . . . . . . . . . . . . . . . . . . . . . . 222
22.3.2 Display Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
22.3.3 Vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
22.3.4 Axis Annotation . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
22.3.5 Value at Cursor . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
22.3.6 Zoom in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
22.3.7 Zoom to Coordinates . . . . . . . . . . . . . . . . . . . . . . . . 224
22.3.8 Zoom Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
22.3.9 Fixed Aspect Ratio . . . . . . . . . . . . . . . . . . . . . . . . . 224
22.3.10 Export Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
22.3.11 Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
22.3.12 Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
22.3.13 Statusbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
22.4 Data Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
22.4.1 Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
22.4.2 Vertical Profile by Coordinates . . . . . . . . . . . . . . . . . . . 230
22.4.3 Time series by Coordinates . . . . . . . . . . . . . . . . . . . . 231
22.4.4 Selected Points . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
22.4.5 Add and remove layers . . . . . . . . . . . . . . . . . . . . . . . 235
22.5 Video Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
22.5.1 Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
22.6 Colors Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
22.6.1 Auto Scale Type . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
13
22.6.2 New Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
22.6.3 Save Current Palette . . . . . . . . . . . . . . . . . . . . . . . . . 236
22.6.4 Edit Current Palette . . . . . . . . . . . . . . . . . . . . . . . . . . 236
22.6.5 Open Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
22.7 Time series context menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
22.7.1 Select Item for Export . . . . . . . . . . . . . . . . . . . . . . . . . 237
23 TOOLBAR FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
23.1 Zoom Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
23.2 Data Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
23.3 Navigation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
14 MIKE Zero
26 UNIT BASE GROUP EDITING UTILITY . . . . . . . . . . . . . . . . . . . . . . 267
26.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
26.2 Dialog Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
26.3 Changing from SI to Imperial (American) data units. . . . . . . . . . . . 269
26.4 Restoring the default units . . . . . . . . . . . . . . . . . . . . . . . . . . 270
26.5 Verification of Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . 270
26.6 Changing the EUM data type of a Parameter . . . . . . . . . . . . . . . 271
26.6.1 Changing the EUM Type of a .dfs0 Parameter . . . . . . . . . 271
26.6.2 Changing the EUM Type of a .dfs2 Parameter . . . . . . . . . 273
15
29.2.2 Lambert Conic Projection with 1 standard parallel . . . . . . . . 299
29.2.3 Lambert Conic Projection with 2 standard parallels . . . . . . . 299
29.3 Edit Map Projection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
30 DATUM CONVERSION UTILITY . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
30.1 Datum Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
30.2 Spatial Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
30.3 Coordinate System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
30.3.1 Map projection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
30.3.2 Type of coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . 303
30.3.3 Datum shift . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
30.4 Datum Transformation Process . . . . . . . . . . . . . . . . . . . . . . . . 304
30.5 Session History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
30.6 Conversion Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
16 MIKE Zero
TIME SERIES EDITOR
17
18 MIKE Zero
Introduction
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 immedi-
ately 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 Properties 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 or select
from a number of pre-defined templates containing different sets of prop-
erties.
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 From ASCII File, the Import from ASCII File dialog is dis-
played where you can set the properties to import from ascii.
If you choose one of the template files, the File Properties Dialog is dis-
played with a set of properties specific to this template. It may not be pos-
sible to edit all of the properties. The following templates are available:
To import time series data, go to ' File', ' New' and select ' Time Series'
under the MIKE Zero heading. This will open the ' New Time Series' dia-
log. Choose 'From Ascii File', and press 'OK'.
20 MIKE Zero
New File Dialog
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.
Delimiter
Choose the Delimiter that separates the data in the ASCII File. When you
use Timeseries Editor to export to ASCII, the TAB is used as delimiter.
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 Cal-
endar Axis, Equidistant Relative Axis, Non-Equidistant Calendar Axis,
Non-Equidistant Relative Axis and Relative Item Axis. Please refer to
Axis Information
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 tab-
ular view is empty and there is no point in the graphical view.
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.
22 MIKE Zero
New File Dialog
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.
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.
24 MIKE Zero
New File Dialog
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.
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.
26 MIKE Zero
Export to ASCII File
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.
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.
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.
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:
28 MIKE Zero
File Properties Dialog
Start Time :
The start time of the data. This is only relevant for calendar axis data. The
format used is the standard windows format. To change this edit the
regional settings in the windows control panel.
Time Step :
The timestep 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 timestep of one hour would
thus be given as “01:00:00” in the [hour:min:sec] input box.
No. of Timesteps :
Number of time steps. If this number is changed, time steps are added or
removed as appropriate at the end of the time series. When adding
timesteps, the new timesteps added will be filled with an empty value,
meaning that no value has been inserted.
Axis units :
Spatial axis is not used in dfs0 files.
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.
TS Type :
The Item type of data. It’s used to specify the meaning of the data values.
You can select between the following types:
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.
30 MIKE Zero
Tabular View
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 compu-
ter. 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 previous 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.
You can know the precise point where the mouse pointer is positioned
looking at the Status Bar at the bottom of the screen.
1.6.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
accessible 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.
z 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
32 MIKE Zero
Graphical View
z 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)
z Insert points : allows you to insert new points in the data set just by
positioning 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 Equi-
distant Axis type.
z 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.
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 color to use in the legends.
Examples
Examples of each time series type is given in the following.
34 MIKE Zero
Graphical View
36 MIKE Zero
Graphical Settings Dialog
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 color, 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 color, 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 color, the text
background 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,
underline and color and the script (language resource) to use for special
characters.
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 vary-
ing 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 timeseries file format.
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
38 MIKE Zero
Tools
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, usually as a result of a previous export.
Each of the following lines contain data for one time step. Each line con-
sists 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.10 Tools
This is a set of tools available to work with the timeseries data.
1.10.1 Calculator
Calculator tool is used to set item’s data based on calculations.
You can access Calculator tool from Calculator in the Tools menu or by
clicking the Calculator icon in the Tools Toolbar (the second icon in the
Tools Toolbar).
Here you can specify the calculation to make and which Item to set the
calculated data in.
Target Item specified which item will have the data set based on the calcu-
lation specified. Item is specified by ‘i’ followed by the number of the
item sequence in the timeseries.
You can insert a Operand, which basically, is an item. the value of the
Operand item is then used to make the calculations of each of the
timesteps (all timesteps in the item or all the timesteps in the current Sub-
Set that you can specify).
You can also insert an Operand which basically is + for addition, - for sub-
traction, * for multiplication and / for division as well as a mathematical
function from the functions list.
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.
40 MIKE Zero
Tools
1.10.2 Interpolation
Interpolation tool is used to interpolate missing values (delete values).
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
interpolation 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, Accu-
mulated, Step Accumulated and Mean Step Accumulated TS Types are
supported.
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 timestep(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 timestep where the Sub-Set
begins and the timestep 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.10.4 Statistics
Statistics tool is used to view statistical information for all the items in the
timeseries 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).
42 MIKE Zero
Tools
.
On the Statistics dialog, you can see the all item Names, all item Mini-
mum values, all item Maximum values, all item Mean values, all item
Standard Deviation values and the number of missing values (delete val-
ues) 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.
44 MIKE Zero
PROFILE SERIES EDITOR
45
46 MIKE Zero
Create a New Dataset
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.
If you are opening an existing profile series data file, the data are immedi-
ately 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 Properties 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.
Tabular View (p. 58)- about the tabular view of the data
Graphical View (p. 59)- about the graphical view of the data
Import from ASCII File (p. 62) - about importing data from ASCII
Export to ASCII File (p. 62)- about importing data from ASCII
Tools
Calculator (p. 65)- transform the data using expressions that involve the
data itself, the time step etc.
48 MIKE Zero
New Profile Series Dialog
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 prop-
erties.
If you choose “From ASCII File”, the import from ascii Dialog is dis-
played where you can set the properties to import from ascii.
The Title is CRSHORE and 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.
50 MIKE Zero
New Profile Series Dialog
The Title is COASTLINE and the Start time is the time of creating the file.
Internally the DATA TYPE Parameter is set to 105.
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.
The Title is CRSECTION and the Start time is the time of creating the file.
Internally the DATA TYPE Parameter is set to 106.
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.
The Pier Resistance template creates a profile series with the following
pre-defined properties:
52 MIKE Zero
New Profile Series Dialog
The Start time is the time of creating the file. Internally the DATA TYPE
Parameter is set to 800.
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.
Pls. see the HD Reference Manual in the Coastal Hydraulics and Ocea-
nography User Guide for further description of the pier data.
The ADCP Vector Plot template creates a profile series with the following
pre-defined properties:
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.
There are three options for specifying the geographical position of the ori-
gin of the profile line:
z specify in latitude and longitude and input in degrees, minutes and sec-
onds
z specify in latitude and longitude and input in decimal degrees
z specify in Universal Transverse Mercator (UTM) coordinates by giv-
ing the UTM system and the Easting and Northing of the origin in
meters. When you select a general UTM zone, the zone number is
required. When using local zones as for example Hong Kong Grid
(HKG), then the zone number is not required.
The origin of the profile line is the geographical position of the first grid
point.
54 MIKE Zero
File Properties Dialog
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
format used is the standard windows format. To change this edit the
regional settings in the windows control panel.
Time Step :
The timestep 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 timestep of one hour would
thus be given as “01:00:00” in the [hour:min:sec] input box.
56 MIKE Zero
File Properties Dialog
No. of Timesteps :
Number of time steps. If this number is changed, time steps are added or
removed as appropriate at the end of the time series. When adding
timesteps, the new timesteps added will be filled with an empty value,
meaning that no value has been inserted.
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.
The time column is greyed out, as editing the time has no meaning in an
equidistant time axis.
The time is shown in the default windows format selected on your compu-
ter. 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 previous values and the item values are empty.
The currently selected cell can also be seen in the Graphical View (p. 59)
as a square around the value that corresponds to it.
The tabular view per default shows all time steps for one item. In the Nav-
igation View dialog under ‘Options’ you can select to show all items for
one time step.
58 MIKE Zero
Graphical View
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.
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 color 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
This format is developed by DHI for storage of hydrodynamic time vary-
ing 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 timeseries file format.
3.7.2 ASCII
This is a general format which can be generated by most spread sheets or
text editors. The first part of an ASCII File must contains the Header
Information. An example of a Header Information is given below:
60 MIKE Zero
File Formats
Spacing 20
NoDynamicItems 4
Item Hm0 [m] Wave height meter
Item Tm [s] Wave period second
Item MWD [deg] Wave direction degree
Item DSD [deg] Standard deviation, DSD degree
Delete -1E-030
<Empty line>
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 Infor-
mation is a string, i.e. 'Title', 'Time’, 'Spacing' etc. The Header Information
ends with an empty line.
Title
Time Information: A Time Axis Descripter, Start Date yyyy-mm-dd,
Start Time, number of Time Steps and Time Interval in seconds
Number of Gridpoints
Grid Spacing
Number of Dynamic Items.
Item: Name, Type, Unit (these can be left unspecified)
Delete value: The Delete value should be a number not typical of the
data
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>
Files saved in this format can have any extension although dfs1, dfs and
.dt1 should be avoided.
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'.
62 MIKE Zero
Export to ASCII 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.
64 MIKE Zero
Calculator
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.
If the expression should work on multiple time steps, the target and oper-
and 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
expression 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.
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
interpolating 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 interpola-
tion 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:
z Spatial dimension
66 MIKE Zero
Edit Custom Blocks
z 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.
68 MIKE Zero
GRID SERIES EDITOR
69
70 MIKE Zero
Create a New Dataset
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.
If you are opening an existing grid series data file, the data are immedi-
ately 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. 77).
By selecting From ASCII File you must follow the instructions given in
section Import from ASCII File (p. 79).
By selecting From Dfsu File you must follow the instructions described in
the section Import from Dfsu File (p. 80).
z Graphical View (p. 90) - about the graphical view of the data
z Tabular View (p. 89) - about the tabular view of the data
z New Grid Series File (p. 77) dialog - to create a new dataset
Tools
z Navigation (p. 99) - to navigate in the dataset in time and how to select
an item
z Set Value (p. 103) - to assign a value to a selection of grid cells
z Filter (p. 103) - to filter a selection of data (e.g. smooth the data)
z Crop (p. 109) - to discard some of the data and keep the rest
72 MIKE Zero
Further help
z Calculator (p. 104) - transform the data using expressions that involve
the data itself, the time step etc.
z Interpolation (p. 102) - fill blank values
z Copy File into Data (p. 108) - import data from another dataset
z Toolbars (p. 96) - the Windows toolbars associated with the Grid Edi-
tor
74 MIKE Zero
File Formats
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 Infor-
mation 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.
Geographic Information: UTM-zone, origin longitude, origin latitude
and orientation.
Time Information: A Time Axis Description, Start Date yyyy-mm-dd,
Start Time, number of Time Steps and Time Interval in seconds.
Grid Information: Number of Grid points in first, second and third
dimension.
Number of Static Items (a Static Item is data related to time series data,
but not a part if it. For example, the bathymetry in a file from a HD-run
with H, P Q as Dynamic Items).
Static Items: Name, Type, Unit (these can be left unspecified).
Number of Dynamic Items.
Dynamic Item: Name, Type, Unit (these can be left unspecified)
Delete value: The Delete value should be a number not typical of the
data
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.
76 MIKE Zero
New Grid Series File
Figure 6.1 Example of saved grid file in gsf-format as interpreted by the grid
editor.
6.2.2 Step 2: Specify the projection, the geographical position of the origin of
the dataset and the orientation
Choose the projection system you will use for the grid. If UTM is selected,
choose the zone number. The UTM zone number is defined by:
180 + λ
UTM Zone = integer part of ------------------ + 1
6
where λ is the longitude.
There are three options for specifying the geographical position of the ori-
gin of the new grid:
z specify in latitude and longitude and input in degrees, minutes and sec-
onds
z specify in latitude and longitude and input in decimal degrees
The geographical position of the origin of the grid is defined as the centre
point in the first grid cell (j,k) = (0,0).
78 MIKE Zero
Import from ASCII File
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'.
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.
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.
80 MIKE Zero
Import from Dfsu File
82 MIKE Zero
Geographical Information
7 EDIT
There are three options for specifying the geographical position of the ori-
gin of the grid:
z specify in latitude and longitude and input in degrees, minutes and sec-
onds
z specify in latitude and longitude and input in decimal degrees
84 MIKE Zero
Time Steps
The Time Steps dialog is used to manage the time axis of the file.
It is possible to specify the start date and time for the file as well as the
time step interval between the time steps.
4 Specify whether the new items should be filled with blanks (delete val-
ues) or a copy of the values from the selected items they are placed
before/after
5 Press the "Insert" button.
7.3 Items
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.
86 MIKE Zero
Spatial Axis
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.
88 MIKE Zero
Tabular View
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.
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 Win-
dows 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 color 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.
90 MIKE Zero
Palette
If you want to save the palette together with the specific grid file, you can
use the Grid State Format (p. 76).
Palette title
Give the palette a title.
Palette type
Choose the type of palette among two general type palettes:
z Linear auto scaled - a linear scale between the minimum and the maxi-
mum value in the view, automatically scaled
z Fixed - a scale where you can choose the intervals freely and where the
scale does not change according to the data shown in the view
and two palettes which are suitable for plotting bathymetries:
z Land/water auto scaled - as the linear auto scaled with the extension
that a special colour is specified for land areas
z Land/water fixed - as the fixed type with the extension that a special
colour is specified for land areas
Colour model
A number of different colour models are provided for convenience. These
colours may then be modified during the second step. When using the
land/water palette types, the colour model is fixed and cannot be changed.
Number of colours
Choose the number of colours, i.e. the number of intervals in the palette.
Palette Table
In the example above we have chosen 16 colours and used Rainbow as the
colour model in step 1. We can now select any number of these levels and
modify the colour and enter the value we want for this level. Note that the
value defines the upper boundary of the interval. The colour can be speci-
92 MIKE Zero
Palette
Land Colour
If you are working with a land/water palette, then you may select the col-
our for land.
Land Value
If you are working with a land/water palette, choose the value such that
cells with a value larger or equal to this value will be shown as land.
In the third step you can verify that the palette that you have chosen corre-
sponds to what you were aiming at, if so then press Finish, otherwise press
<Back>.
8.3.4 Open
A palette that has been saved on the disk can be loaded and will immedi-
ately take effect. The palette files have the extension *.pal.
8.3.5 Save
Save the present palette to disk for later re-use. The palette file should
have the extension *.pal.
8.4 Overlay
A number of items can be laid over the graphical view for various pur-
poses. Many of these options are switched on and off.
94 MIKE Zero
Grid Settings
Box Contour
Can either be specified with or without isolines. Each grid cell is given a
colour according to the value in the cell.
Shaded Contours
The grid is covered with colours indicating the values in the cells, a
smooth surface is used. This will change all land to green.
No Contour
Used in connection with background overlays. The bathymetry will not be
shown.
8.5.2 Isolines
Here you can define the way isolines are displayed in the Graphical View.
Draw Isolines
This option can be switched on and off. A system of isolines will be
placed on the grid.
Draw labels
Apply labels to the isolines either as transparent, opaque or framed
opaque.
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-
coordinates (the UTM-zone is defined by the information in the dfs2 file).
8.10 Toolbars
Two toolbars are particular to the Grid Editor:
96 MIKE Zero
Toolbars
Pointer
Select item
When the pointer is in the graphical view, the status bar shows you the
coordinates of the point and the value at the point that you are pointing at.
98 MIKE Zero
Navigation
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 maxi-
mum 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
9.4.1 Select and deselect
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 com-
bined 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 near-
est this line will be selected. The line needs not be straight, but it can con-
sist 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
finish 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
z 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
z Items: Choose one or more of the items
z Time steps: choose a range of one or more time steps
z Layers: Choose a range of one or more layers
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
values.
Land points can be ignored. This is very important when using artificial
values to indicate land, because if such values are included in the interpo-
lation this may lead to falsified results.
Linear search
Depending on the type of data which are interpolated there may be an
interest to restrict the search for values to base the interpolation on to
either vertical 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 calcu-
lating 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 dis-
tance weighted interpolation raised to the specified power chosen in inter-
polation 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
z Set value: set all the active data to the specified value
z Add value: add the specified value to all the active data
z 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-direc-
tions, respectively, and s is the cell value itself
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.
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.
9.10.6 Operation
When the data is copied to the dataset, this may be done in a number of
ways:
z Copy (all values are copied such that they replace the existing data in
the dataset)
z Copy if target differs from delete value
z Copy if source differs from delete value
z Copy if source AND target differs from delete value
z +: the values are added to the existing data in the dataset
z -: the values are subtracted from the existing data in the dataset
z *: the existing values are multiplied by the values in the file
z /: 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
rectangular area either as the current view or as the area described by the
coordinates given by you. The data outside the selected area will be dis-
carded.
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
chosen interval will be discarded. The time interval can be selected in
terms of the time or the time step number.
10 DATA OVERLAY
In the Image Manager you specify the overlay file name and type.
If you want to save the overlay image together with the specific grid file,
you can use the Grid State Format (p. 76)
Image Types
Select between:
Specify which layer to display and the display order. Remember to adjust
the transparency level in Grid Settings (p. 95).
115
116 MIKE Zero
Step 1: Create a new Bathymetry document
11 GETTING STARTED
The following example provides you with an introduction to the Bathyme-
try Editor.
The Define Working Area dialog will appear, see Figure 13.1. Define you
Work Area sufficiently large such that it covers a geographical area which
contains all relevant data.
4 The selected points are now changing colour again and are ready to be
included in the generation of the bathymetry.
Hint: Depending on your work area settings, the colour/size/shape of the
imported points/lines might be different from the ones shown as back-
ground object. You may adjust these settings from the dialog on the
"Graphics" tab under "WorkArea -> Settings".
The Bathymetry Editor includes utilities for importing raw data from vari-
ous external sources (i.e. xyz soundings, xyz contours, MIKE 21 format-
ted data), or to manually create data by using the built-in drawing tools. To
aid the process of editing data and to use for presentations, graphical back-
ground 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 geo-
graphical workspace area be defined. If you are opening an existing
bathymetry editor specification file, the working area with all saved set-
tings 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 dis-
play of the working area.
Various interpolation options are available to you to provide the best pos-
sible 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.
13 DIALOG OVERVIEW
The bathymetry editor provides you a work environment for creating, edit-
ing and presenting detailed digital bathymetries.
Map projection
Choose the map projection type you will use for the Workspace. If an
UTM-type map projection is selected, choose the zone number. The UTM
zone number is defined by:
180 + λ
UTM Zone = integer part of ------------------ + 1
6
Position
Choose the origin of your workspace either as a Geographic (Longi-
tude/Latitude) coordinate, UTM type coordinate or state plane coordinate
(Easting/Northing). Note that you can change the origin and dimensions of
the workspace again at a later time if necessary.
Size
Choose initial width and height dimensions of your workspace. If you
have chosen LONG/LAT as the projection system, the dimensions are
defined in degrees, otherwise the dimensions are defined in meters.
Note that you can change the origin and dimensions of the workspace
again at a later time if necessary.
13.1.3 Geodesy
Map projections and the horizontal geodetic datum in the MIKE Zero is
defined in two ASCII files respectively (default installation)
C:\Program Files\DHI\MIKEZero\Manuals\MIKE_ZERO\
MIKE_Zero_Geodesy.pdf
LONG/LAT
The map projection type "LONG/LAT" is mainly relevant for model
application using spherical coordinates, i.e. for modules in the MIKE 21/3
FM series.
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
perform the same function.
New
New Bathymetry is where you can define a grid bathymetry within the
workspace.
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
formats 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.
Position
You must specify the position of the origin for your grid bathymetry in
UTM 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).
Grid Spacing
You must specify the distance between grid points in the x and y direc-
tions, in metres.
Grid Dimensions
You must specify the number of grid points in the x and y directions.
North to Y Orientation
You must specify the orientation angle, defined as the angle from north
measured clockwise to the Y-axis in degrees.
Land Value
You must specify the grid cell value defining land.
Display Border
You can choose to display the boundary of your defined grid in the Work
Area after interpolation.
Position
You must specify the position of the origin for your grid bathymetry in
UTM or LONG/LAT coordinates.
Grid Spacing
You must specify the number of grid points in the x and y directions, in
metres.
Grid Dimensions
You must specify the number of grid points in the x and y directions.
North to Y Orientation
You must specify the orientation angle, defined as the angle from north
measured clockwise to the Y-axis in degrees.
Land Value
You must specify the grid cell value defining land.
Display Border
You can choose to display the boundary of your defined grid in the Work
Area after interpolation.
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. This quad-
rangle is now transformed into a normalized square (rectified), and bilin-
ear interpolation is performed.
2 Triangular Interpolation
Three points from the raw data, in the vicinity of the actual point, are
found in such a way, that they form a triangle that encapsulates the grid
point. Triangular interpolation is now performed.
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 Editor).
When you import MIKE 21 XYZ files you can specify the source coordi-
nate 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. Coordi-
nates can be imported without conversion, as longitude/latitude or as vari-
ous UTM variants.
Map Projection
Choose the map projection type you will use for the Workspace. If an
UTM-type map projection is selected, choose the zone number. The UTM
zone number is defined by:
180 + λ
UTM Zone = integer part of ------------------ + 1
6
Position
Choose the origin of your workspace either as a Geographic (Longi-
tude/Latitude) coordinate or a UTM type coordinate (Easting/Northing).
Note that you can change the origin and dimensions of the workspace
again at a later time if necessary.
Size
Choose initial width and height dimensions of your workspace. Note that
you can change the origin and dimensions of the workspace again at a
later time if necessary.
13.4.10 Settings
The settings panel allows you to control the attributes for the 3 main lay-
ers; Bathymetry Objects, Raw Data Objects, and Background 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 color given to each layer independently.
Bathymetry Objects
Bathymetry Objects are those that have been interpolated into a fixed grid
system. 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,
Contour 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.
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 cur-
rent contour 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.
14 SCIENTIFIC BACKGROUND
The Bathymetry Editor provides you an environment for creating, editing
and presenting detailed digital bathymetries.
The purpose of this document is to provide the user with the scientific
background of the MIKE Zero Bathymetry Editor.
The program provides you the utilities for importing raw data from vari-
ous external source (i.e. xyz soundings, xyz contours, MIKE 21 / MIKE 3
formatted data), or to manually create data by using the built-in drawing
tools. To aid the process of manually drawing data and for presentation,
graphical background images such as maps can be imported and overlaid
with the bathymetry data.
Figure 14.1 Example of import of raw data into a Bathymetry Editor workspace.
Various interpolation options are available to you to provide the best pos-
sible method for your type of data. When the bathymetry has been pre-
pared, you can use the export utilities to output bathmetry data in various
formats.
z Finding the grid cells that have a centre inside the land polygons iden-
tifies all the land points. This is known as Land Generation.
z The grid cells that aren’t land points needs to be assigned a depth. The
grid is used for sorting the data (loose points, contour points and poly-
gon vertices). All points used for the interpolation are distributed into
optional lookup-tables for each grid cell. This enables a much more
efficient search instead of something which is proportional to number
of horizontal grid cells times number of vertical grid cells times
number of raw data points.
z Only grid cells defining land have been assigned an elevation (z-
value). Each of the remaining points need to be assigned. The raw data
points are used for this interpolation. This is the Gap Filling process.
14.3.2 Extensive
The extensive method for computing land points loops over the total
number of grid points in a bathymetry and check versus inside/outside
boundaries of the polygon. This is significantly more time consuming than
the "Polygon fill"-algorithm.
Note that the grid cells with a crosshatch pattern contain raw data points.
When the closest raw data point in each quadrant is found, we have four
points that form a quadrangle. This quadrangle contains the centre point,
where we want to calculate the z-value. This is illustrated on Figure 14.6.
Figure 14.6 Illustration of the closest raw data points in each quadrant.
Note that each grid cell might contain more raw data points. If this is the
case, the closest of these is chosen. We now have an irregular quadrangle,
where the elevation is defined in each vertex. We need to compute the ele-
vation in (xc, yc). If we transform our quadrangle into a square, we can
perform bilinear interpolation. This is illustrated on Figure 14.7.
A1 = x0
A2 = y0
B1 = x1 – x0
B2 = y1 – y0
(14.1)
C1 = x3 – x0
C2 = y3 – y0
D1 = x2 – x1 + x0 – x3
D2 = y2 – y1 + y0 – y3
Mapping the coordinates (xc, yc) to the normalized square (dx, dy) is done
by solving equation (14.2).
2
ax + bx + c = 0 (14.2)
a = D1 B2 – D2 B1
b = D2 xc – D1 yc – D2 A1 + D1 A2 + C1 B2 – C2 B1 (14.3)
b = C2 xc – C1 yc + C1 A2 – C2 A1
2
– b ± b – 4ac
dx = ----------------------------------- (14.4)
2a
x c – A 1 – B 1 dx
dy = ----------------------------------- (14.5)
C 1 – D 1 dx
or
x c – A 2 – B 2 dx
dy = ----------------------------------- (14.6)
C 2 – D 2 dx
Choosing between (14.5) and (14.6) is done in such a way, that division by
zero is avoided. (xc, yc) has been mapped to (dx, dy). The task was to com-
pute the elevation in the point (xc, yc) and this is done in the following way
using regular bilinear interpolation:
If less than four points are found (if one or more quadrants are empty), the
double linear interpolation is replaced with reverse distance interpolation
(RDI). This is done according to the following scheme:
1
w i = ------------------------------------------------------- (14.8)
( xi – xc ) 2 + ( yi – yc ) 2
N
ws = ∑ wi (14.9)
i=1
N
1
z c = ----- ∑ w i z i (14.10)
ws
i=1
The method works fairly efficiently, but it has one drawback. The quad-
rant search is heavily dependent on the orientation of the bathymetry. If
the bathymetry is rotated 45 degrees 4 completely different points might
be used for the interpolation. For this reason there is also a Triangular
interpolation method, which can be used, and this method should be direc-
tion independent.
In this example the point (x0, y0, z0) is the closest point. When this point is
identified, two quadrants are identified – indicated by the light grey and
the dark grey areas. The closest point in these two quadrants are then
found. They can be seen on the figure as (x1, y1, z1) and (x2, y2, z2). The
interpolation is then done in two steps. First the coefficients describing the
plane defined by the 3 found points are computed:
–( y1 – y0 ) ( z2 – z0 ) + ( y2 – y0 ) ( z1 – z0 )
A = ---------------------------------------------------------------------------------------------
( x1 – x0 ) ( y2 – y0 ) – ( x2 – x0 ) ( y1 – y0 )
( x1 – x0 ) ( z2 – z0 ) + ( x2 – x0 ) ( z1 – z0 ) (14.11)
B = -------------------------------------------------------------------------------------------
( x1 – x0 ) ( y2 – y0 ) – ( x2 – x0 ) ( y1 – y0 )
C = z 0 – Ax 0 – By 0
z c = Ax c + By c + C (14.12)
151
152 MIKE Zero
15 INTRODUCTION
The Mesh Generator provides a work environment for creating detailed
digital mesh for use in the MIKE Zero flexible mesh (FM) models.
Figure 15.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
geographical position and water depth at each node point in the mesh. The
file also includes information about the node connectivity of the triangular
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.
15.1 Concepts
Your work with the Mesh Generator revolves around inserting and defin-
ing nodes, vertices, arcs and polygons. It is therefore important that you
understand the meaning of these concepts.
z 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.
z A vertex is an internal point along an arc.
z An arc is a number of line segments composed of zero or more vertices
and one or two nodes.
z 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 auto-
matically generated when closing an arc or a set of arcs. A polygon can
(but not necessarily) be assigned to be a 'zone', which can be given a
name. By defining a zone, the polygon can be included or excluded
(e.g. representing an island) from the domain. Basically, your work
with the Mesh Generator should end up with the definition of one large
polygon that defines the domain and a number of smaller polygons
defining land areas within the domain area.
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 not important. The value is used to distinguish between the different
open boundaries 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.
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 then
will be used as attribute for all points (vertices and nodes) along the arc.
16 GETTING STARTED
16.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.
Note: If you want your projection in UTM coordinates, you must also
specify a UTM zone. See the Reference Guide for how to choose a UTM
zone.
The Mesh Generator then creates a workspace and you are ready to initiate
with the mesh creation process.
z The boundary(ies) between land and water, the Mesh Generator – and
the simulation models using the mesh generated by the Mesh Genera-
tor. These boundaries are named land boundaries.
z The boundary(ies) where you expose boundary conditions (water level,
flux variations or wave spectra) when preparing a model simulation.
These boundaries are named open boundaries.
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 Gen-
erator.
With the sample, two data files have been exported from MIKE C-MAP:
The area from where data has been extracted is shown in Figure 16.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 16.3.
In this menu you shall specify the layout of the land.xyz file, the projec-
tion of the data and how to interpret the data. The Reference Guide pro-
vides details on import formats.
The Mesh Generator reads the data file and updates the workspace as
shown in Figure 16.4.
It is only the area in fjord itself that shall be modelled, i.e. the Mesh Gen-
erator shall only generate a mesh within the fjord. From Figure 16.4 it can
be seen that the area to be modelled consists of:
z One open model boundary at the north-east corner of the model area
z 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 arcs from the left part of the work-
space. You select the Delete 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 16.5.
You should end up with a land boundary as shown in Figure 16.7. Please
note the following in the figure:
z The land boundary as shown in Figure 16.6 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
workspace you might have to close holes.
z A new arc closing the fjord has been 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. This open boundary arc is
necessary in order to:
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. This is an indication to the model sim-
ulation program that this is an open boundary.
Note: Arcs - and node attributes - are per default 0. 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 con-
ditions.
From the Mesh menu please select the Triangulate… menu item. The Tri-
angulation dialog appears. From this dialog select Options and you will be
presented with a dialog box from where you can specify a number of
parameters governing the mesh generation process. Please specify the val-
ues as shown below in Figure 16.8.
Click Triangulate and then Generate. The Mesh Generator now calculates
and draws a mesh as shown in Figure 16.9.
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 dia-
log box as shown in Figure 16.10.
Please specify the values as shown in Figure 16.10 and press OK.
Note: You should always try with a preview before accepting the redistri-
bution. With very complex geometries, the redistribution can fail with an
unusable land boundary as result.
The new land boundary should be as shown in Figure 16.11. 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 16.9.
right click and select Properties. Use the tick box to ensure that the
zone is included in the Triangulation
3 Generate a mesh - in the Mesh menu select the Triangulate… menu
item
Before you can interpolate the Z-values at the mesh nodes, you must
import scatter data to interpolate from. You import scatter data from the
Import Scatter Data… menu item in the Data menu.
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 16.14 for the result.
You can now refine the mesh in order to take the water depth into consid-
eration. In the Mesh menu select the Refine mesh… menu item, accept the
default values and click the Refine button. A subset of the refined mesh is
shown in Figure 16.15.
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.
Please select the Smooth mesh… menu item in the Mesh menu and spec-
ify 10 as the number of iterations.
In Figure 16.16 you can see the effect of smoothing the mesh.
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 Vertices 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 16.17.
Note: In Figure 16.17 a number of vertices have been placed between the
two nodes. The mesh generation algorithm will use these vertices when
generating 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 Poly-
gon button in the toolbar and then click first in the outer and then in the
inner zone. This is shown below in Figure 16.18.
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 pol-
ygon marker and right-click and select properties. You will be presented
with a dialog box as shown in Figure 16.19.
Make sure that the Exclude from Triangulation check-box is cleared 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 15000 as
local maximum element size.
You are now ready to make the triangulation. In the Mesh menu, select the
Triangulate… menu item. The result is shown in Figure 16.20.
Figure 16.20 Triangulation using two zones with different maximum element
areas
From Figure 16.20 it is clearly seen that the mesh elements now are
smaller in the inner part of the fjord than in the outer part.
17 REFERENCE GUIDE
The following describes the main functions that are available to you from
the menubar.
17.2.1 Edit/Undo
You use the Undo menu item to undo the last change made to the mesh
document. 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 in the Edit menu.
You can use the keyboard shortcut Ctrl-Z to activate the undo function.
17.2.2 Redo/Undo
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
function.
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.
17.2.3 Delete
You use the Delete menu item to delete all selected features, e.g. nodes or
arcs.
You can use the keyboard shortcut Delete to activate the delete function
17.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.
You can:
Undo Level
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.
Colour Ramp
The colour ramp specifies how to colour scatter data and bathymetry con-
tours. You can also define the size of the points representing the scatter
data.
Zoom In
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.
Zoom Out
The Zoom out menu item resets the zoom level to the full workspace area.
Go To
This menu item shows a dialog you can use to navigate in the workspace.
z A specific coordinate
z A specific node in a generated mesh
z A specific element in a generated mesh
z The largest or smallest element in a generated mesh
z The deepest or 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.
Note: The menu item is only active if scatter data has been imported.
Note: The menu item is only accessible when either scatter data has been
imported or a bathymetry has been interpolated to the mesh.
Note: The menu item is only accessible after a mesh has been generated.
Note: The menu item is only accessible after a mesh has been generated.
17.3.10 Toolbar
The Toolbar menu item gives access to a toolbar selection dialog.
You can choose to connect all points to one arc, i.e. omitting the con-
nectivity column in the data, or to use the connectivity information and
draw multiple arcs. Finally, you can specify a minimum length of arcs
(measured in number of points). The latter can for example be used to
exclude small islands from the mesh.
By selecting the Data Info button you can view the statistics of the XYZ
file and the minimum and maximum values of the columns.
Note: When importing boundary data, the Mesh Generator assumes that
all closed arcs with a horizontal and vertical extent less than 20 per cent of
the full data range represents islands. Such islands will not be included in
the triangulation. You can - if needed - later change the status of such
automatically detected islands.
17.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 problem. Zoom to the point and move or remove points in order to
solve the problem. The triangulation algorithm will - in case of double
points - abort the triangulation calculation and report the location of the
double points.
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.
Note: Changing a vertex to a node results in splitting a single arc into two
smaller arcs.
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 spec-
ify 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.
You can also from the dialog convert imported scatter data to nodes and
arcs.
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
scatter data.
The Mesh Generator offers three different algorithms for reducing the
amount of scatter data:
2 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.
3 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
scatter data set to a new file. The new file will be written as an XYZ file.
Hint: You can also reduce the number of scatter data points by using
Select Scatter point toolbar function. In this way you can vary the reduc-
tion factor over the mesh area.
17.5.1 Triangulate
You use the Triangulate menu item to generate a triangular mesh of the
area. There are a certain number of rules to follow in order to secure a suc-
cessful mesh generation:
The Triangulate menu leads to a Triangulation dialog box from where you
can initiate the mesh generation or specify a number options controlling
the mesh generation.
After the mesh has been calculated the Triangulation dialog will report the
number of elements and nodes that have been generated.
17.5.3 Interpolate
The Interpolate menu item is used for interpolation of a scatter data field
to the mesh nodes. Typically, the scatter field represents the bathymetry in
the area; but could also be other types of spatial data.
You can select between two different algorithms for performing the inter-
polation:
With the Natural Neighbour method four additional points can option-
ally be used in the interpolation. The position of the four points can be
controlled 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
distance 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.
z 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.
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.
If you have a very dense set of scatter data points, you can dramatically
decrease the interpolation time by simply assigning the node value from
the closest located scatter point. You do this by clicking the Set value from
scatter data check box – you should at the same time set a reasonably max-
imum search distance. Points assigned a value in this way will not be
included in the proper interpolation.
z That the workspace area has been interpolated with respect to water
depth
z 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 triangula-
tion or not. You can give the zone a name for easier identification
The refinement option dialog lets you specify the correlation between ele-
ment area and water depth. You can specify both linear and non-linear by
choosing the curve (double-click on the curve and drag the generated
knot) dependency.
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.
Typically, you will export the mesh as a .mesh file - an ASCII-file defin-
ing the node positions, the element topology and the depth at the nodes.
This information 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.
To make a .dfsu file including e.g. a bottom friction map instead of water
depth at the nodes, you do the following:
17.5.8 Shading
With this menu you can toggle between showing the interpolated water
depth as a contour map or as a shaded contour map. A 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.
Note: You can specify the colour ramp used in the contouring from the
Options menu item in the Edit menu.
17.6.1 Projection
This menu item gives you the possibility of changing the projection of the
workspace area. If data points have been inserted in the area, they will also
be converted to the new projection.
17.6.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.
Note: You specify the image origin and extent by clicking the Edit button
in the Import Layers dialog.
From this dialog you select the map projection you will use for the work-
space.
1 Land boundary, i.e. a boundary line that separates land from water.
When you use the mesh in a simulation, the computational engine
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. I.e. as shown below.
The first and last node of an arc is defined as the positive direction of rota-
tion around the model area, i.e. counter clockwise
A node – which by definition is the start and end point of the arc – typi-
cally belongs to two arcs. This implies that you have to pay special atten-
tion 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 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.
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 differ-
ent 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 can specify whether the polygon shall be included in the triangulation
or not. Islands located in the inner part or the model domain shall be
defined as polygons and be excluded from triangulation.
You can also give the polygon a name for easy identification and you can
set an upper limit for the mesh elements within the polygon.
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.
18 TOOLBAR FUNCTIONS
The following describes the main editing functions that are available to
you from the toolbar.
You use the Navigate toolbar to zoom and pan in the workspace area.
These functions are also available from the workspace context menu, i.e.
by right-clicking in the workspace area.
You use the info toolbar to navigate in the workspace and to measure dis-
tances..
You use the scatter data toolbar to add and delete scatter data..
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 point to an existing XYZ-file by specifying
the existing file in the File selection field.
Note: You can dynamically change the Z-value in the dialog box. This
only affects the points added after the value has been changed.
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
following possibilities:
You define reduction level, which is the number of scatter points you want
to remove from the region. The number is specified as a percentage of the
total number of scatter points within the region. Based on the reduction
level that you specify, the scatter data reduction algorithm calculates the
number of points to remove and selects the individual points in a random
manner.
Before you reduce the number of scatter data points, you must have speci-
fied a file for holding the reduced scatter data set.
Note: If you have scatter data points from many different input files, they
will all be combined into one scatter data file (an XYZ file).
203
204 MIKE Zero
19 INTRODUCTION
The Data Viewer provides you an environment for inspecting and analyz-
ing simulation results obtained from one of the MIKE Zero flexible mesh
models. Today MIKE Zero offers the MIKE 21 Flow Model FM, MIKE 3
Flow Model FM and MIKE 21 Spectral Wave Model FM that calculates
based on a flexible mesh.
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 functions for navigating and visualizing the data - e.g. zooming
in the horizontal plane, forward and backward spooling in the time dimen-
sion 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 mod-
els, it provides also some functionality for inspecting and analyzing results
obtained with the classic MIKE Zero structured mesh models, e.g. MIKE
21 HD. If you use the Data Viewer for analyzing model results obtained
with one of these models, you have to know, that the Data Viewer interpo-
late the point values in order to specify the shade color of the element.
Typically you use the Data Viewer for one of the following two reasons:
After having selected the file you want to analyze your work with the Data
Viewer revolves around the use of:
z The menu system for defining how and what you want to see from the
result file.
z The toolbars for accessing often used functionality.
z The workspace area context menu - right clicking in the main window -
provides you a shortcut for the most used functionality.
z 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:
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 intru-
sion.
21 GETTING STARTED
21.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 analyzing 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 tem-
perature in Øresund - the sound between Denmark and Sweden. The simu-
lation were originally made during a study undertaken by DHI for the
Danish and Swedish authorities in order to assess the environmental
impact of construction 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 with the getting started example is located in
c:\Program Files\DHI\MIKEZero\Examples\MIKE_ZERO\DataViewer
(with a default installation).
Please start MIKE Zero, select File→Open. 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 21.1.
You can see that the first times step in the data file corresponds to the 6.
September, 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-direction.
Please select Salinity as a data item from the item selection dropdown but-
ton in the toolbar or from the Data menu→Options→Contour dialog. Go
to time step 7 (either by using the time step text field in the toolbar or by
using the Data menu→Options→Time dialog). Please from the View
menu switch to Box Contour. Zoom on the narrow strait at the North end
of the area. You should now see something similar to Figure 21.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 down-
wards 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 21.3.
Please select Salinity from the item selection dropdown button in the tool-
bar and then select Vectors at element centers from the Data→Option-
s→Vector 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 Data→Options→Vector options dialog specify User defined
scaling and use 5 as scale factor in both the X- and Y-directions.
Figure 21.4 shows the flow field before and after vector scaling.
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 21.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 21.6.
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 Ver-
tical 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 larg-
est 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 work-
space window as a profile plot. You should end up with visualization sim-
ilar to the one shown in Figure 21.7. Please note that contours in
Figure 21.7 are drawn as shaded contours.
Note: You can with the profile plot view the time evolution of the current
distribution by time navigating forward and backward in time - use the
Navigate toolbar to either single stepping or playing the data file.
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 21.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
position on the top-right corner of Amager and outline an area encompass-
ing 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 dia-
log showing you the index numbers of the elements located within the pol-
ygon, the current speed at the center of the elements and the x- and y-
coordinates at the center point. Depending on your outline the dialog
should appear someway similar to the one presented in Figure 21.9.
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 21.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 21.10.
Figure 21.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 Video→Properties dialog specify the name of the file to
hold the video and specify a frame rate of 10 frames per second, see
Figure 21.11.
Select the OK button and back in the Workspace area make sure that the
current 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 Navi-
gate toolbar to initiate the video generation. The workspace window will
be updated during the video recording.
A message box, see Figure 21.12, will inform you when the video genera-
tion 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 21.13 below shows the above-generated video
loaded in Microsoft Media player.
22 REFERENCE GUIDE
The Data Viewer provides you an environment for inspecting and analyz-
ing simulation results obtained from one of the MIKE Zero flexible mesh
models.
Additionally you can open a .frv file. A .frv which contains settings from a
previous work session with the Data Viewer, e.g. a reference to the results
file and like zoom level, item selection, vector scaling etc.
z A data title giving the name of the currently loaded data file
z Changing the used contouring algorithm
z Zoom level
z Etc
Isolines
This check box toggle between showing or hiding a layer with isoline
information. The isolines represent line with constant data values.
The isolines are created following the same algorithm as is used for true
(i.e. not box) contour plots.
Element mesh
This check box toggle between showing or hiding a layer with the mesh
used in the model simulations.
Border
This check box toggle between showing or hiding the boundary lines in
the model area.
Color legend
This check box toggle between showing or hiding a color legend. The
color legend is drawn to the right of the workspace and shows the correla-
tion between colors and data values.
The scale used by the Data Viewer when generated the color legend can be
taken from the data range in the current zoomed area, the current layer or
from the whole data item. You select between these options from the
Colors→Auto Scale Type menu.
Title
This check box toggle between showing or hiding a title on the plot. The
title is drawn above the workspace and shows the name of the result file.
White background
This check box toggles between showing the background by white or gray
color.
22.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
necessary 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 Vector entry in the Data Viewer dialog, select the Data→Op-
tions menu.
22.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.
Note: It is not possible to enable Fixed Aspect Ratio whenever the ratio
between the two axis is less than 0.02.
22.3.11 Font
This menu lets you select the font to use for drawing text in the workspace
area.
22.3.12 Toolbar
The Toolbar menu gives access to a toolbar selection dialog.
22.3.13 Statusbar
The Statusbar menu toggles between showing or hiding the MIKE Zero
statusbar.
22.4.1 Options
The options menu provides you a number of dialogs from where you can
select and specify different aspects of the data to be visualized.
z The specific time step in the data file that shall be visualized.
z The item in the data file that shall be visualized.
z Enabling or disabling of drawing the mesh and or model area bounda-
ries.
z Enabling or disabling of vector drawing. You can also specify the items
from the data file that constitute the vector field.
z Vector scaling options.
z Different textual annotation of the workspace area.
Time
You use this dialog to specify the discrete time step from the data file that
you want to visualize in the workspace area.
Note: You can also use the Goto Time Step button in the Navigate toolbar
to reach this functionality.
You can also specify a jump value to be used when scrolling forward and
backward in the data file.
Layers
You use the Layers dialog to specify the vertical layer from where the data
for visualization shall be taken. You can either specify a layer based on
sigma coordinates or on an interpolated Z coordinate.
All of the MIKE Zero 3D FM models use Sigma coordinates - i.e. dimen-
sionless transformed coordinates - for the representation of the vertical
axis. In the transformed coordinate system the distance between sigma
layers are constant over the model area - but when converted back to phys-
ical values (e.g. meters) the spacing is not equidistant.
If you select Sigma layer you shall specify the layer number while you
with Interpolated Z-values specifies z-coordinate.
Note: You can also use the Goto Layer button in the Navigate toolbar to
reach this functionality.
Contour
You use this dialog to specify the item from the data file you want to visu-
alize in the workspace area.
The dialog lets you select amongst the items found in the data file for con-
tour visualization. You can also from this menu specify the type of con-
touring and whether you want enable or disable contour drawing.
Note: You can also use the Item selection dropdown box in the Navigate
toolbar and the View Menu to reach this functionality.
Mesh
You use this dialog to enable or disable the drawing of the model mesh
and/or model boundaries.
Note: You can also use the View menu and the workspace context menu
(right clicking in the workspace area) to reach this functionality.
Vector
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 items to be used. In such case you use the Vector dia-
log to select the 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 distrib-
ute the vectors in the workspace area.
Note: You can also use the View menu and the workspace context menu
(right clicking in the workspace area) to reach this functionality.
Vector options
You use the options on this dialog to specify the scaling of the vectors
illustrating the flow field. You can either let the Data Viewer scale the vec-
tors or you can specify your own scaling.
If you want to make your own vector scaling you shall specify the length
of the x- and y-components measured in average node distance corre-
sponding to 1 m/s.
Text annotations
You use this dialog to specify textual annotation of workspace area.
You can e.g. specify a title that will be drawn on top of the workspace
area, coordinate axes text and other informational text.
Note: You can also use the View to reach part of this this functionality.
Note: You can also specify the polyline by using the Position of vertical
profile toolbar button.
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.
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 selec-
tion check box.
Note: You can also specify the points by using the Position of node selec-
tion polygon toobar button.
Calculator
The calculator can be used to assign values to a dataset. It can be done in
terms of a simple value or as an expression. Table 22.1 gives an overview
of the functions. It lists the function names, the number of arguments and
a brief description.
Operator Meaning
= assignement*
+ addition
- subtraction
* multiplication
Operator Meaning
/ division
^ raise x to power of y
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.
22.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.
z Current Zoom - this option generates the color 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).
z Current Layer - this option generates the color 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.
z All Data - this option uses the minimum and maximum values from all
time steps and all layers when generating the color legend.
23 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
Use this function to deselect a previous selected
function.
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 last time
step in the data file.
243
244 MIKE Zero
Operation and navigation
24 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 and .mesh files.
The Data Manager can be accessed by right-clicking the file and choosing
the option ‘Open with’ Data Manager.
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.
Right clicking in the graphical view, you get the context menu. The con-
text menu contains options to zoom, pan, view mesh and other visual
options. Unselecting "Shaded contours" will show box contours instead.
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 button, or you can mark all values by clicking the "Value"
header. These values can be copy-pasted into other applications (text edi-
tors, Excel etc.). Similarly, data can be copy-pasted back into the table
from text editors, Excel or others.
24.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.
Spatial Information
First you define the spatial properties of the file by selecting a file to
import the mesh from.
z Undefined
z Equidistant - no explicit start time
z Non-equidistant - no explicit start time
z Equidistant - explicit start time
z 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 timestep.
For an equidistant time axis, you cannot specify the number of timesteps.
For a Non-equidistant time axis, you cannot specify each timestep time
individually. The difference between an Equidistant and a Non-equidistant
time axis in the DataManager is as follows:
z When timesteps are added to the file (by means of the Calculator) for
an equidistant time axis, the date/time of the added timesteps must
obey the timestep specified, and if not matching the timestep date/time
of the importing file, interpolation will take place.
z When timesteps are added to the file (by means of the Calculator) for a
Non-equidistant time axis, the added timestep date/times will be
exactly those of the importing file.
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.
24.3 Edit
24.3.1 Calculator
You access the Calculator from Edit on the main menu.
The user defined subset must be selected in the DataManager 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.
z The files need not to be based on the same mesh. Necessary interpola-
tion is performed in the added items, when the meshes do no match.
z The files need not have the same temporal definition. Necessary inter-
polation in time is performed in the added items, when the timesteps do
no match.
z The files need not cover the same geographical area. The full expres-
sion is only applied in the intersecting area. In areas not covered by the
added items, undefined or zero values will be used instead.
z The coordinate system projections need not to match. All coordinates
are transformed into the system of the current file.
Output Options
Timestep selection
The expression can be applied to timesteps in the following ways:
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.
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
operators and functions can operate on either constants or variables.
All operators and functions will be applied to elements of the current item
individually. 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]. 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 operatores as given below.
24.3.2 Interpolate
By interpolation you fill the cells with missing values.
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 pre-
vious version of the dataset is better, you can restore the data from that
version.
24.4 View
You may select which item, time step and layer to view and edit from the
View drop-down menu.
24.4.1 Items
You select the item to view by choosing between the available data items
in the dataset.
24.5 Tools
24.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
24.6 Examples
The following describe some examples of use of the Data Manager.
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
timestep 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.,
surface 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 Var2 select data1.dfsu and
relevant item, and as Var3 select data2.dfsu and relevant item. Now
enter Var2-Var3 in expression.
Note: The two data files need not to be based on the same mesh, or the
same projection. See Variables in Calculator for reference.
Note: The result will in general not be exactly the same when comparing
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.
or
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
condition, in this case a type Grain Diameter with unit mm. Click "fin-
ish", and you will have the skeleton of a new file defined.
5 Start the Calculator. Add one variables, as Var2 select data1.dfsu and
the still water depth item. Now enter one of the formulas in expression:
259
260 MIKE Zero
Input
25 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 specification in the setup editors, but there is currently no additional
output items available.
25.1 Input
Select name and location of the input file, which must be a 2D or 3D
unstructured data file (dfsu).
25.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.
Field type
For a 2D unstructured data file only field type 2D is currently available.
Output format
The possible choice of output format depends on the field type.
Output file
A name and location of the output file must be specified along with the
type of data (file type).
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.
For 3D simulations you must also specify the type of interpolation. You
can select discrete values or interpolated value
The geographical coordinates 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 numbers)
for the x- and y-coordinate. For 3D field data the third item must be an
integer for the layer number if discrete values is selected and a float (real
For 2D field data the point values in the output file are determined by
piecewise linear interpolation. Hence, the point values are the discrete val-
ues for the element in which the specified point is located. For 3D field
data the point values in the output file are determined by piecewise linear
interpolation in the horizontal domain, while in the vertical either piece-
wise linear interpolation or linear interpolation is used depending on the
choice of interpolation. The element number and the horizontal coordi-
nates of the center of the element and the z-coordinate are listed in the log-
file.
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.
The geographical coordinates are taken from the dialog. You must specify
the first and the last point on the line and the number of discrete points on
the line.
For 2D field data the values for the points on the line in the output file are
determined by piecewise linear interpolation. Hence, the point values are
the discrete values for the element in which the specified point is located.
For 3D field data the values for the points on the line in the output file are
determined by piecewise linear interpolation in the horizontal domain and
linear interpolation in the vertical. The element number and the horizontal
coordinates of the center of the element and the z-coordinate are listed in
the log-file.
Area series
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 coordi-
nates of the vertex points of the polygon. 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 coordi-
nates of the polygon points are taken from the dialog or from a file. The
file format is an ascii file with three space separated items for each of the
two points 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
a float (real number) for the z-coordinate. For 2D field data the third item
is unused (but must be specified).
You must also select the map projection (Long/Lat, UTM-32 etc.) in
which you want to specify the horizontal location of the points.
Volume series
The discrete field data within a polygon in the horizontal domain can be
selected and within a specified range of layers in the vertical domain. The
closed region in the horizontal domain is bounded by a number of line
segments. You must specify the coordinates of the polygon points of the
polygon. 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 vertex points are
taken from the dialog or from a file. The file format is an ascii file with
three space separated items for each of the two points on separate lines.
The first two items must be floats (real numbers) for the x- and y-coordi-
nate. For 3D field 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 spec-
ified). You must also specify the range of layers (first and last layer
number) which should be stored in the output 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.
265
266 MIKE Zero
Introduction
26.1 Introduction
All MIKE Zero 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 (.ubg) file is read. This file is located
in (default installation):
The Unit Base Group Editing Utility is a tool for the advanced user to edit
the default units for various data types.This allows you to change the dis-
played units for any value that is included in the library.
Note: Not all modules in MIKE Zero are prepared for showing alternate
units in the dialogs.
When you select this menu item, the Unit Base Group Editing dialog
appears, see Figure 26.2. By default all of the data units for each active
module are displayed. For a clearer overview of the data 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 (MIKEZero.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 displayed 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
several data items with similar names. This is more likely to occur if sev-
eral modules 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 data type for this field. Alternatively, for
gridded data, you can use the Create button to create a data file and then
notice the data type that is displayed 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
Center, who should forward your request to the developer for inclusion in
the next release.
In the same directory there are two standard Unit Base Group files:
MIKEZero_Default_Units.ubg
MIKEZero_US_Units.ubg
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 MIKEZero_US_Units.ubg file, Save and Close the dialog and
then reopen your model.
Note: Not all modules in MIKE Zero are prepared for showing Imperial
(American) Data Units.
MIKEZero_Default_Units.ubg
MIKEZero_US_Units.ubg
Note: If you want to save any of your model specific changes, then you
should first save the MIKEZero.ubg to a new name.
For example, in the following set of dialogs shown in Figure 26.3, an Eva-
potranspiration time series was selected instead of the correct Precipita-
tion time series file.
The first error is in the Select Item tab (upper dialog), where there is a
message 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
Precipitation 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 Eva-
potranspiration 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.
This opens the item properties dialog (Figure 26.5) where you can change
the EUM Type and the EUM Unit that is assigned for each time series in
the file.
This will open the Edit Properties dialog for the Grid Editor (Figure 26.7)
where you can change the EUM Type and the associated data EUM Unit
of the item.
275
276 MIKE Aqua
Introduction
27 BASIC GEODESY
Geodesy is the branch of science concerned with the determination of the
size and shape of the earth. This section will in the following discuss the
following aspects of geodesy:
1 Geoid
2 Ellipsoid
3 Datum
4 Map Projection
5 Datum Transformation
27.1 Introduction
As the earth is an almost spherical object, mathematical methods have
been developed by cartographers to project the curved surface of the earth
to the flat surface of a map. These methods, known as map projections
involve the concept of wrapping an imaginary cylinder or cone around an
ellipsoid model of the geoid, and then projecting from the ellipsoid model
to a cylinder or cone. Cylinders and cones are called developable surfaces
because they can be cut and placed on a flat surface, such as a map, with-
out distorting the projected features.
27.2 Geoid
The geoid is an invisible, continuous closed surface and is an equipotential
surface or a level surface. It is a surface at which the potential of gravity is
constant and the vector sum of the force of gravity and centrifugal force
277
Basic Geodesy
due to the rotation of the earth is normal to the surface at every point. A
level surface undulates over a geographic area due to variations in the
mass of the earth's terrain and seas. A level surface is chosen that, on aver-
age, coincides with the surface of the oceans. This surface is called the
geoid. As a result, the geoid is often defined as the mean sea level. The
geoid undulates even in areas of the earth where there are oceans, because
the mass and density of the water and rock beneath the ocean are not con-
stant.
27.3 Ellipsoid
The ellipsoid is a three-dimensional model formed by rotating an ellipse
about its minor axis. An ellipsoid, sometimes called a spheroid, is used as
the reference system of the geoid instead of a sphere because the earth is
slightly flattened. The earth's polar axis is shorter than the diameter of the
earth measured at the equator. An ellipsoid serves two purposes. It serves
as a reference system for creating the geoid model, and it serves as a math-
ematical model for locating the earth's features geographically. The earth's
features are projected from the earth's surface to the ellipsoid.
From the ellipsoid they are geometrically projected to a map, or their geo-
graphic locations on the map are mathematically computed in some man-
ner. There are many mathematical algorithms for transferring features
from the ellipsoid to the map. Figure 27.4 show the geographical position
of point P described by various parameters related to an ellipsoid.
279
Basic Geodesy
27.4 Datum
27.4.1 Geodetic datum
A geocentric coordinate system has its origin at the centre of the earth,
with the x axis and y axis in the equatorial plane, with the x axis passing
through the prime meridian, and with the z axis along the polar axis. The
production of a new ellipsoid and its geocentric and geodetic coordinate
systems is called a geodetic datum. Maps using the new geodetic datum
will have their features shifted geographically relative to the old datum.
Differences between different datums are illustrated in Figure 27.5.
Figure 27.5 Position shifts for a point using different geodetic datums
281
Basic Geodesy
Cone
In normal aspect, the cone is placed tangent to the globe along a parallel of
latitude or secant to the globe, intersecting the globe along two parallels.
Meridians are represented as straight lines radiating from the apex of the
cone and parallels of latitude are represented as concentric circular arcs.
The standard parallel(s) is/are true to scale.
Cylinder
The normal aspect for cylindrical projections assumes that the cylinder is
tangent to the globe along the Equator. In this orientation, the graticule
appears as a rectangular grid. Meridians of longitude are straight lines,
In the tangent case, the Equator is true to scale and distortion increases
with distance from the Equator. In the secant case, the standard parallels
which lie equidistant north and south of the Equator are true to scale and
distortion increases with distance from the standard lines.
283
Basic Geodesy
used to portray areas with larger north-south than east-west extent. Distor-
tion of scale, distance, direction and area increases away from the central
meridian.
Plane
Plane projections are projections to a plane placed tangent to the globe at a
point. In normal (or polar) aspect, the point of tangency is either the north
or south pole and meridians of longitude are represented as radial straight
lines through the pole while parallels of latitude appear as concentric cir-
cles.
Distortion in the map increases with distance from the point of tangency.
Since distortion is minimal near the point of tangency, azimuthal projec-
tions are useful for representing areas having approximately equal extents
in the north-south and east-west directions.
Conformality
When the scale of a map at any point on the map is the same in any direc-
tion, the projection is conformal. Meridians (lines of longitude) and paral-
lels (lines of latitude) intersect at right angles. Shape is preserved locally
on conformal maps (Transverse Mercator projections).
Distance
A map is equidistant when it portrays distances from the centre of the pro-
jection to any other place on the map.
Direction
A map preserves direction when azimuths (angles from a point on a line to
another point) are portrayed correctly in all directions.
Scale
Scale is the relationship between a distance portrayed on a map and the
same distance on the earth.
Area
When a map portrays areas over the entire map so that all mapped areas
have the same proportional relationship to the areas on the earth that they
represent, the map is an equal-area map.
The use of the Mercator map projection as the base for nautical charts is
universal. (Which does not mean that all nautical charts are based on the
Mercator projection, but most are)
The major navigational feature of the projection is found in the fact that a
sailing route between two points is shown as a straight line, if the direction
or azimuth of the ship remains constant with respect to north. This kind of
route is called a loxodrome, or rhumb line. Conversely, it is also true that
285
Basic Geodesy
any straight line depicts a rhumb line. This implies, that all angles main-
tain the sizes that they have on the surface of the globe.
Lines of longitude and latitude are both straight and parallel. The linear
scale is not true, i.e. not isometric. Aerial distortion is extreme away from
the equator. Shape is true only within any small area.
Figure 27.12 show the UTM zone numbers as distributed across the world.
For example UTM Zone 32 extend from 6° East to 12° East and covers
most of Denmark.
The relation between central meridian (CM) and primary UTM Zone is
given below. CM is negative for western meridians and positive for east-
ern meridians.
Coordinates are not always referred to the primary UTM Zone. When an
area spans several UTM zones, it may be more practical to refer all coordi-
nates within an area to the same UTM zone. Therefore, it must always be
ascertained just what UTM zone coordinates refer to, and when UTM
coordinates are passed on to someone else, they should be accompained
by the proper UTM zone information.
287
Basic Geodesy
27.6.2 Formulae
Two common transformation models are available for the conversion of
parameters from one datum to another.
Molodensky transformation
The Molodensky transformation requires 3 parameters, see Equation
(27.1) and Figure 27.13.
X 1 = X 2 + ∆X
Y 1 = Y 2 + ∆Y (27.1)
Z 1 = Z 2 + ∆Z
where
3D Helmert transformation
The 3D Helmert Transformation requires 7 parameters, see Equation
(27.2) and Figure 27.14.
X1 ∆X 1 –RZ RY X2
Y1 = ∆Y + ( 1 + S c ) R Z 1 – R X Y 2 (27.2)
Z1 ∆Z –RY RX 1 Z2
289
Basic Geodesy
where
The sign convention of RX, RY and RZ is such that a positive rotation about
an axis is defined as a clockwise rotation of the position vector when
viewed from the origin of the Cartesian coordinate reference system in the
positive direction of that axis.
27.6.3 Parameters
The transformation parameters which are substituted into the Formulae
(i.e. ∆X, ∆Y, ∆Z, RX, RY, RZ and Sc) identify the relationship between the
particular datums in question. They are calculated by comparing coordi-
nate sets from the two datums.
27.7 References
Further reading about geodesy and map projections in general can be
found on the following web-sites:
http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofU-
sage/eu_cs34.html
http://mathworld.wolfram.com/LambertConformalConicProjection.html
291
Basic Geodesy
28.1 Introduction
All MIKE Zero products that work with spatial data relate the data ele-
ments to geographical positions on the planet earth. This is managed
through the use of map projections. A map projection is basically a for-
mula for converting between Cartesian (x,y)-coordinates - often in map
projections referred to as easting and northing - and longitudes and lati-
tudes.
z The map projection that the actual data is given in, and
z The coordinates - expressed in the given map projection - of a refer-
ence point within the data.
This makes it possible for MIKE Zero to calculate the exact geographical
position of each point in a given data file.
293
Geodesy in MIKE Zero
The latter file contains custum projections, e.g. map projections you can
define yourself by giving a set of projection parameters. This is done from
the menu item "Edit Map Projections" found in the MIKE Zero File menu
under “Options”.
The files are self-extracted during the installation and installed in a direc-
tory within the DHI common files folder.
The grid orientation 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 Clock-
wise", see Figure 28.1.
When plotting a grid in the Plot Composer, you have the option to plot an
Indication of Convergence. The convergence defines the angle between
the longitude at the specific location and the northing line for the specific
map projection. As such it is independent of the grid orientation.
295
Geodesy in MIKE Zero
After you have selected the menu item, you will be presented with a dialog
from where you can create a new map projection, delete or edit an existing
one (see Figure 29.2).
297
Map Projection Editing
Note: All new map projections you create will be placed in the Custom
map projections group node.
The number and type of parameters depends on the type of map projec-
tion.
All new map projections you create will be saved in the file
‘Custom_projection.pfs’ located in the folder:
299
Map Projection Editing
Usually the pre-defined projections that are installed along with the MIKE
Zero are write-protected and cannot be edited.
After you have selected the menu item, you will be presented with a dialog
from where you can convert xyz data between different coordinate sys-
tems (see Figure 30.2).
A log containing the session history keeps track of the conversions for the
active data set.
301
Datum Conversion Utility
You can add the spatial data to the dialog in two ways:
NOTE: In an ascii-file the first three columns must be numeric data. All
characters in the line after the third column are regarded as text and
inserted in the fourth column in the speadsheet, including spaces.
You can export the data in the spreadsheet to an ascii-file at any time by
selecting File->Save or File->Save as.
Per default the program search for ascii-files with extension .xyz, but it is
possible to apply other extensions.
303
Datum Conversion Utility
If you want to add a datum shift to the map projection already defined you
must specify some datum transformation parameters. The parameters are
as follows:
z dx, dy, dz
The difference between the centres of the two spheroids
z Rx, Ry, Rz
The rotations around the three coordinate axes)
z Sc (scale difference between the coordinate systems)
Additional description of how the parameters are defined and how the
datum shift is calculated can be found in Datum Transformation (p. 288)
and below.
305
Datum Conversion Utility
307
308 MIKE Zero
Introduction
31.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 choose FileÆData Util-
ity to open the MzDataUtility window.
From the Main Menu of the MzDataUtility window you may use
FileÆOpen to open an existing DFS file.
With Data Utility, you can edit various DFS header information, such as:
z File Overview
z Item Information
z Custom Blocks
z 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.
For some files model specific information are stored in the custom blocks
(for example the coastline orientation in a LITPACK line series file).
In this menu you may edit the data type and the delete values used in the
model.
Various data types are for example used in the LITPACK model.
315
316 MIKE Zero
Introduction
32.1 Introduction
The Image rectifier aka 'ImRec.Exe' is an editor that can be used to rectify
raster images.
For those who are unfamiliar with rectification a short introduction to rec-
tification is given here. Rectification is the process of transforming the
data from one grid system to another grid system using an nth order poly-
nomial. Since the pixels of the new grid may not align with the pixels of
the original grid, the pixels must be resampled. Resampling is the process
of extrapolating data values for the pixels on the new grid from the values
of the source pixels. In other words the Image Rectifier can bend and twist
a scanned image of a seamap, or anything else, so that it aligns with a
coordinate system of a specific map projection.
The Image Rectifier will use a non rectified image as input and will output
a rectified image and a world coordinate file that indirectly assigns coordi-
nates to the image data of the output image. Doing this is referred to as
Georeferencing, which refers to the process of assigning map coordinates
to image data. The image data may already be projected onto the desired
plane but not yet referenced to the proper coordinate system. Rectifica-
tion, by definition, involves georeferencing, since all map projection sys-
tems are associated with map coordinates.
The output from the Image Rectifier is a world coordinate file and an
image that is rectified to a particular map projection (for most modelling
applications UTM) and Georeferenced to this map projections coordinate
system as explained above.
These two files and the input image are connected as an 'Image Rectifier'
project.
The Image Rectifier can only handle 24 bit bitmaps (This is the windows
image format with the extension .bmp). Any image must be converted to
this format with a paint program before it can be used. If you have an
image ready, you can start rectifying it by selecting New from the File
menu. New opens a file selector where you can select your input image
and accept it by pressing OK. This will open up theTarget Area (p. 319)
dialog, where you must define your graphical working area.
Press OK after you have defined these values. These values can be found
by analysing the input image. Find a number of keypoints that you know
or can calculate the output coordinates of to get an idea of the extents of
the output area. It is recommended to make the output area a little larger
than needed. When you have accepted your values the Source View
(p. 319) will appear and you can now use the Toolbar Functions (p. 323).
You can place these points by clicking the Add New GCP Toolbar Func-
tions (p. 323) button which will make the Specify Target Point (p. 323)
dialog popup. GCPs are shown in red in the target view, they can be
added, deleted and moved via theToolbar Functions (p. 323).
If you have defined enough GPCs you can select the appropriate Rectifica-
tion item in the menu. A progress bar will show the progress of the rectifi-
cation and disappear when the rectification is done. To view the output
image, select the Target View in the View menu. This will open the target
view, which is a window that contains the output image. The target posi-
tion of the GPCs can be deleted and moved in this view via theToolbar
Functions (p. 323).
Notice the 'R' in front of the 'HelpMap.bmp' in the title caption of the Tar-
get View. If a project is called 'HelpMap' then the input image will be
called 'HelpMap.bmp', the output image will be called 'RHelpMap.bmp'
and the world coordinate file will be called 'RHelpMap.bmpw'. If you
move the cursor around in the views you can se information about the
pixel where the cursor is at in the status bar.
If the cursor is over a pixel in the focused Target View, the coordinates
after the Area (x,y) label is the output area coordinates of that pixel. The
information in the first box is the pixel position and color of the pixel
under the cursor in the focused view. The last box contains information on
Zoming and image in the focused view.
1 The Normal Mode button sets the editor in normal mode where you can
pick out single GCPs and delete them if that is wanted. To delete you
mark one of the GCPs; press delete on the keyboard or choose delete
from the edit menu.
2 The Move Mode button sets the editor in a mode where GCPs can be
moved by placing the cursor over a GCP and holding the left mouse
button down while moving the mouse. When you release the button,
the GCP will be placed at the position where the cursor is when the
release happens.
3 The Zoom mode button set the editor in a mode where you can zoom in
either the input (Source View (p. 319)) or output image (Target View
(p. 320)). Left clicking will zoom in and right clicking will zoom out.
4 The Add GCP button sets the editor in a mode where you can add
GCPs. You add GCPs by pointing at a location in the input image
(Source View (p. 319)) and left clicking the mouse. This will make the
Specify Target Point (p. 323) dialog popup. This button will not be ena-
bled when the Target View (p. 320) is focused.
Type in the X and the Y and click OK when you are satisfied with the val-
ues. Easting and Northing is used here because modelling applications use
the UTM system. If you type a value that is outside the extents of the Tar-
get View (p. 320) you will be asked to correct the values so that they are
valid. If the GPC is accepted, it will be displayed as a red square in the
Source View (p. 319) and an Orange square in the Target View (p. 320).
The points are numbered with a label in both views to enable you to see
which points are related.
32.6 Example
The following example will show how to rectify an image and use the rec-
tified image in the MIKE Zero bathymetry editor. This example will also
show the use at the Southern Hemisphere, with co-ordinates transferred
from standard UTM co-ordinates to signed co-ordinates.
To insure that all points will fall within the working area the co-ordinates
and dimension given in Table 32.2 has been selected in order to describe
the Sea Chart..
After rectifying the picture the output would look like Figure 32.13.
331
Index
L R
Lambert Conic . . . . . . . . . . . . 299 rectifification . . . . . . . . . . . . . . 320
Land Boundaries . . . . . . . . . . . 158 Redistribute . . . . . . . . . . . . . . 182
Land Generation . . . . . . . . 132, 143 Redo . . . . . . . . . . . . . . . . . . 175
Latitude . . . . . . . . . . .293, 299, 300 Reduce Scatter Data . . . . . . . . . 183
Linear Interpolation . . . . . . . . . . 188 Refine . . . . . . . . . . . . . . . . . . 170
LITPACK Orientation . . . . . . . . . . 55 Refine Mesh . . . . . . . . . . . . . . 188
Local Maximum . . . . . . . . . . . . 174 Resampling . . . . . . . . . . . . . . 317
Longitude . . . . . . . . . .293, 299, 300
S
M Scale . . . . . . . . . . . . . . . 285, 299
Map projection . . . . . . .262, 263, 293 Select area . . . . . . . . . . . . . . . 245
Mark element values . . . . . . . . . 245 Select Sub-Set . . . . . . . . . . . . 42
Mesh . . . . . . . . . . . . . . . . . . 153 Select Zone . . . . . . . . . . . . . . 168
Mesh Definition File . . . . . . . . . 153 Shading . . . . . . . . . . . . . . . . . 190
Mesh files . . . . . . . . . . . . . . . 183 SI units . . . . . . . . . . . . . . . . . 269
Move Mode . . . . . . . . . . . . . . 323 Smooth Mesh . . . . . . . . . . . . . 186
Smoothing . . . . . . . . . . . . . . . 171
N Southern Hemisphere . . . . . . . . 324
Natural Neighbour Interpolation . . . 187 Spatial properties . . . . . . . . . . . 246
Navigation . . . . . . . . . . . . . . . . 99 Statistics . . . . . . . . . . . . . . 42, 256
Navigation View . . . . . . . . . . . . . 60 Status Bar . . . . . . . . . . . . . . . 179
New data file . . . . . . . . . . . . . 246
New File . . . . . . . . . . . . .19, 49, 77 T
Node . . . . . . . . . . . . . . . . . . 154 Tabular View . . . . . . . . . . 31, 58, 89
Normal Mode . . . . . . . . . . . . . 323 Target Area . . . . . . . . . . . . . . 319
NYC . . . . . . . . . . . . . . . . . . 294 Target View . . . . . . . . . . . . . . 322
Temporal range . . . . . . . . . . . . 262
O Time axis . . . . . . . . . . . . . . . . 247
Open Boundaries . . . . . . . . 156, 158 Time step . . . . . . . . . . . . . . . . 262
Options . . . . . . . . . . . . . . . . . 176 Toolbars . . . . . . . . . . . . . . . . 96
origin . . . . . . . . . . . . . . . . . . 129 Transverse Mercator . . . 283, 285, 286
Output . . . . . . . . . . . . . . . . . 261 Triangular Interpolation . . . . . . . . 148
Triangulate . . . . . . . . . . . . 164, 185
P TS Types graphical representation . 34
Palette . . . . . . . . . . . . . . . . . . 90
Point Attribute . . . . . . . . . . . . . 156 U
Point Properties . . . . . . . . . . . . 194 Undo . . . . . . . . . . . . . . . . . . 175
Polygon . . . . . . . . . . . . . . . . 154 Undo level . . . . . . . . . . . . . . . 176
Polygon fill . . . . . . . . . . . . . . . 143 Unit Base Groups . . . . . . . . . . . 267
Polygon Properties . . . . . . . . . . 195 Universal Transverse Mercator 286, 299
Polygon selection . . . . . . . . . . . 245 UTM . . . . . . . . . . . . . . . . . . . 286
Position . . . . . . . . . . . . . . . . 129 UTM projection . . . . . . . . . . . . 299
Projection . . . . . . . . . . . . 158, 190
333
Index
V
Vertex . . . . . . . . . . . . . . . . . 154
View Colour Legend . . . . . . . . . 178
View Mesh Element Numbers . . . 178
View Mesh Node Numbers . . . . . 179
View Scatter Data . . . . . . . . . . 178
W
Workspace . . . . . . . . . . . .155, 190
X
XYZ . . . . . . . . . . . . . . . . . . 154
XYZ files . . . . . . . . . . . . . . . . 183
Z
Zoom . . . . . . . . . . . . . . . . . 32, 59
Zoom In . . . . . . . . . . . . . . . . 177
Zoom mode . . . . . . . . . . . . . . 323
Zoom Out . . . . . . . . . . . . . . . 177
Zoom to Extent of Data . . . . . . . 177