System downsizing for computing time reduction

Aus TALSIM Docs
Diese Seite ist eine übersetzte Version der Seite Systemverkleinerung zur Rechenzeitverkürzung und die Übersetzung ist zu 100 % abgeschlossen sowie aktuell.
Sprachen:

Especially gridded models in TALSIM-NG often include many system elements and time series. A large number of system elements and time series means a long calculation time. To shorten the calculation time and for easier handling, it may be necessary to reduce the size of the model system. For example, during calibration, it is important to quickly obtain results for the specific sub-catchment without having to compute the entire system for each calibration run. The downscaling of a grid-based model is explained in the following.

Approach

  1. Simulate project in the TALSIM-NG GUI so that the time series are stored locally in the project folder and do not have to be obtained from the server for each simmulation. Once the simulation is complete, the time series are stored in C:\Talsim-NG\Customers\[ProjektName]\projectData\[UserName]\dataBase\[UserName]_zre
    Die Text passages in the path in square brackets depend on the user and the project.
  2. Export the data set to the ASCII format.
  3. Change the path in the EXT-File. The path must lead to the folder where the time series are located.
    Paths in the EXT that point to the time series folders
  4. In this step, a list of the keys that are relevant for the downsized system is created. The list should be created in Excel. It must contain all keys of the system elements (sub-basin, transport reach, point source etc.) that are located in the subsystem under consideration. There are two ways to create the list:
    1. In the user interface, select the last transport element of the sub-basin and use Right click - Select upstream elements to select all system elements above. Then open System - Edit element - Sub-Basin in the toolbar and copy the list of keys. Afterwards, the process must be repeated for all other system element types present in the sub-area.
    2. If the model has been created with Talsim.GridIO and the system has been transferred to a GIS project as described in Load Talsim.GridIO files into GIS project the relevant elements can also be obtained via the attribute tables of the cells and transport elements.
  5. Copy and paste SYS-File into Excel without specifying a separator.
  6. Using MID() the key can be extracted from each SYS line in Excel.
    Search for the rows containing relevant system elements in Excel
  7. Using MATCH() or VLOOKUP() and a filter in Excel, only the relevant SYS rows can be displayed.
  8. In the last step, the manipulated SYS lines are copied to the SYS-Datei eingefügt

Steps 5 to 8 can also be performed using scripting languages such as Python or R.