6. TPC
6.1 Loading¶
TPC files can be loaded by dragging and dropping the .tpc file into the QGIS Map Canvas from a file explorer or from the Browser Panel. TUFLOW Viewer will automatically load the GIS layers into the workspace. The GIS layers are directly tied to the TPC result, and the result can be closed by removing the relevant GIS layers from the QGIS project.
6.2 Reference Time¶
The reference time determines the isodate values shown for the "Animation Range" in the Temporal Controller window. If the TPC result does not have an inherent reference time, the following hierarchy is used to set the reference time:
- If a result with an inherent reference time is added to the workspace, or exists in the workspace already, then the reference time of the TPC result will be updated to match the other reference time.
- Given no other source, TUFLOW Viewer will default to '1990-01-01 00:00:00'.
There is currently no method of changing the reference time of the TPC result within QGIS. However, it is possible to set the reference time manually in the TPC prior to loading the results into QGIS. This can be done by adding the following line to the TPC file:
Reference Time == YYYY-MM-DD hh:mm:ssYYYY-MM-DD hh:mm:ss
Note: This method only sets the reference time if the GIS layers do not have their own reference time. For example, the GPKG time series format has a reference time within the GIS layer, and this will override the reference time set in the TPC file. This does not refer to the GPKG GIS format in general, but specifically the GPKG time series format available as an output from TUFLOW.
6.3 Plotting¶
The TPC result format is supported in the following plot types:
Time Series Plot
Section Plot
The TPC result only supports plotting using the selection tool. See the Plot Window documentation for more information on plotting.
Within the Section Plot, the generated long sections can be limited to a section of channels by selecting an upstream and downstream channel. It is also possible to select more than two channels, as long as one of the selected channels is downstream of all the other selected channels (this will be treated as multiple branches).