This tutorial gives a brief introduction to the MetasSWAP Analyser Tool which serves to display and analyse the MetaSWAP modelinput (values, spatial data and time series). See for more detailed references regarding MetaSWAP chapter A.
• {installfolder} refers to the full path of the directory you installed iMOD in (e.g. D:\iMOD).
• If you are a left-handed person and you converted your mouse button settings, ’left mouse button’ should be ’right mouse button’ and vice versa in these tutorials.
This is what you will do:
• Open MetaSWAP input files that belong to an existing iMODFLOW model.
• Hover over the different parts of the model area to locate the different SVAT types.
• Explore the Irrigation parametrization, including relations between the source location of the irrigation water and the applied location.
• Select a subset of your choice of the more than 70 MetaSWAP parameters.
• Save your preferred view-settings in a *.IMS file for later use.
• Check the single values of the model parameters.
• Generate a combined graph of time dependent parameters like precipitation, leave index etc..
• Save IDF files of the spatial distribution of all SVAT types.
For this tutorial you need the following iMOD Data Files/folders:
• The entire folder (and subfolders) in {installfolder}\TUTORIALS\TUT_MetaSWAPAnalyser.
1. Launch iMOD by double clicking the iMOD executable in Windows Explorer.
2. Start with the MetaSWAP Analyser from the menu Toolbox. The toolbox window will open.
Search for an existing Model Results Folder There are two ways to select a folder with existing model data: using the default iMOD model folder or browse to a preferred model folder.
The Tutorial data is not in the default folder so we follow the next steps:
3. Click the Browse radio button.
4. Click the Open folder button (
) and select the folder {tutorialfolder} \TUT_MetaSWAPAnalyser.
5. Click OK to bring this folder to the MetaSWAP Analyser.
In the Available (sub)folder overview iMOD lists all available model folders.
6. Select the model named model_MetaSWAP.
7. Click the Open button to open/import the results of this model (in case an Error window opens, see instructions below).
In case an Error window opens stating that an "ASC file cannot be opened", the data of this Tutorial was probably not installed correctly. To solve this manually, open the file ..\TUT_MetaSWAPAnalyser \model_MetaSWAP \MetaSWAP \Mete_grid.inp in a text editor and change the paths of the files ("$DBASE$") to the path on your computer, e.g. c:\Projects\imod5.1\.
If no error occurs, iMOD will open and process all MetaSWAP files. If this is successfully done, all remaining Tabs of the windows are made active.
The next step is to load a Landuse map as a background image for orientation.
8. Click the option Map from the main window and select Add Map to display the Load iMOD Map window.
9. Select and open the file {installfolder}\TUT_MetaswapAnalyser\model_MetaSWAP\LANDUSE.IDF.
It is also possible to zoom to the extent of the chosen model.
Analyse the coupling between MetaSWAP and Modflow components
Now we start hovering over the model area to see what SVAT elements are available.
11. Therefore select the tab Coupling svat.
This Tab shows the ID relations between the Modflow model, the MetaSWAP model and the Meteo data and displays the surface area of the different elements.
12. Click the Inspector and your mouse pointer changes into an Inspector button (
).
13. Start hovering over the model area and see the values in the different tables change.
14. Find a cell where all 3 SVAT types are available. Hint: row number is 129 and column number is somewhere between 140 and 150.
15. Click your Left mouse button to leave the Inspector mode. The cell is "selected" and the data in de tables is frozen. If you use the right mouse button to leave the Inspector mode, the tables are cleared).
16. Check the different IDs in the table:
• Each unique Modflow cel (row/column/layer) has a unique ID.
• Within a Modflow cell the Urban and Rural Svat ID always differ.
• While the window and cell size of the Meteo input grid can differ from the model dimension, the Row and Column in the table svat - Precipitation can differ from Row and Column number of Modflow.
• If the Modflow model has been run with a buffer that is not saved, you will see a shift in the row and column numbers between the svat-Modflow table and the MetaSWAP IDF-svat table.
Figure 11.181: Example of MetaSWAP parameters on the Coupling svat tab.
Hover and display all available MetaSWAP parameters
17. Select the tab Parameters.
All MetaSWAP parameters listed in the different MetaSWAP input files (*.INP) are displayed in this table.
18. Click the Inspector button again to hover over the model area and see how the parameters change.
19. Select a cell and click one of your mouse buttons to stop hovering.
20. By default the parameter values related to the Rural svats are displayed. Select the radio button Urban to display the urban svat related parameters.
21. Scroll the table and see the available parameters. Some attributes show the value "only graph" which means that instead of a single value, a time series is available.
Figure 11.182: Example of MetaSWAP parameters on the Parameters tab.
For a specific analyses of your model, the total list of parameters is probably to long. Some parameters are even listed more than one time (e.g. SVAT-ID). We will now shorten the list and select only the parameters of our choice.
22. Select the tab Settings.
23. In the section Parameter Selection go through the list of MetaSWAP files (MS files) in the left menu and (de)select the parameter of your choice in the right menu. Select or deselect one or more parameters in one click using Ctrl+Left-Mouse-Button or Shift+Left-Mouse-Button. It is even possible to deselect all parameters for a specific MS file.
24. For this Tutorial it doesn’t matter what selection you make but in real life it can be helpful to save a favourite selection for future use. Try to save this selection by clicking the Save As button (
) and save the file as PRE_SEL_01.IMS.
Figure 11.183: Example of preferred settings on the Settings tab.
25. Return to the Parameters Tab and see that the selection of Attributes has changed into your selection.
Some parameters (especially in the files Mete_Grid.INP and the Fact_Svat.INP) are time dependent. In those cases the table displays the message only graph in the column Value. If a graph is ’On’ (see column Graph) the time series is selected for displaying.
26. Click the Inspector button again.
27. Hover to a cell of your choice and click a mouse button to stop hovering.
28. From the tab Settings select at least Parameters from the files Mete_Grid.INP and Fact_Svat.INP.
29. Click the Draw Graph... button on the tab Parameters and a new window will come up. It shows the time series of all selected parameters in one overview.
Figure 11.184: example of 4 time series in the Graph window.
30. Switch to the view of single graphs by deselecting the box Multiply Figures.
There is no need to close the Graph window if the time series for another cell are desired. In that case, start the Inspector and hover to the new cell location. Select the cell with the left mouse button and click the Draw Graph... button again
It may take a long time before all time series are processed and displayed. There are 2 options to speed up this process.
- By default iMOD will display all available time steps; first we will decrease the time window.
- By default iMOD reads the Meteo data from the non-binary *.ASC files. A switch to (prepared) IDF files is available. Lets test these options.
31. Select the tab Settings.
32. In the lower section of the tab with time variables assure dates From: 1 January 2005 To: 31 December 2006.
33. Go back to the tab Parameters and experience the effect on the total processing time.
34. In the section Handling Meteo Data on the tab Settings select the option Create missing IDF from the drop down menu.
Instead of reading slow from ASC files, iMOD will now read Meteo data from IDF files. Only the first time iMOD will create all missing IDF files from the available ASC files and alows fast reading of IDF files in the future.
35. Save your changed settings to PRE_SEL_02.IMS.
While hovering over the model area, it is helpful to have more background IDFs plotted. The MetaSWAP Analyser facilitates in a series of default IDF files:
• an IDF with ID numbers for each SVAT type (urban, rural and irrigation);
• the Landuse map;
• for each layer an IDF with the ModflowID.
36. On the tab Parameters click the button Create IDFs....
The mentioned IDFs are created in the folder model_MetaSWAP\metaswap\*.IDF. The Landuse map is also loaded in the iMOD Manager.
Inspect the Irrigation relations One tab, the Irrigation tab, specifically displays all the irrigation related parameters. It presents parameters like source type, source layer, period and gift and shows relations between the source location and the irrigation location.
37. Select the tab Irrigation.
38. Open in the iMOD Manager the file ...\model_MetaSWAP\metaswap\SVAT_IRRIGATION.IDF (created in step 36.). This grid shows the (svat IDs of the) irrigation locations
39. Click the Inspector and hover over the irrigation areas in the IDF.
By default iMOD only displays parameters for the irrigation svat selected. In MetaSWAP there is the option to abstract water for irrigation from one location and distribute it over a series of surrounding locations. The MetaSWAP inspector can display these relations.
40. Select the box Show irrigation relations.
Now the lower part of the window is active and shows information on both the extraction and irrigation location.
41. Hover over the area and check the irrigation parameters again.
In many real world cases both locations are the same, in some cases the irrigation cells surround the one source like an umbrella as you can see in this example.
The picture below is a synthetic example of such a relation between the irrigation locations and its source.
Figure 11.185: Synthetic example irrigation relations.