Laserfiche WebLink
TSTooI Documentation <br />manipulated. The following example illustrates how the time series identified by <br />08235350 . USGS . Streamf low .Month has its data values modified by adding the data from the <br />time series identified by 0 8 2 3 6 0 0 0. USGS . S t re amf 1 ow .Month. <br /># Example commands <br />08235350.USGS.Streamflow.Month-HydroBase <br />08236000.USGS.Streamflow.Month-HydroBase <br />add (08235350.USGS.Streamflow.Month,IgnoreMissing,08236000.DWR.Streamflow.Month) <br />08235350.USGS.Streamflow.Month-HydroBase <br />To locate a time series so that it can be modified, TSTooI first checks the alias of known time series <br />(those that have been defined in previous commands) against the current time series of interest <br />(08235350 . USGS .Streamflow. Month, the first argument of the add O command) ,assuming <br />that this string is an alias. If the alias is not found, it checks the full identifier of known time series <br />against the current time series of interest. In this example, time series <br />08235350 . USGS .Streamflow .Month was read in the first step and is therefore found as a <br />match for the identifier. Similarly, the second time series in the command <br />(08236000 . USGS .Streamflow .Month) is found and is used to process the command, resulting <br />in a modification of the first time series. Sequential manipulations of the same time series can <br />occur (e.g., fill by one method, then fill by another). <br />To locate time series in memory, TSTooI looks through the list of time series, searching backwards. <br />In this way, it is possible to use the same identifier more than once in a command file while allowing <br />localized processing of each time series. In the above example, the time series identified by <br />08235350 . USGS .Streamflow . Month~HydroBase is read twice, once to be acted on by the <br />add () command, and once with no manipulation (e.g., to compare the "before" and "after"). <br />During processing, extra time series can accumulate and will be present during output steps. There <br />are two ways to indicate that a time series should only be used temporarily: <br />Use the free O command to free time series that are no longer needed. This removes the time <br />series from memory. See also the deselectTimeSeries O and selectTimeSeries ( ) <br />commands. <br />Use the TEMPTS notation in commands that support it. For example, the f illRegression ( ) <br />command requires a dependent (to be filled) and independent (data for filling) time series. <br />Because it may not be desired to output the independent time series, it can be treated as a <br />temporary time series. The edit dialog for the f i 11Regression O command allows you to <br />right click on the independent time series and convert it to a TEMPTS. This keyword tells <br />TSTooI to read the time series for the command and then free the time series as soon as it has <br />been used. Not all commands accept the TEMPTS notation -use the command editors to create <br />supported commands. <br />Note that when editing commands, you typically select identifiers for time series that have <br />been defined to that point in the commands list. If TEMPTS is used, you will need to add <br />the time series before the command and then remove the time series after the TSTooI <br />command editor has found the time series for use with the TEMPTS notation. <br />Alternatively, edit the command manually to bypass the editor's help. <br />Introduction - 7 <br />