Laserfiche WebLink
TSTool Documentation <br /> Introduction - 11 <br />08235350.USGS.Streamflow.Month~HydroBase <br /> <br />2. Read or c reate t ime s eries. TSTool recognizes that certain commands should read or create a <br />new time series and will perform the appropriate action. For example, in the above example, the <br />time series identifier 08235350.USGS.Streamflow.Month~HydroBase indicates t hat <br />the corresponding time series should be read from a HydroBase database . The input type in the <br />identifier (information after the ~) is used to determine how to read the time series. By default, <br />the entire time series will be read unless the SetInputPer iod() or SetOutputPeriod() <br />commands have been specified . <br />a. Read data. If the input type, and if needed, input name, are specified in the identifier, <br />they are used to read the data . Time series properties such as units are assigned . <br />b. Compute d ata l imits. T he time series data limits are computed because they may be <br />needed later for filling. This information includes the long -term monthly averages. <br />These limits are referred to as the original data limits. <br />c. Save time series in processor. The time series that are read or created are managed by <br />the processor, using the TSID and alias. The time series can then be manipulated by <br />other commands, as per the following step. <br /> <br />3. Manipulate time series or other data . Commands that manipulate time series (fill, add, etc .) do <br />not automatically read the time series or make another copy. Instead, time series that are in <br />memory are located using the TSID or alias and are manipulated as per the command <br />functionality . The following example illustrates how the time series ide ntified by <br />08235350.USGS.Streamflow.Month has its data values modified by adding the data from <br />the time series identified by 08236000.USGS.Streamflow.Month. <br /> <br /># Example commands <br />08235350.USGS.Streamflow.Month~HydroBase <br />08236000.DWR .Streamflow.Month~HydroBas e <br />A dd(TSID=”08235350.USGS.Streamflow.Month ”,HandleMissingHow=IgnoreMissing,TSList <br />=SpecifiedTSID,AddTSID=”08236000.DWR.Streamflow.Month ”) <br />08235350.USGS.Streamflow.Month~HydroBase <br /> <br />To locate a time series so that it can be modified, TSTool first checks the alias of time series <br />(those that have been read or created in previous commands) against the current time series of <br />interest (TSID=”0 8235350.USGS.Streamflow.Month ”), assuming that this string is an <br />alias . If the alias is not found, it checks the full iden tifier of known time series against the current <br />time series of interest. In this example, time series 08235350.USGS.Streamflow.Month <br />was read in the first step and is therefore found as a match for the identifier. Similarly, the <br />second time series in the command (08236000.USGS.Streamflow.Month ) is found and is <br />used to process the command, resulting in a modification of the first time series. Sequential <br />manipulations of the same time series can occur (e.g., fill by one method, then fill by another). <br /> <br />TSTo ol commands generally use the TSList parameter to locate time series in memory, where <br />the default value depends on the command. For example, TSList=AllTS will process all time <br />series . For commands that require a single input time series, TSTool often wil l default to <br />TSList=LastMatchingTSID , which finds the first time series prior to the current command. <br />I t is possible to create more than one time series with the same identifier while allowing localized <br />processing of each time series . For example, the ti me series identified by <br />08235350.USGS.Streamflow.Month~HydroBase is read twice, once to be acted on by <br />the A dd() command, and once with no manipulation (e.g., to compare the "before" and "after"). <br />23