Scripting

Reading and Writing to HEC-DSS Files

Retrieving and storing data from a HEC-DSS file is done through the class HecDss in the hec.heclib.dss package.  HecDss inherits from DSSFile in HecMath and retains all the functionality of that class for backwards compatibility.  It should be noted that HecDss is independent from HEC-DSSVue and is not part of the HEC-DSSVue class structure.  However, so are most of the other classes that are used in scripting, such as the graphics and tabulation classes.

 

The first call that should be made is the static member HecDss.open(string filename), which will return a HecDss object to retrieve and store data, as well as perform math and other functions.

 

You need to import the classes that you use as well as the hec.script package.  To do this, include the follow lines at the beginning of your script:

 

from hec.script import *

from hec.heclib.dss import *

 

More:

HecDss Class

HecDss Retrieve and Store Functions