General Settings¶
General settings contain the overall configuration of MIKE OPERATIONS.
Create Configuration¶
Click the New button to create a new configuration.
Specify a name. The new configuration can be created as a copy of an existing configuration. Select the configuration to copy in the Copy from drop down.
"Real time configurations" spreadsheet¶
When a configuration has been created and saved, the configuration is added to the list of real-time configurations in the "Real time configurations" spreadsheet of the spreadsheet manager of MIKE Workbench.
Column | Description |
---|---|
Active | Yes if the configuration is active. No if the configuration is not active, hence not displayed in the Configurations drop down in MIKE OPERATIONS. |
Configuration Name | The name of the configuration. |
Users | Comma separated list of users (MO login user) allowed to select the configuration. If no users are specified, all users can see the configuration. The admin user can always see all configurations. |
Show On Web | Value indicating whether the configuration is available on MIKE OPERATIONS Web. |
Index | Index in the configurations dropdown. |
General¶
- Description
An optional description of the configuration.
- Model Setup
Path to the model setup in the Scenario Manager of MIKE Workbench.
MIKE OPERATIONS is model independent, so any type of model can be specified here.
(for display of observations only without a model included, the Model Setup text box is empty).
- Forecast Scenario
Forecast Scenario is the scenario of the model setup used in Data & Maps mode.
The latest simulation of this scenario is used at startup and refreshed when a new simulation is ready.
Scenario Mode¶
- Checkout Scenario Path
Path on disk where all scenarios created in scenario mode will be placed.
This path must be specified in order to create scenarios in scenario mode.
- Run Scenario Host
Name of the host to use for running simulations in scenario mode.
Host is configured in the Job Manager of MIKE Workbench.
If no host is specified, a localhost is used.
- Scenario Templates
Configure Scenario Templates clicking the Templates button.
The selected spreadsheet contains the configured scenario templates.
By default, the spreadsheet is called Scenario Templates and is placed in the folder containing the configuration spreadsheet of the current configuration.
Scenario Templates¶
The scenario templates can be configured from the General Settings page in the backstage view of MIKE OPERATIONS.
Clicking the Templates button displays a form where the Scenario Templates can be configured.
Templates can be created, copied, deleted and moved up or down. The order of the templates in the configuration form determines the order the templates will be displayed when applying the templates, while creating new scenarios.
The scenario configurations will be persisted in a spreadsheet Scenario Templates, placed in the folder of the current configuration in the spreadsheet manager of the MIKE Workbench.
Input time series¶
Each template defines what input time series should be changed and how to it should be changed. The baseline time series of the specified baseline scenario will be the base of the new time series. This means that if no changes to the time series are made, the new input time series will contain the same time steps and values as the base line time series. If no scenario template is applied, the new scenario will contain a copy of the baseline time series.
The template configuration dialog can be accessed by clicking the Time Series button and will contain a tab page for each active dynamic feature layer in the MIKE OPERATIONS configuration, containing input time series supporting scenario mode.
Input time series are identified by the tab they are added to (Dynamic Feature Type), the name of the station/catchment/reservoir and the name of the time series.
Each input time series has a Model Object Name and a Model Object Variable Name specified in the configuration of the station. Model Object Name and Model Object Variable Name is used for identifying the input time series in the model setup.
Time series can be created, copied, changed and deleted, but not ordered. The rows will automatically be ordered by the name of the station and the name of the time series.
Clicking the New button will bring up a dialog for selecting the station and the time series.
The Name combo box will contain a list of stations/reaches/catchments of the selected feature type (tab).
Time series contains a list of input time series supporting scenario mode on the feature type selected.
The input time series can be changed by clicking the Details button of the time series.
Actions¶
Each input time series can have a set of actions, defining what to change on the baseline time series.
New will add a new action line in the list view.
Delete will delete the action from the list view.
Copy will copy the action into a new row.
The order of the actions can be changed by clicking Move Up and Move Down.
The order determines the order that the actions will be applied to the scenario input time series.
Each action can be configured clicking the Details button.
This will bring up the action configuration dialog.
The following information can be specified:
Property | Description |
---|---|
Id | The Id of the actions |
Name | The name of the action. |
Description | The description of the action. |
Active | Actions can be deactivated. |
Start | Time span from Time Of Forecast from where the action is applied. The time span should define the number of years, months, days, hours, minutes and seconds. |
End | Time span from Time Of Forecast where the action is active to. The time span should define the number of years, months, days, hours, minutes and seconds. |
Action Type | The type of action. 1. Scenario Input time series definition |
Value | The value to set, add or multiply to the baseline time steps depending on the Action Type. |
End Value | The end value on the to time step when using the interpolation action type. |
Script | Full path to the script used for setting scenario input time series for Action Type Script. The script should return an list of time steps and take the following arguments: 1. Scenario Input time series See below for a script sample. |
The script sample below shows how a script body should look, for a script used in a scenario template action.
def ScenarioInputTimeseriesTemplate(scenarioInputTimeSeries):
"""
<Script>
<Author>admin</Author>
<Description>Sample of scenario template script.</Description>
<Parameters>
<Parameter name="scenarioInputTimeSeries" type="IScenarioInputTimeseriesDefinition"></Parameter>
</Parameters>
<ReturnValue type="IList">Function returns object of type IList</ReturnValue>
</Script>
"""
vplist = []
# Add data series value pairs (IDataSeriesValuePair) to the vplist before returning it.
# The list returned will replace the time steps of the input time series.
return vplist
Publish¶
- Contacts
Path to the spreadsheet containing the contacts setup.
A default contacts spreadsheet Contacts are created in the configuration folder.
Click the Eclipse button to select an existing contacts spreadsheet.
Click the Create Spreadsheet* button to create a new spreadsheet.
-
SMS Batch File Path
Path to a batch file executed in order to send SMS messages on threshold alerts.
The batch file will be called with two arguments.
- Message Text – The text to send.
- Phone numbers – A semicolon separated string of phone numbers that should receive the SMS message.
In the batch file, a call to a SMS Gateway must be specified. SMS Gateway Providers usually have their own way of sending SMS messages.
Please follow the instructions given by the SMS Gateway Provider for sending SMS messages from the command line or using the API of the SMS Gateway Provider.
- Web Publish Script
Select a script in the script manager, to be executed when the Web Button (www) of the ribbon is clicked.
The script should not have any arguments.
def PublishToWeb(): """ <Script> <Author>admin</Author> <Description></Description> <Parameters> </Parameters> </Script> """ # Write publish code here. return;<br>
Layout¶
- Default Skin
Layout Skin Colours used in Data & Maps.
- Scenario Skin
Layout Skin Colours used in Scenario Mode.
- Background Map Type
The default background map type shown at startup.
Favorite background maps can also be selected here. Refer to the MIKE Workbench online help for more information.
Note that when using Google Maps, there are limits on the number of map loads allowed.
Please refer to Google Maps usage limits. - Source Coordinate System
The Source Coordinate System used for the x- and y-coordinates of point features.
This is the coordinate system used when saving spreadsheets to MIKE Workbench.
- Views
Select the Views available in the current configuration.
Views not selected will be hidden in the current configuration.
If no views are selected, all views will be displayed.
- Use Tree Navigation
The navigation panel can show stations as a list view or a tree view. To use tree view, check this check box.
- Zoom to selection
When selecting features in the table view or on the map, the map will automatically zoom to the first feature in the selection.
Refresh¶
- Interval (minutes)
The refresh interval in minutes.
If a refresh interval is specified, the entire UI will refresh and load new data and simulations.
If the refresh interval is set to 0 or less, no refresh is done.
Themes¶
The theme concept is opening up for having different views with a different set of feature types. A feature type can belong to one or more themes.
When selecting a theme in the ribbon, only feature types belonging to the selected theme will be displayed.
Themes are created from the General Settings page in the backstage view.
Themes can be created as main themes, selected in the ribbon, and as child themes specified on an item e.g. a station.
Child themes will be displayed when double clicking an item with a child theme specified as Go to theme. Note that go to child theme will be applied, only if the parent theme of the child theme is currently selected in the ribbon.
None, one or more main themes, or child themes can be specified on an item.
The child themes are displayed depending on the main theme selected on in the ribbon.
This also means that only one child theme per main them should be specified on an item.
The themes dropdown in the ribbon has a back button.
The back button is for getting back to the main theme when a child theme has been selected. The back button will refresh the main theme if a main them is specified.
Maintaining Themes¶
Themes are created clicking the Themes button of on the General Settings page.
Click the Details button of the theme row to configure the theme.
- Active
Activate the theme type by checking this field.
- Id
Id of the theme. The id is used as reference.
- Name
Name of the theme.
- Description
Description of the theme.
- Parent Theme
Parent theme (main theme) of a child theme. A child theme can be specified on a station, so that the theme is applied when double clicking the station in the navigation view or the map.
- Show Background Map
Check to show the Google or Open Street background map when applying the theme.
When checked, the background map specified in general settings is shown.
- Favorite Background Map
Specify a favorite map to show as background map when applying the theme.
Favorite maps should be placed in a group Background Maps (case sensitive) in the Favorite Explorer of MIKE Workbench.
Favorites maps are added from the map view of the GIS Explorer using the context menu of the map.
- Views
Specify the views visible when applying the theme.
If no views is selected, the views currently visible will be displayed.
- Filter Groups
Specify filter groups to show when applying the theme.
If no filter groups is selected, all groups are shown when applying the theme.
- Coordinate System
Specify the map coordinate system to use when applying the theme.
Create Spreadsheet¶
Information about feature types, are stored in spreadsheets in MIKE Workbench. To create a spreadsheet, click the Create Spreadsheet button in General Settings.
Spreadsheets can be created from a GIS Feature Class in MIKE Workbench. In the image above, the dialog shows that the new spreadsheet will be created with features from the Feature Class found in the path /Sava/Reservoirs of the GIS Manager of the MIKE Workbench.
- Create Empty Spreadsheet
Check this box to create an empty spreadsheet for stations or catchments.
To create a spreadsheet from a feature class, uncheck Create Empty Spreadsheet.
- Feature Class
Specify a feature class to create a spreadsheet with all the features in the feature class.
Feature Class is selected by clicking the Eclipse button of the field.
- Id Attribute
The attribute of the feature class containing the id of the each feature in the feature class.
The id must be unique.
- Name Attribute
The attribute of the feature class containing the name of the feature.
- Spreadsheet Name
The name of the spreadsheet to create. Use the Eclipse button to find a location of the spreadsheet or even a spreadsheet to overwrite.