Laserfiche WebLink
Examples of Use TSTool Documentation <br />6.2.4 Modeling – Using a List File to Automa te Time Series Processing (Input=HydroBase, <br />Output=StateMod) <br /> <br />It may be desirable to read a file containing a list of station/structure identifiers and process the <br />corresponding time series. The following example illus trates a command file to use a list to read time <br />series from HydroBase and output a StateMod data file. <br /> <br /># <br /># Example to illustrate how a delimited list of location identifiers can be used <br /># to create time series identifiers for processing. This example creates <br /># time series identifiers to read from the State of Colorado's HydroBase, and <br /># outputs to a StateMod model file. <br /># <br />CreateFromList(ListFile="structure_list.txt",IDCol=1,DataSource="DWR",DataType="DivTotal",In <br />terval="Month",InputType="HydroBase",IfNotFound=Ignore) <br />SetOutputYearType(OutputYearType=Calendar) <br />WriteStateMod(TSList=AllTS,OutputFile="structure_list.stm") <br />ExamplesOfUse/CreateFromList/Example_CreateFromList <br /> <br />where the list file contains the following: <br /> <br /># <br /># Structures for which to process data <br /># <br /># WDID - State of Colorado Water District Identifier <br /># Name - Structure name (from HydroBase) <br /># <br />"WDID","Name" <br />0100501,EMPIRE DITCH <br />0100503,RIVERSIDE CANAL <br />0100504,ILLINOIS DITCH <br /> <br />6.2.5 Modeling – Processing Frost Dates (Input=HydroBase, Output=StateCU) <br /> <br />Frost dates are special time series consisting of four dates per year. The dates correspond to: <br /> <br />• <br />• <br />• <br />• <br />Last day in spring that the temperature was 28 ° F <br />Last day in spring that the temperature was 32 ° F <br />First day in fall that the temperature was 32 ° F <br />First day in fall that the temperature was 28 ° F <br /> <br />These specific dates are currently consistent with the State of Colorado’s HydroBase and StateCU input <br />types. Older versions of TSTool (before version 06.00.00) treated frost dates as a single time series, <br />where the four components were inte rnally manipulated as dates. The Add() command had a limited <br />number of features supported manipulating frost date time series. However, other commands could not <br />be used to process the time series. Consequently , display, analysis, and manipulation capabilities were <br />limited. <br /> <br />As of TSTool version 06.00.00, TSTool handles each of the above data items as separate data types and <br />time series, internally treating the values as Julian days from January 1. The StateCU input type, which is <br />used when reading and writing frost date files, converts between Julian days and Month/Year in the file. <br />By handling as four separate numerical time series, all of TSTool’s manipulation tools can be used to fill <br />and analyze frost dates. This does require each time series to be specified, whereas before the four were <br />internally handled with a single time series identifie r. Because frost dates are internally treated as <br />numerical Julian days, using the generic numerical Add() command functionality may result in <br />Examples - 6 86