Laserfiche WebLink
Examples of Use TSTool Documentation <br />6.2.4 Modeling — Using a List File to Automate Time Series Processing (Input = HydroBase, <br />Output = StateMod) <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 illustrates a command file to use a list to read time <br />series from HydroBase and output a StateMod data file. <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 />CreateFromList(ListFile =" structure_ list .txt ",IDCol= l,DataSource =DWR, <br />DataType= "DivTotal ",Interval= Month,InputType= HydroBase, <br />HandleMissingTSHow= IgnoreMissingTS) <br />SetOutputYearType(Calendar) <br />WriteStateMod (TSList= Al1TS,0utputFile= "structure list.stm ") <br />where the list file contains the following: <br /># Structures for which to process data <br /># WDID - State of Colorado Water District Identifier <br /># Name - Structure name (from HydroBase) <br />"WDID ", "Name" <br />0100501,EMPIRE DITCH <br />0100503,RIVERSIDE CANAL <br />0100504,ILLINOIS DITCH <br />6.2.5 Modeling — Processing Frost Dates (Input = HydroBase, Output = StateCU) <br />Frost dates are special time series consisting of four dates per year. The dates correspond to: <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 />These specific dates are currently consistent with the HydroBase and StateCU input types. Older versions <br />of TSTool (before version 06.00.00) treated frost dates as a single time series, where the four components <br />were internally manipulated as dates. The Add () command had a limited number of features supported <br />manipulating frost date time series. However, other commands could not be used to process the time <br />series. Consequently, display, analysis, and manipulation capabilities were limited. <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 />Examples - 6 86 <br />