How to create MOHID timeseries outputs
In this tutorial we will continue to develop the previously used test-case and we will configure the model so it returns a time serie with the water level at the coordinates of our choice on the domain. These time series can then be compared against tidal stations experimental measurements.
- 1 Step 1 - Define the data-acquisition stations
- 2 Step 2 - Create time serie stations with Mohid GIS
- 3 Step 3 - Configure the model so as to output time series results
- 4 Step 4 - Run the model again and inspect the time-serie results
- 5 Next steps
- 6 Previous steps
- 7 About the screen capturing tool
Step 1 - Define the data-acquisition stations
Run Google Earth
- With Google earth, choose the locations where there are tidal stations
- Save the google earth placemarks as a kml file
- Successfully run Kml2Mohid program to convert the google earth placemarks into a points file.
- Sample points (.xyz) file. This what the resulting file should look like:
<begin_xyz> -9.317324064466845 38.67641458263528 0 <end_xyz>
Step 2 - Create time serie stations with Mohid GIS
Import the xyz file containing the tidal stations
- In Mohid GIS, from the Project menu, select open
- Select the folder, select the saved GIS project, then click on Open:
- Here's what the opened GIS project should look like
- From the Data Items menu select Add Data Item
- Drag'n drop the points layer to the top, then right-click on it, then select Properties
- Set the pixel size to 5, then select Settings
- Select a color and a pixel size for the points.
- Check that the point is well where it should be on the grid
Create the MOHID time series
- From the Tools menu, select Create Grid Time Series
- Select the grid data layer, select the correct xyz layer, define the folder and a new filename for the time series configuration file, define a 10 minute period outputs interval, then click on Ok.
- Click Ok upon success!
- Here's a typical time series configuration file
File generated by Mohid GIS DT_OUTPUT_TIME : 600 MAX_BUFFER_SIZE : 10000 Based on GridData file : D:\Users\Soussou\GeneralData\kml2gis\cascais.dat Based on XYZ file : D:\Users\Soussou\GeneralData\kml2gis\cascais.xyz <BeginTimeSerie> NAME : Station_ 0 LOCALIZATION_I : 65 LOCALIZATION_J : 127 LOCALIZATION_K : 1 CENTER_CELL_X : -9.31735 CENTER_CELL_Y : 38.67645 ORIGINAL_X : -9.317324 ORIGINAL_Y : 38.67641 <EndTimeSerie>
Step 3 - Configure the model so as to output time series results
- Open the GUI project
- Select the MOHID project
- Open the Hydrodynamic module
- Add the following lines to the hydrodynamic configuration file, then save and close
TIME_SERIE : 1 TIME_SERIE_LOCATION : D:\Users\Soussou\GeneralData\TimeSeries\StLouisTimeSeries.dat
Step 4 - Run the model again and inspect the time-serie results
Run the model
If all is correctly configured, and all the input files are double-checked, we can hopefully start running our model!
- Select Tools from menu, then Launch Mohid...
- Select the Run_1, then select Run Mohid, then select Launch after Ok, then click on Ok
- Supervise the screen-outputs to check for any error, or to simply read the estimated end time of simulation
Inspect the time-serie results
- Click on the HDF analysis mode icon, then double-click on any new .srh file, which is a time serie result from the model that can be opened with the Time Series Editor program that comes bundled with the MOHID suite.
- Select elevation then click on Ok
- Select the .srh file present, then click on Draw Chart
- Inspect and admire the plotted time serie results :)
- How to create discharges in MOHID
- How to use the Blumberg-Kantha radiation method
- How to couple atmosphere forcing
- How to create a model gridded bathymetry?
- How to generate tide for Mohid?
- How to configure a MOHID 2D simulation with tide?
About the screen capturing tool
The screen capturing tool used for this tutorial was the Jing Project.