Download page Task 4 Using a Script to Create a Plot in HEC-DSSVue.
Task 4 Using a Script to Create a Plot in HEC-DSSVue
This task demonstrates how to use a script to create the plot from tasks 1 and 2. Although the script runs without modification, you will have the opportunity to explore changing the script to produce the plot of your choice.
NOTE:The script expects the sample DSS file to be in theC:\Class\DSS\Plotting Capabilitiesdirectory,
Open the sample.dss filein the workshop directory.
Go to the Tools menu and choose Script Editor.
Create a new script namedPlotExampleand populate it with the contents of thePlotScript.txtfile in the workshop directory.
Run the script. It should create plot as shown below.
The script also creates an image file in the workshop directory. View the image file.
Try to answer the following questions by looking at the script.
Question 1.How does the script get the DSS file name?
Question 2. What are the viewport weights used in the script?
Question 3.What is the value passed to thesetReversed()method for the precip axis?
Question 4.What is the specified size of the plot image fileReservoirPlot.pnggenerated by the script?
Modify the script by replacing some of the line and fill properties in the script with those listed in the various property categories.