QGIS ARR to TUFLOW
The ARR to TUFLOW utility has been developed to help users set up a TUFLOW model that uses Australian Rainfall and Runoff (ARR) input parameters and the Australian Bureau of Meteorology (BOM) rainfall by automating the collection and processing of the data. The inputs and outputs of the tool are explained in detail below. Note: this tool helps with data processing, however is not a substitute to reading ARR. Similarly this wiki page discusses the use of the tool and the options, however context should be derived from ARR directly. Please see the ARR Website for more information.
Getting Started
Installation
The ARR to TUFLOW tool is a free tool that comes as part of the TUFLOW plugin in QGIS. For instructions on how to install the plugin, read the following wiki page:
How to install the TUFLOW plugin
There are also instructions on installing plugins in the QGIS documentation - if you choose to follow the QGIS documentation, the plugin is called "TUFLOW" in the repository:
Link to QGIS Documentation - Installing and Managing Plugins
QGIS Version
The ARR to TUFLOW tool is, for the most part**, a Python tool that runs independently of QGIS. Therefore the installed QGIS version should not be a significant factor, however occasionally QGIS will update the Python version in the installation. This does present a small risk that the tool will break with QGIS version, although it's considered unlikely (the risk of the tool being broken by updates to the ARR datahub would be higher). If the tool does break, please see The Tool Isn't Working for information (the solution is most likely to update the plugin rather than reinstall an older version of QGIS).
**The tool does use QGIS for pre-processing tasks, such as area and centroid calculation as well as reprojection or cartesian to long-lat conversion.
Opening The ARR to TUFLOW Tool
Once the TUFLOW plugin is installed, the ARR to TUFLOW tool can be opened by clicking the following icon in the plugin toolbar:
Quickstart
- Load a catchment GIS file (e.g. shp file) into QGIS - this can either be a polygon or point layer
- Open the ARR to TUFLOW tool
- Select the GIS catchment layer in Input Catchment File dropdown box
- Select the attribute field to use as the catchment name in the Unique Catchment Identifier Field dropdown
- Select storm event combinations from the list of magnitudes and durations
- Choose an output location
- Click OK and wait for the tool to finish
Output
Log File
A log file (<catchment_name>_log.txt) will be written to the output folder. The log file will contain all WARNING and ERROR messages as well as logged inputs and processing steps. It's recommended to check the log file after running the tool for any warning or error messages. Most warning messages will be collated and written together near the bottom of the log file to make it easier to review them.
Data Output
The following outputs are located in the folder <output_folder>\data
- Raw BOM and ARR Datahub outputs
- ARR_Web_data_<catchment_name>.txt
- BOM_raw_web_<catchment_name>.html
- Areal_<TP_Zone>_Increments.csv (Areal temporal patterns)
- Rainfall depths
- BOM_Rainfall_Depths_<catchment_name>.csv - processed rainfall depths (after ARF factors)
- ARF Factors
- <catchment_name>_ARF_Factors.csv - calculated ARF factors
- Storm Burst Rainfall Losses
- <catchment_name>_Burst_Initial_Loss.csv - calculated Storm Burst Initial Rainfall Losses (Complete Storm Initial Loss - Preburst Rainfall Depth)
TUFLOW Output
The following outputs are generated by the utility in TUFLOW format. Please see the example below on how to use the output files for a model.
- TUFLOW Rainfall Inflows
- The rainfall inflows are output in the following location <output_folder>\rf_inflows. This output folder is where all the direct rainfall inflows that would be used in the TUFLOW model are output. An inflow file is generated for each event magnitude - duration combination. All available temporal patterns are included in a single file (including climate change options).
- bc_dbase.csv
- TUFLOW boundary condition database. Setup to point to the RF folder with wildcards applied.
- event_file.tef
- TUFLOW Event File. Setup with wildcards applied. To keep the file names from becoming overly long and complicated, Climate Change scenarios are labelled as CC1, CC2.. etc. These correspond to the combinations of climate change scenarios requested by the user e.g. 2090_8.5 (climate change year: 2090, RCP: 8.5)
- soil_infiltration.trd or rainfall_losses.trd - the name of the file will be dependent on the selected loss method, but they are essentially the same file
- This file is a TUFLOW Read File (.trd) that contains variable initialisation for initial and continuing loss values
- soils.tsoilf or materials.csv - which file is output will be dependent on the selected loss method
- soils.tsoilf - rainfall loss file for the infiltration loss method
- materials.csv - rainfall loss file for the rainfall excess method
Example: Using the outputs in a TUFLOW model
Additional Options
Climate Change
Climate change options can be added by checking on a combination of climate change years and Representative Concentration Pathways (RCP) in the dialog. Selecting at least one climate change scenario will output:
- An extra boundary database file: bc_dbase_CC.csv
- Climate change inflows will be appended to the end of each event's inflow file
- One additional event option will also be added to the event file for each combination of selected climate change scenarios labelled as CC01, CC02, CC03,... etc.. It is intended that the climate change scenarios would be treated as a separate event (e1 = magnitude, e2 = duration, e3 = temporal pattern, e4 = climate change scenario) however the output files can easily be manipulated by the user to configure the model differently.
Temporal Patterns
Temporal pattern options can be found by expanding the Temporal Patterns section in the dialog.
- Manually Specify Point Temporal Patterns (csv) - lets the user specify the point temporal patterns which is expected to be in the ARR datahub format
- Manually Specify Areal Temporal Patterns (csv) - lets the user specify the arealtemporal patterns which is expected to be in the ARR datahub format
- Optional Additional Temporal Patterns - lets the user specify additional temporal pattern zones which will be included in the inflow files. This is only if the user wishes to included additional temporal patterns. The temporal patterns from the catchment location (taken at the catchment centroid) will always be included. The additional temporal patterns will be included in the inflow files and added to the event file.
Rainfall Losses
Probability Neutral Losses
Probability neutral losses can be toggled on / off in the dialog (default is on). If 'on' this option will use probability neutral losses for the design burst initial loss rather than using the storm initial loss and pre-purst depths. If probability neutral losses are not available in the catchment area, then the method will automatically revert to using the storm initial loss). Currently this option cannot be used in conjunction with the complete storm option.
NSW Continuing Loss
Continuing loss values for NSW will be automatically multiplied by 0.4. This will be reported in the log file as:
- "Catchment is in NSW, multiplying Datahub continuing loss by 0.4"
Pre-burst Percentile
The pre-burst percentile used to calculate design burst initial loss, or for pre-burst rainfall depth for the complete storm option, can be changed using the dropdown box in the dialog.
User Defined Losses
Users can use their own rainfall loss values. The initial loss value will be treated as a complete storm value and not just for the design burst. For most regions, the design burst loss will be calculated my removing the pre-burst depth from the input loss value. If probability neutral losses are available, the burst initial loss will be calculated using the following equation:
- IL burst = User IL x IL ARR Prob Neutral / IL ARR Complete Storm
Event Independent Continuing Loss
The event independent continuing loss only affects how the TUFLOW output files are written. This option will remove the continuing loss variable and will instead input the value directly. Ths option was addeed since the continuing loss value is (currently) event independent and therefore simplifies the output and also makes editing this value easier.
Impervious Losses
The impervious loss value adds the impervious loss values to the materials.csv output. This option only affects the rainfall excess loss approach.
TUFLOW Loss Method
The loss method used by TUFLOW can be changed using the TUFLOW Loss Method dropdown box:
- Infiltration (soil file) - will output files for the infiltration approach in TUFLOW. This approach in TUFLOW applies the total rainfall to the 2D grid and ponded water in the 2D domain can then infiltrate based on the underlying soil type and impervious fraction. See TUFLOW Manual for more information.
- Rainfall Excess (material file) - will output files for the rainfall excess approach in TUFLOW. This approach removes the losses from the rainfall inflow prior to application so only excess rainfall is added to the model.
Initial Losses For Durations Less Than 1 Hour
This selects the method for determining intial loss values for events less than 1 hr in duration:
- Interpolate to zero - will linearly interpolate loss values (assuming a loss value of 0 mm for 0 min)
- Static Value - uses a user defined value for all event magnitudes
- Use 60 min Losses - uses the 60 min loss values
- Rahmen et al 2002 - uses an equation determined by a study conducted by Rahmen et all in 2002
- Hill et al 1996:1998 - uses an equation determined by a study conducted by Hill et all 1996:1998. This requires the user to provide a mean annual rainfall value.
Output Complete Storm
Checking on the following option will output the complete storm (preburst + design burst).
The tool will use the preburst depth from the Preburst percentile option and the user will be required to select a preburst temporal pattern from the following options:
- Constant Rate - This will apply the preburst depth equally over a given time period. The time period can be specified as an absolute time (either as minutes or hours) or proprotional to the design storm e.g. a proportional value of 0.5 will apply a 30 min preburst to a 1 hr storm and a 15 min preburst to a 30 min storm.
- Temporal Pattern - This will apply the preburst depth using a temporal pattern obtained from the datahub for a given duration. The preburst duration can either be an absolute time or be proportional to the design storm. The user will need to select which temporal pattern to use (e.g. TP01, TP02,... TP10). Note: there is a minimum preburst duration of 10 min for this method.
Areal Reduction Factors
Areal reduction factor options can be changed in the ARF section:
- Calculate Area - will calculate the catchment area using the GIS feature in QGIS. For point objects, this will be set to zero and no ARF will be applied (i.e. a value of 1.0)
- User Area - will let the user define the area. This can either be done by selecting an attribute field that contains the catchment area, or by entering a value. All user inputs will be assumed to be in square km.
- Minimum ARF - this value sets a floor for the calculated ARF values
- ARF for events < 50% AEP - this will calculate ARF values using the same equations used for larger events
Additional Output Options
Additional output options include:
- Output Format - can choose to output in either csv or ts1 format. Ts1 files will be quicker to read in by TUFLOW, however the difference may not be substantial depending on how many are being read in. TUFLOW will also use .xf files by default which means that the raw data is only processed if there is a change, and subsequent runs will not suffer from any slow down from having to read csv files.
- Output Notation - users can toggle between '% AEP' and 'yr ARI' output notation.
Offline Mode
Offline can be used to pass in data that has already been pull from the ARR datahub and BOM. This can be useful if the user would like to make use of new features in the tool, however would like to ensure they are getting consistent results with previous data that was pulled from the web (this may be an issue as both the datahub and BOM rainfall are live sites that may be updated as new data becomes available). The files required to process offline are saved as part of the tool's process when pulling from the web. Currently offline mode doesn't support areal temporal patterns directly, however this can easily be added by using the manually specify areal temporal pattern option:
- ARR_Web_data_<catchment_name>.txt
- BOM_raw_web_<catchment_name>.html
The Tool Isn't Working
The first step in identifying the problem is to check the log file. The issue may be something simple like:
- one of the files the tool is trying to write to is locked by a process or user (e.g. one of the outputs is open in Excel)
- the tool can't access a network location
- there is no internet connection
- the ARR datahub or BOM is down (see Can't Access the Websites section below)
A useful check if you're unsure if the issue is with the tool or with something else (like the Datahub), is to check if you can manually access and pull data from the Datahub for your catchment site.
The second step is to ensure you're using the latest version of the QGIS plugin. Occassionaly updates to the ARR datahub will break the tool and this may have already been caught and fixed in the latest update.
Issue With The Tool
If there's an issue with the tool, or you are unsure, please contact support@tuflow.com for help. Please include a description of the problem, the log file, and the GIS catchment layer with your email.
Can't access the websites
Sometimes the BOM or ARR Datahub websites are down or unable to be accessed by the tool (e.g. sometimes to manage traffic, the Datahub server will limit, or disallow scraping). The below are a set of instructions that can be used as a workaround should this occur:
Up |
---|
Back to TUFLOW QGIS Plugin Main Page |