Laserfiche WebLink
Examples of Use TSTooI Documentation <br />5. Use the Results and Tools menus to view the time series or the File... Save... Time Series As menus <br />to export as files. For example, display a line graph (using Results... Graph - Line) and then view <br />the time series as a summary or table. <br />6. Go back to the Commands list and use the Commands menu to manipulate time series. For <br />example: <br />• Insert a Fill Interpolate O command to fill data <br />• Insert a Cumulate() or RunningAverage O command to transform the data <br />7. Repeat steps 4 — 5 to process and view time series. <br />6.1.2 General — Reproducing an Analysis with a Command File <br />To reproduce an analysis, save the commands shown in the Commands list to a command file and then <br />reload and run the commands later. For example, assuming that steps similar to the previous section have <br />been executed: <br />1. Use the File... Save... Commands As menu to save the commands. It is recommended that command <br />files be saved with a file extension .TSTooI. <br />2. Exit TSTooI and restart (alternatively, clear the commands using the Clear Commands button). <br />3. Use File... Open... Command File. Select the file that you previously saved. <br />4. Then run the commands by pressing the Run All Commands button. Display the results using the <br />Results menu. <br />As the above example shows, reproducing an analysis consists of saving a command file that can be <br />reused later. The main complications in this approach are that the environment in which the commands <br />are run may change over time. For example if using a HydroBase database, the database version, ODBC <br />data source name, database host, or working directory may be differ between computers. It is <br />recommended that commands use directories relative to a working directory (the folder where the <br />command file is saved) and that the working directory is defined consistently on different computers that <br />will use the commands. Using paths relative to the working directory will consequently allow command <br />files to be portable. TSTooI will internally set the working directory that the directory where a command <br />file is opened or saved. <br />6.2 Model Data Processing Examples <br />Most computer models require data that adhere to a consistent format. TSTooI facilitates processing <br />model data files with features that: <br />Allow a specific period of record to be output <br />Fill missing data <br />Produce time series in a specific order <br />The following examples illustrate how to use TSTooI to process model data. <br />6.2.1 Modeling — Preparing Model Files Using a Command File <br />To prepare model files, multiple commands will usually process numerous time series. Modelers often <br />run TSTooI in batch mode from a command shell using a command like: <br />Examples - 2 82 <br />