Laserfiche WebLink
TSTooI Documentation <br />1. The parameter names are included in the command, in order to make the command more readable. <br />2. Because the parameter name is included, the parameters can generally be in any order. The command <br />editor dialogs will enforce a default older. <br />3. Parameters that have default values can be omitted from the parameter list, shortening commands. <br />4. New parameters can be added over time, without requiring parameter order to change in existing <br />commands. <br />The above notation is being used for new commands and older commands are being updated to the new <br />syntax as time allows. Command editor dialogs will update old commands to the new syntax and the <br />processing code will recognize old and new command syntax. The Command Reference illustrates the <br />current command syntax. <br />The following sequence occurs when processing commands: <br />1. Parse the command. A time series identifier or command is parsed to determine how to execute the <br />command. Example commands are shown below. If the command is a general command, the action <br />is taken and a new command is read in step 1 (general commands can be specified multiple times to <br />change properties throughout a run). If the command results in reading or creating a time series, steps <br />2 - 4 are executed. If a command is a time series manipulation command, step 4 is executed. <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 />2. Read Time Series. TSTooI recognizes that certain commands should read a new time series and will <br />perform the appropriate action. For example, in the above example, the time series identifier <br />0 8 2 3 5 3 5 0. USGS . S t re amf 1 ow . Month~HydroBa s e indicates that the corresponding time <br />series should be read from a HydroBase database (and since the full identifier is specified, no alias is <br />assigned). The identifier input type is used to determine how to read the time series. Unless the <br />setQueryPeriod () command has been used, the entire time series period is read in this step <br />because data filling steps may require the full period (e.g., to determine regression relationships or <br />long-term monthly average). <br />Commands that do not cause a time series to be read (but instead to be manipulated) are described in <br />step 4. <br />If the input type, and if needed, input name, are specified in the identifier, they are only used in the <br />initial read. Additional manipulation commands only use the first five parts of the identifier or the <br />time series alias to identify the time series. If the same time series needs to be read from two input <br />types (e.g., to compare whether a time series was properly loaded into a database from a file), use a <br />different time series alias for each time series to uniquely identify each time series. <br />At the end of this step, a new time series will exist in memory. <br />3. Compute Data Limits. The time series data limits are computed because they may be needed later <br />for filling. This information includes the long-term monthly averages. These limits are referred to as <br />the original data limits. <br />4. Access and Manipulate Time Series. Commands that manipulate time series (fill, add, etc.) do not <br />read the time series or make another copy. Instead, time series that are in memory are located and <br />Introduction - 6 <br />