Difference between revisions of "QGIS ARR to TUFLOW"

From Tuflow
Jump to navigation Jump to search
 
(71 intermediate revisions by 4 users not shown)
Line 1: Line 1:
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 [http://arr.ga.gov.au/arr-guideline| ARR Website] for more information.<br><br>
+
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 [https://arr.ga.gov.au/arr-guideline| ARR Website] for more information.<br><br>
 
__TOC__
 
__TOC__
 
<br>
 
<br>
 
=Getting Started=
 
=Getting Started=
 
===Installation===
 
===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:<br><br>
+
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, please see: <u>[[TUFLOW_QGIS_Plugin#Installation_of_Plugin | QGIS TUFLOW Plugin Installation]]</u>
[[TUFLOW_QGIS_Plugin#Installation_of_Plugin | How to install the TUFLOW plugin]]<br><br>
+
 
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:<br><br>
+
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: <u>[https://docs.qgis.org/3.16/en/docs/training_manual/qgis_plugins/fetching_plugins.html Link to QGIS Documentation - Installing and Managing Plugins]</u><br>
[https://docs.qgis.org/3.16/en/docs/training_manual/qgis_plugins/fetching_plugins.html Link to QGIS Documentation - Installing and Managing Plugins]<br>
 
  
 
===QGIS Version===
 
===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.27t_Working | The Tool Isn't Working]] for information (the solution is most likely to update the plugin rather than reinstall an older version of QGIS).<br><br>
+
The ARR to TUFLOW tool is, for the most part (see note below), a Python tool that runs independently of QGIS. Therefore the tool should not be sensitive to the installed QGIS version, however occasionally QGIS will update the Python version that is packaged with the installation which means there is a small risk that the tool will break between QGIS versions. If the tool does break, please see <u>[[#The_Tool_Isn.27t_Working | The Tool Isn't Working]]</u> for information (the solution is most likely to update the plugin rather than re-install an older version of QGIS).
 +
 
 +
''Note:'' The tool does use QGIS for pre-processing tasks, such as area and centroid calculation as well as reprojection or cartesian to long-lat.
  
<nowiki>**</nowiki>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===
 
===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:<br>
 
Once the TUFLOW plugin is installed, the ARR to TUFLOW tool can be opened by clicking the following icon in the plugin toolbar:<br>
[[File: ARR_to_TUFLOW_toolbar.PNG]]<br><br>
+
<br>
 +
[[File: tuflow_plugin_toolbar_ARR_tool_01a.png]] <br><br>
  
 
=Quickstart=
 
=Quickstart=
Line 21: Line 22:
 
<li> Load a catchment GIS file (e.g. shp file) into QGIS - this can either be a polygon or point layer
 
<li> Load a catchment GIS file (e.g. shp file) into QGIS - this can either be a polygon or point layer
 
<li> Open the '''ARR to TUFLOW''' tool
 
<li> Open the '''ARR to TUFLOW''' tool
<li> Select the GIS catchment layer in '''Input Catchment File''' dropdown box<br>
+
<li> Select the GIS catchment layer in '''Input Catchment File''' dropdown box.<br>
[[File: ARR_dialog_input_catchment_file.PNG | 500px]]<br>
+
[[File: ARR_dialog_input_catchment_file_01a.png]]<br>
<li> Select the attribute field to use as the catchment name in the '''Unique Catchment Identifier Field''' dropdown<br>
+
<br>
[[File: ARR_dialog_unique_catchment_identifier.PNG | 500px]]<br>
+
<li> Select the attribute field to use as the catchment name in the '''Unique Catchment Identifier Field''' dropdown.<br>
<li> Select storm event combinations from the list of magnitudes and durations<br>
+
[[File: ARR_dialog_unique_catchment_identifier_01a.png]]<br>
[[File: ARR_dialog_storm_events.PNG | 350px]]<br>
+
<br>
<li> Choose an output location<br>
+
<li> Select storm event combinations from the list of magnitudes and durations.<br>
[[File: ARR_dialog_output_location.PNG | 500px]]<br>
+
[[File: ARR_dialog_storm_events_01a.png]]<br>
<li> Click '''OK''' and wait for the tool to finish<br>
+
<br>
[[File: ARR_tool_complete_dialog.PNG | 250px]]
+
<li> Choose an output location.<br>
</ol><br><br>
+
[[File: ARR_dialog_output_location_01a.png]]<br>
 +
<br>
 +
<li> Click '''OK''' and wait for the tool to finish.<br>
 +
[[File: ARR_tool_complete_dialog_01a.png]]
 +
</ol>
 +
<br><br>
  
 
=Output=
 
=Output=
 
===Log File===
 
===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.
+
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 grouped together near the bottom of the log file to make it easier to review them.
  
 
===Data Output===
 
===Data Output===
Line 53: Line 59:
  
 
===TUFLOW Output===
 
===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.
+
The following outputs are generated by the utility for input into TUFLOW. Please see the example below on how to use the output files for a model.
 
<ol>
 
<ol>
 
<li> '''TUFLOW Rainfall Inflows'''
 
<li> '''TUFLOW Rainfall Inflows'''
Line 69: Line 75:
  
 
===Example: Using the outputs in a TUFLOW model===
 
===Example: Using the outputs in a TUFLOW model===
* [[QGIS_ARR_to_TUFLOW_Example | Example use of the ARR to TUFLOW tool]]
+
* <u>[[QGIS_ARR_to_TUFLOW_Example | Example use of the ARR to TUFLOW tool]]</u>
 
<br>
 
<br>
  
 
=Additional Options=
 
=Additional Options=
 
===Climate Change===
 
===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:
+
Climate change options can be added by clicking on '''Edit''' under the climate change section. This opens up a table widget that the user can then add/remove climate change scenarios based on the guidance in ARR v4.2. Scenarios added in the table will be displayed in the climate change section (underneath the edit button). Note: each scenario name must be unique and generally the table widget will force unique names. The scenario names will be used throughout the outputs and the user is free to customise the scenario names as they want.<br>
 +
 
 +
The table columns within the table widget are based on ARR guidelines v4.2 and the examples presented in Book 1, Chapter 6. Please note the following assumptions:<br>
 +
* Near-term horizon = 2030
 +
* Medium-term horizon = 2050
 +
* Long-term horizon = 2090
 +
* Temperature Change - Setting this to -1 will adopt the temperature changes output in the climate change part of the ARR datahub download. If a value or zero or greater is set by the user, this will be adopted instead of the datahub values and it will be assumed that these are changes relative to the pre-industrial period. Note: the temperature change will be stopped from going negative within the calculation.
 +
 
 +
 
 +
By adding climate change scenarios, the following outputs will be turned on:
 
* An extra boundary database file: '''bc_dbase_CC.csv'''
 
* An extra boundary database file: '''bc_dbase_CC.csv'''
 
* Climate change inflows will be appended to the end of each event's inflow file
 
* 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.<br><br>
+
* One additional event option will also be added to the event file for each combination of selected climate change scenarios labelled based on the scenario name. 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.
[[File: ARR_dialog_climate_change.PNG | 500px]]<br><br>
+
* The following CSV files will be written to the '''data''' output folder:
[[File: ARR_example_climate_change_rf_inflow.PNG | 650px]] <br><br>
+
** ''<scen_name>_rainfall_factors.csv''
[[File: ARR_example_climate_change_tef.PNG | 300px]]
+
** ''<scen_name>_rainfall_depths.csv''
 +
** ''<scen_name>_losses.csv''<br><br>
 +
[[File: ARR_dialog_climate_change_01a.png]]<br><br>
 +
[[File: ARR_example_climate_change_rf_inflow_01a.png|1200px]] <br><br>
 +
[[File: ARR_example_climate_change_tef_01a.png]]
 
<br><br>
 
<br><br>
 +
 
===Temporal Patterns===
 
===Temporal Patterns===
 
Temporal pattern options can be found by expanding the '''Temporal Patterns''' section in the dialog.
 
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 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
 
* '''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.<br><br>
+
* '''Optional Additional Temporal Patterns''' - Lets the user add additional temporal patterns in a couple of different ways:<br>
[[File: ARR_Dialog_temporal_patterns.PNG | 300px]]<br><br>
+
** The user can choose to add temporal patterns from other temporal pattern regions. 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.
[[File: ARR_example_additional_temporal_patterns_rf_inflow.PNG | 650px]]<Br><br>
+
** The user can choose to add temporal patterns from other temporal pattern bins within the same region. For point temporal patterns, this would add temporal patterns from the 'frequent', 'intermediate', and 'rare' bins. For areal temporal patterns, this would add temporal patterns from other "Area" bins. The "correct" bin will always make up the first 10 temporal patterns (TP01 to TP10).
[[File: ARR_example_additional_temporal_patterns_tef.PNG | 250px]]
+
*** For Areal temporal patterns - The user has the additional option to choose how many additional areal temporal pattern sets to add. The default is 2 as this matches the number of additional point temporal patterns that would be added (but it doesn't necessarily have to be the same). The "Area" bins chosen will be the next closest in order.
<br><br>
+
[[File: ARR_Dialog_temporal_patterns_01a.png]]<br><br>
 +
[[File: ARR_example_additional_temporal_patterns_rf_inflow_01a.png]]<Br><br>
 +
[[File: ARR_example_additional_temporal_patterns_tef_01a.png]]<br><br>
 +
 
 +
===Rainfall===
 +
<b><u>[https://data.arr-software.org/limb_specific LIMB Rainfall Data]</u></b><br>
 +
Since v3.8.2.16 ([[Installing_the_Latest_Development_Version_of_the_TUFLOW_Plugin | development version]]), LIMB data will be used for rainfall depths where available (SEQ specific). The user has the option of selecting the IFD curve from the available sets:
 +
* Enveloped (Default)
 +
* High Resolution
 +
* BOM Resolution
 +
The user also has the option of turning off LIMB data and using BOM 2016 rainfall data instead. If LIMB data is not available, the tool will default to BOM data.<br>
 +
<br>
 +
If the user has selected AEP or durations outside of the provided LIMB data range, the tool will use BOM 2016 rainfall data. If the user has selected AEP or durations within the LIMB data range, but the value is not part of the provided IFD, the tool will interpolate the rainfall depth from the provided LIMB data.<br>
 +
[[File: arr2016_limb_selector_01a.png]]<br><br>
  
 
===Rainfall Losses===
 
===Rainfall Losses===
 +
The following sections summarise the available loss options. Please note, as recommended in ARR2019, <u>[https://data.arr-software.org/ ARR datahub]</u> losses are only intended for rural use. They are not for direct use in urban areas. Furthermore, applications in New South Wales and Victoria should consider the following jurisdiction specific guidance:
 +
* <u>[https://data.arr-software.org/nsw_specific NSW Specific Guidance]</u>
 +
* <u>[https://data.arr-software.org/vic_specific VIC Specific Guidance]</u>
 +
 +
''Note: Since version v3.5 initial loss for durations greater than 72 hrs is assumed to be the same as the initial loss for 72 hrs. Previous to this version, these losses were output as zeros.''<Br>
 +
 
=====Probability Neutral 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.<br><br>
+
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-burst 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.<br><br>
[[File: ARR_dialog_probability_neutral_losses.PNG]]
+
[[File: ARR_dialog_probability_neutral_losses_01a.png]]
 
<br><br>
 
<br><br>
 +
 
=====NSW Continuing Loss=====
 
=====NSW Continuing Loss=====
 
Continuing loss values for NSW will be automatically multiplied by 0.4. This will be reported in the log file as:
 
Continuing loss values for NSW will be automatically multiplied by 0.4. This will be reported in the log file as:
Line 104: Line 144:
 
=====Pre-burst Percentile=====
 
=====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.<br><br>
 
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.<br><br>
[[File: ARR_dialog_preburst.PNG]]
+
[[File: ARR_dialog_preburst_01a.png]]
 
<br><br>
 
<br><br>
 +
 
=====User Defined Losses=====
 
=====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:<br>
 
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:<br>
 
: <tt>IL burst = User IL x IL ARR Prob Neutral / IL ARR Complete Storm</tt><Br><br>
 
: <tt>IL burst = User IL x IL ARR Prob Neutral / IL ARR Complete Storm</tt><Br><br>
[[File: ARR_dialog_user_losses.PNG]]
+
[[File: ARR_dialog_user_losses_01a.png]]
 
<br><br>
 
<br><br>
 +
 
=====Event Independent Continuing Loss=====
 
=====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.
+
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 added since the continuing loss value is (currently) event independent and therefore simplifies the output and also makes editing this value easier.
 
<br>
 
<br>
 +
 
=====Impervious Losses=====
 
=====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.<br><br>
 
The impervious loss value adds the impervious loss values to the materials.csv output. This option only affects the rainfall excess loss approach.<br><br>
[[File: ARR_example_impervious_losses.PNG]]
+
[[File: ARR_example_impervious_losses_01a.png]]
 
<br><br>
 
<br><br>
 +
 
=====TUFLOW Loss Method=====
 
=====TUFLOW Loss Method=====
 
The loss method used by TUFLOW can be changed using the '''TUFLOW Loss Method''' dropdown box:
 
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.
+
* '''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 <u>[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]</u> 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.
 
* '''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.
 
<br>
 
<br>
[[File: ARR_dialog_tuflow_loss_method.PNG]]
+
[[File: ARR_dialog_tuflow_loss_method_01a.png]]
 
<br><br>
 
<br><br>
 +
 
=====Initial Losses For Durations Less Than 1 Hour=====
 
=====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:
 
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)
 
* '''Interpolate to zero''' - will linearly interpolate loss values (assuming a loss value of 0 mm for 0 min)
 +
* '''Log-Interpolate to zero''' - will use a log-linear interpolation (duration will use a log scale) (assuming a loss value of 0 mm for 0 min)
 
* '''Static Value''' - uses a user defined value for all event magnitudes
 
* '''Static Value''' - uses a user defined value for all event magnitudes
 
* '''Use 60 min Losses''' - uses the 60 min loss values
 
* '''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
 
* '''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.
 
* '''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.
 +
* '''Interpolate pre-burst''' - will linearly interpolate pre-burst depths (rather than losses) (assuming a depth of 0 mm for 0 min)
 +
* '''Log-Interpolate pre-burst''' - will use a log-linear interpolation on the pre-burst depths (duration will use a log scale) (assuming a depth of 0 mm for 0 min)
 
<br>
 
<br>
[[File: ARR_dialog_losses_less_than_1h.PNG]]
+
[[File: ARR_dialog_losses_less_than_1h_01a.png]]
 +
<br><br>
 +
<b>An example of the differences in initial losses from a few of the methods:</b><Br>
 +
[[File: arr_to_tuflow_loss_interpolation.png]]
 
<br><br>
 
<br><br>
 +
 +
====Output Complete Storm====
 +
The user can choose to output the complete storm (preburst + design burst) rather than just the design burst by checking on the following option (please see ARR Book 2 Chapter 5 [Section 5.9.9] for more information):<br>
 +
[[File: ARR_complete_storm_checkbox_01a.png]]<br>
 +
The complete storm generated by the tool will be the preburst depth (from the '''Preburst percentile''' extracted from the datahub) plus the design burst. The user will be required to select a preburst temporal pattern from the options listed below. The options below have been included at the request of users and are not a direct reference to any specific methodology outline in ARR. If you would like to see another method included, please email <b><u>[mailto:support@tuflow.com support@tuflow.com]</u></b>.<br>
 +
Currently the ARR to TUFLOW tool supports the following preburst temporal pattern methods:
 +
* '''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.
 +
** If "design burst" is selected, this will cause the pre-burst temporal pattern to use the same temporal pattern number as the design burst (e.g. TP01 design burst will use TP01 pre-burst, TP02 design burst will use TP02 pre-burst, etc.)
 +
The initial loss value output in this method will be the raw storm initial loss value from the datahub with no post processing. Note, the complete storm option and using probability neutral losses are mutually exclusive and aren't able to be used together.<br>
 +
 +
Preburst temporal pattern and duration details are ignored if the "Use Complete Storm" checkbox is not selected.
 +
<br><br>
 +
 +
====Why Is the Tool Outputting Negative Loss Values?====
 +
The tool will output negative loss values when the preburst depth is greater than the storm initial loss. The tool will not floor loss values at zero since the value may be useful in helping the user determine the appropriate course of action. E.g. if IL = -1mm, this  may be considered negligible and can be simply set to zero. An IL = -50mm may be considered significant enough that it simply can't be set to zero and alternate, or sensitivity runs, may need to be carried out, like using a <u>[[#Output_Complete_Storm | Complete Storm]]</u>.
  
 
===Areal Reduction Factors===
 
===Areal Reduction Factors===
Line 143: Line 210:
 
* '''ARF for events < 50% AEP''' - this will calculate ARF values using the same equations used for larger events
 
* '''ARF for events < 50% AEP''' - this will calculate ARF values using the same equations used for larger events
 
<br>
 
<br>
[[File: ARR_dialog_ARF.PNG]]
+
[[File: ARR_dialog_ARF_01a.png]]
 
<br><br>
 
<br><br>
  
Line 151: Line 218:
 
* '''Output Notation''' - users can toggle between '% AEP' and 'yr ARI' output notation.
 
* '''Output Notation''' - users can toggle between '% AEP' and 'yr ARI' output notation.
 
<br>
 
<br>
[[File: ARR_dialog_output_options.PNG]]
+
[[File: ARR_dialog_output_options_01a.png]]
 
<br><br>
 
<br><br>
  
 
===Offline Mode===
 
===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. The files required to process offline are saved as part of the tool's process when pulling from the web:
+
Offline can be used to pass in data that has already been pulled 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 BOM and the ARR datahub. 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
 
* ARR_Web_data_<catchment_name>.txt
 
* BOM_raw_web_<catchment_name>.html
 
* BOM_raw_web_<catchment_name>.html
 
<br>
 
<br>
[[File: ARR_dialog_offline_inputs.PNG]]
+
[[File: ARR_dialog_offline_inputs_01a.png]]
 
<br><br>
 
<br><br>
  
 
=The Tool Isn't Working=
 
=The Tool Isn't Working=
Coming Soon
+
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 <u>[[#Can.27t_access_the_websites | Can't Access the Websites]]</u> 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.
 
<br><br>
 
<br><br>
==Can't access websites==
+
The second step is to ensure you're using the latest version of the QGIS plugin. Occasionally updates to the ARR Datahub will break the tool and this may have already been caught and fixed in the latest update.<Br><br>
For whatever reasons, sometimes the BOM or ARR Datahub websites are down or unable to be accessed by the tool. The below are a set of instructions that can be used as a workaround should this occur:
+
===Issue With The Tool===
*[[ARR_DATAHUB_CANNOT_BE_ACCESSED | ARR datahub website cannot be accessed by the tool]]
+
If there's an issue with the tool, or you are unsure, please contact <u>[mailto:support@tuflow.com support@tuflow.com]</u> for help. Please include a description of the problem, the log file, and the GIS catchment layer with your email.<br><br>
 +
===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:
 +
*<u>[[ARR_DATAHUB_CANNOT_BE_ACCESSED | ARR Datahub website cannot be accessed by the tool]]</u>
 +
<br>
 +
{{Tips Navigation
 +
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]
 +
}}

Latest revision as of 16:27, 21 October 2024

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, please see: QGIS TUFLOW Plugin Installation

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 (see note below), a Python tool that runs independently of QGIS. Therefore the tool should not be sensitive to the installed QGIS version, however occasionally QGIS will update the Python version that is packaged with the installation which means there is a small risk that the tool will break between QGIS versions. 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 re-install an older version of QGIS).

Note: The tool does use QGIS for pre-processing tasks, such as area and centroid calculation as well as reprojection or cartesian to long-lat.

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:

Tuflow plugin toolbar ARR tool 01a.png

Quickstart

  1. Load a catchment GIS file (e.g. shp file) into QGIS - this can either be a polygon or point layer
  2. Open the ARR to TUFLOW tool
  3. Select the GIS catchment layer in Input Catchment File dropdown box.
    ARR dialog input catchment file 01a.png

  4. Select the attribute field to use as the catchment name in the Unique Catchment Identifier Field dropdown.
    ARR dialog unique catchment identifier 01a.png

  5. Select storm event combinations from the list of magnitudes and durations.
    ARR dialog storm events 01a.png

  6. Choose an output location.
    ARR dialog output location 01a.png

  7. Click OK and wait for the tool to finish.
    ARR tool complete dialog 01a.png



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 grouped 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

  1. 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)
  2. Rainfall depths
    • BOM_Rainfall_Depths_<catchment_name>.csv - processed rainfall depths (after ARF factors)
  3. ARF Factors
    • <catchment_name>_ARF_Factors.csv - calculated ARF factors
  4. 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 for input into TUFLOW. Please see the example below on how to use the output files for a model.

  1. 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).
  2. bc_dbase.csv
    • TUFLOW boundary condition database. Setup to point to the RF folder with wildcards applied.
  3. 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)
  4. 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
  5. 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 clicking on Edit under the climate change section. This opens up a table widget that the user can then add/remove climate change scenarios based on the guidance in ARR v4.2. Scenarios added in the table will be displayed in the climate change section (underneath the edit button). Note: each scenario name must be unique and generally the table widget will force unique names. The scenario names will be used throughout the outputs and the user is free to customise the scenario names as they want.

The table columns within the table widget are based on ARR guidelines v4.2 and the examples presented in Book 1, Chapter 6. Please note the following assumptions:

  • Near-term horizon = 2030
  • Medium-term horizon = 2050
  • Long-term horizon = 2090
  • Temperature Change - Setting this to -1 will adopt the temperature changes output in the climate change part of the ARR datahub download. If a value or zero or greater is set by the user, this will be adopted instead of the datahub values and it will be assumed that these are changes relative to the pre-industrial period. Note: the temperature change will be stopped from going negative within the calculation.


By adding climate change scenarios, the following outputs will be turned on:

  • 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 based on the scenario name. 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.
  • The following CSV files will be written to the data output folder:
    • <scen_name>_rainfall_factors.csv
    • <scen_name>_rainfall_depths.csv
    • <scen_name>_losses.csv

ARR dialog climate change 01a.png

ARR example climate change rf inflow 01a.png

ARR example climate change tef 01a.png

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 add additional temporal patterns in a couple of different ways:
    • The user can choose to add temporal patterns from other temporal pattern regions. 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.
    • The user can choose to add temporal patterns from other temporal pattern bins within the same region. For point temporal patterns, this would add temporal patterns from the 'frequent', 'intermediate', and 'rare' bins. For areal temporal patterns, this would add temporal patterns from other "Area" bins. The "correct" bin will always make up the first 10 temporal patterns (TP01 to TP10).
      • For Areal temporal patterns - The user has the additional option to choose how many additional areal temporal pattern sets to add. The default is 2 as this matches the number of additional point temporal patterns that would be added (but it doesn't necessarily have to be the same). The "Area" bins chosen will be the next closest in order.

ARR Dialog temporal patterns 01a.png

ARR example additional temporal patterns rf inflow 01a.png

ARR example additional temporal patterns tef 01a.png

Rainfall

LIMB Rainfall Data
Since v3.8.2.16 ( development version), LIMB data will be used for rainfall depths where available (SEQ specific). The user has the option of selecting the IFD curve from the available sets:

  • Enveloped (Default)
  • High Resolution
  • BOM Resolution

The user also has the option of turning off LIMB data and using BOM 2016 rainfall data instead. If LIMB data is not available, the tool will default to BOM data.

If the user has selected AEP or durations outside of the provided LIMB data range, the tool will use BOM 2016 rainfall data. If the user has selected AEP or durations within the LIMB data range, but the value is not part of the provided IFD, the tool will interpolate the rainfall depth from the provided LIMB data.
Arr2016 limb selector 01a.png

Rainfall Losses

The following sections summarise the available loss options. Please note, as recommended in ARR2019, ARR datahub losses are only intended for rural use. They are not for direct use in urban areas. Furthermore, applications in New South Wales and Victoria should consider the following jurisdiction specific guidance:

Note: Since version v3.5 initial loss for durations greater than 72 hrs is assumed to be the same as the initial loss for 72 hrs. Previous to this version, these losses were output as zeros.

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-burst 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.

ARR dialog probability neutral losses 01a.png

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.

ARR dialog preburst 01a.png

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

ARR dialog user losses 01a.png

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 added 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.

ARR example impervious losses 01a.png

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.


ARR dialog tuflow loss method 01a.png

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)
  • Log-Interpolate to zero - will use a log-linear interpolation (duration will use a log scale) (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.
  • Interpolate pre-burst - will linearly interpolate pre-burst depths (rather than losses) (assuming a depth of 0 mm for 0 min)
  • Log-Interpolate pre-burst - will use a log-linear interpolation on the pre-burst depths (duration will use a log scale) (assuming a depth of 0 mm for 0 min)


ARR dialog losses less than 1h 01a.png

An example of the differences in initial losses from a few of the methods:
Arr to tuflow loss interpolation.png

Output Complete Storm

The user can choose to output the complete storm (preburst + design burst) rather than just the design burst by checking on the following option (please see ARR Book 2 Chapter 5 [Section 5.9.9] for more information):
ARR complete storm checkbox 01a.png
The complete storm generated by the tool will be the preburst depth (from the Preburst percentile extracted from the datahub) plus the design burst. The user will be required to select a preburst temporal pattern from the options listed below. The options below have been included at the request of users and are not a direct reference to any specific methodology outline in ARR. If you would like to see another method included, please email support@tuflow.com.
Currently the ARR to TUFLOW tool supports the following preburst temporal pattern methods:

  • 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.
    • If "design burst" is selected, this will cause the pre-burst temporal pattern to use the same temporal pattern number as the design burst (e.g. TP01 design burst will use TP01 pre-burst, TP02 design burst will use TP02 pre-burst, etc.)

The initial loss value output in this method will be the raw storm initial loss value from the datahub with no post processing. Note, the complete storm option and using probability neutral losses are mutually exclusive and aren't able to be used together.

Preburst temporal pattern and duration details are ignored if the "Use Complete Storm" checkbox is not selected.

Why Is the Tool Outputting Negative Loss Values?

The tool will output negative loss values when the preburst depth is greater than the storm initial loss. The tool will not floor loss values at zero since the value may be useful in helping the user determine the appropriate course of action. E.g. if IL = -1mm, this may be considered negligible and can be simply set to zero. An IL = -50mm may be considered significant enough that it simply can't be set to zero and alternate, or sensitivity runs, may need to be carried out, like using a Complete Storm.

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


ARR dialog ARF 01a.png

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.


ARR dialog output options 01a.png

Offline Mode

Offline can be used to pass in data that has already been pulled 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 BOM and the ARR datahub. 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


ARR dialog offline inputs 01a.png

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. Occasionally 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
Go-up.png Back to TUFLOW QGIS Plugin Main Page