Labs Basic CMT: Difference between revisions

From CSDMS
(lab on Topoflow with CMT posted)
(Redirect to pymt page)
Tag: Replaced
 
Line 1: Line 1:
==Using the CSDMS Modeling Tool: Runoff Modeling with TOPOFLOW==
[[Image:Alert-yellow.png | center | 50px | Out-of-date page ]]
<br>
This page is out of date.
'''STEP1 Load the TOPOFLOW project'''
Please see the
<br><br>
[[PyMT]]
Once you are in the CSDMS Modeling Tool, it will automatically start up in the CMT Help, for the exercises we will use the ‘CMT Workspace’.
page for information on the Python Modeling Toolkit,
 
the successor to CMT.
• Under the File Menu, choose ‘Open Project’.<br>
• Go to the Terrestrial Group. Open Project: TOPOFLOW + GC2D.<br>
 
You are ready to import examples, adapt and run simulations
We will use the hydrological toolkit called ‘TOPOFLOW’ as an example to explore how CMT works, and what component modeling is all about.
<br>
<br>
'''STEP2 Run and visualize a TOPOFLOW simulation'''
<br><br>
Under the File menu, choose ‘Open Example Configuration’. Here examples of previously wired model simulations are stored. These files are called *.bld files.
 
>> Open the directory for TOPOFLOW. <br>
>> Find the subdirectory 00_Oct_27_2011<br>
>> Click on the ‘bld’ file named: Treynor_June_20_67_Storm_Oct_27_11.bld <br>
 
The Bld file brings up the pre-wired configuration as shown below. The TOPOFLOW component is the driver of this simulation. It needs to get values for all ‘Uses Ports’ on the righthand side of the component, i.e. meteorology, channels, snow…etcetera. The components in the Arena provide this information to the main driver.
[[File:topoflowwiredup.png|800px]]
 
This pre-wired TOPOFLOW simulation models a rainfall events in a small Agricultural Research Service watershed located near Treynor, Iowa. Data from Treynor watershed are ‘classic’ datasets that have become benchmark test cases for hydrological runoff and watershed models. The watershed was ~0.43 km2. Basin geometry parameters we will not be able to change in this hands-on,  but you can normally load a relevant DEM. All parameters that are shown by default in the CMT for this TOPOFLOW Configurations are based on the benchmark data for a measured rainstorm on June 20th, 1967.
 
>> Run this simulation.<br>
>> To get information on your run, go from the workspace to the Job Info space. There your jobs on Beach are listed with their ID’s and you can manage and query them.<br>
>> Highlight your topoflow job.<br>
>> Basic information on this job will be reported in the console.<br>
 
 
[[File:CMTjobinfotab.png|600px]]
<br>
'''Question 1'''
What was the duration of this model simulation?
Why would hydrological models or runoff models not have a fixed time step?
 
'''Question 2'''
What was the maximum precipitation rate for this rainstorm?
What was the maximum discharge at the outlet for this rainstorm?
 
>> To get output from your run, transfer files from Beach to your local machine.<br>
>> Under the CMT tools menu, choose remote file transfer, port files from your Beach account to your local machine.<br>
 
[[File:remotefiletransfer.png|600px]]
<br>
 
>> After running your simulations, you now have the generated output files. The CMT tool generates the  original output files as defined by the model developer. In addition, CMT generates NetCDF files as default format; these can be time-series or grid stacks. You can visualize NetCDF files a.o. with VisIT or with Matlab.
 
More information on VisIT and notes on installation:
[[CMT visualization]]
 
>> Launch VisIT.<br>
>> Under VisIT, choose ‘Open File’ and open ‘June_20_67_0D_Q.nc’. <br>
>> This file will then show up as the Active Source.<br>
>> You can use the Add button to add these variables to your plotting datasets.<br>
>> Once you have added Q, you can use the ‘Draw button’ to plot a curve.<br>
 
[[File:visitfileimport.png|400px]]
<br>
 
'''Question 3'''
What does the hydrograph for the June 20th, 1967 look like?
What does the hydrograph look like in the upper part of the watershed?
Plot both curves and export your figure. Does the maximum discharge match the reported maximum?<br>
 
>> Under VisIT, choose ‘Open File’ and open ‘June_20_67_2D_Q.nc’ <br>
 
'''Question 4'''
Plot up this gridded variable.
Use the play button to play it through the simulation time.
What does the plot show?
 
'''Question 5'''
Why is it useful to simulate single rainstorm events? <br>
 
Sofar you have been running a TOPOFLOW experiment without looking at the model. Ideally you will not want to treat any model like that (ever). Models should not be a ‘black box’. In the next section we look at your options to peak into the machinerie of TOPOFLOW.
 
>> Use the configure buttons to explore the settings of the different components.
>> Use the help button in the lower left side the configuration menu to explore the background information of the different components
 
'''Question 6'''
Can you figure out from the configuration tabbed dialogues, which components are being used and which are not?
 
'''Question 7'''
How is the in-channel water velocity calculated? Please write out the equation.
 
'''Question 8'''
Assume that a reservoir occurs at the Treynor basin most downstream outlet.
Assume you have a delta sedimentation  model.
Could you simulate a small lakehead delta based on the output of TOPOFLOW? If yes, how?  If no, why not?
 
'''Question 9'''
If this TOPOFLOW simulation matches the observed data, can you then consider the model verified? 
(Hint: Oreskes et al., 1994,  “Verification, Validation and Confirmation of Numerical Models in the Earth Sciences”, Science Vol 263, Feb 1994.)

Latest revision as of 15:14, 14 March 2020

Out-of-date page

This page is out of date. Please see the PyMT page for information on the Python Modeling Toolkit, the successor to CMT.