ArcGIS TUFLOW Toolbar

From Tuflow
Jump to navigation Jump to search

Introduction

A TUFLOW toolbar is available for ArcGIS 3.0 and newer. This toolbar helps with streamlining the process of creating and editing a TUFLOW model in ArcGIS.

The ArcGIS toolbar can be downloaded from the TUFLOW website:

The download contains the .esriAddinX, a stand alone toolbar add-in to ArcGIS.

Installation

For instructions on how to install the ArcGIS Toolbar please see the following link:

The Utilities: What are they and How to use them

The ArcTUFLOW Tools are intended to help the user with model initiation, setup and development, running, and checking and viewing results:

ArcGIS Toolbar.png

Model Stage Utilities
Start Model Build 1. Configure TUFLOW (Required Initialization Step)

2. Create TUFLOW Folders

Model Build and Development 3. Import Empty (template) TUFLOW Files

4. Insert TUFLOW Attributes
5. Increment Layer
6. Style All TUFLOW Layers
7. Style Selected TUFLOW Layers

Running TUFLOW 8. Run TUFLOW Simulation
Loading and Viewing Results 9. Load Simulation Input Files

10. Label Selected Layer
11. Apply GPKG Layer Names
12. TUPLOT

Miscellaneous 13. About


Configure TUFLOW

ArcGIS Configure.png

The “Configure TUFLOW” tool creates a configuration file that will pre-populate items in other ArcTUFLOW tools based on the map document. The steps for running the configuration tool are outlined below:

  • Open or save a map document before running.
  • Select a TUFLOW Model folder for your model. This can be either the folder that contains the entire TUFLOW model folder structure or the folder that contains the TUFLOW subdirectories. For example, it can be either "D:\projects\Example\TUFLOW" or “D:\projects\Example\”. All of the following tools will use this location.
  • Enter the file path to the TUFLOW executable.
  • Select the projection for the TUFLOW model.
  • If the "Create Folder Structure" check-box is enabled when the tool is run, the standard TUFLOW folder structure is created. A projection layer is saved inside the TUFLOW\model\gis folder and a simple TUFLOW control file (.tcf) is created. This .tcf file is in the TUFLOW\runs folder and is named Create_Empties.tcf.
  • If the "Create Template Files" check-box is enabled a TUFLOW simulation is started with the Create_Empties.tcf as in the input file. This simulation creates a series of template files in the TUFLOW\model\gis\empty folder. All of these template files have projection (CRS) as defined and have the correct GIS attributes for use in TUFLOW modelling. This can be brought into ArcGIS using the Import Empty tool.
  • If the "Tutorial Model" check-box is enabled, the Create_Empties.tcf will run with the "Tutorial Model == ON" command.
  • Select the default GIS format used in the TUFLOW model. If creating empty files, the empty files will be output in this format along with the projection file. The GPKG format is compatible with the TUFLOW 2023-03 Release or later.



Import Empty (template) TUFLOW Files

ArcGIS ImportEmpty.png

The "Import Empty" tool can be used to import new SHP or GPKG files for editing.

  • Ensure the Empty Directory location is correct.
  • Select the desired Empty Type (e.g. 2d_code, 2d_bc). A list and description of available types can be found in Table 2-4 of the 2018 TUFLOW Manual.
  • Specify the run ID for the file. This will be added to the file name as a suffix.
  • Select the object type (points, lines or regions).


The example shown in the image will create a new layer called "2d_code_M01_001_R.shp". This layer will be automatically saved into the TUFLOW\model\gis folder.

The ArcGIS toolbar requires configuring prior to using this tool. Refer to Configure TUFLOW for more instructions.








Insert TUFLOW Attributes

ArcGIS ImportAttributes.png

The "Insert TUFLOW Attributes" tool will insert a TUFLOW attribute template in front of an existing GIS layer. This is useful when transferring data from a database (e.g. council stormwater network) to TUFLOW format.

The steps are:

  • Select the input file (the file to have TUFLOW attributes inserted into).
  • Select the TUFLOW file format.
  • Specify a run ID for the file. This will be added to the name as a suffix.

This tool is best used if Configure TUFLOW has been run prior.






Increment Layer

ArcGIS Increment.png

The tool "Increment Layer" will increment up one or more TUFLOW layers to a new revision number and replace he existing layer in ArcMAP with the same style. Currently the limitation of the tool requires revision numbers to be 3 digits longs e.g. 001.

The steps are:

  • Select the "Source Layer" - the desired TUFLOW layer to be incremented (these can be dragged and dropped from the TOC into the tool window).
  • Select the "Output Folder" - the desired folder for incremented layer to be saved.
  • Specify the "Output Name" - new revision number.
  • Choose to supersede the old layers (these will be placed in a 'SS' folder in the same directory as the model layer).
  • Choose whether to keep the source layer open.






Style All TUFLOW Layers

This button will apply TUFLOW stylings onto all TUFLOW related layers in the TOC.

Style Selected TUFLOW Layers

This button will apply TUFLOW stylings to the selected layer in the TOC.

Run TUFLOW Simulation

ArcGIS Run v2.png
  • Enter the simulation tcf reference
  • Define the path to the TUFLOW executable


The ArcTUFLOW toolbox requires configuring prior to using this tool. Refer to Configure TUFLOW for more instructions.





Load Simulation Input Files

ArcGIS Load.png

This tool loads all input shp files from a model simulation into a common ArcGIS Map window.

The shp files will be loaded using a predefined symbology for common TUFLOW input file types. This is determined based on the prefix of the file name. For example, the symbology for 2d_code and 2d_zsh files are shown below.

ArcTUFLOW Load Simulation File Symbology.JPG

This tool is courtesy of Wood Rodgers, Inc. (www.woodrodgers.com)

Label Selected Layer

This tool will auto label the selected layer in the TOC. If the selected layer is a TUFLOW layer (e.g. 1d_nwk) the tool will automatically apply an expression, displaying useful information about the layer. It can also be used on non-TUFLOW layers, however will only label the first attribute. The user also has the option of changing the label colour from the adjacent drop down box (default is black if no colour is selected).

This tool is useful for reviewing models as well as building.

Apply GPKG Layer Names

This tool will change the layer name to be the same as the layer name within the GPKG database to every open GPKG layer in the workspace. This tool is useful as sometimes when GPKG layers are opened in ArcGIS (depending on how they are opened) they will contain both the database name and layer name e.g. "database - layername". This tool strips the database name from the layer name in the Layers Panel.

If there are open layers that are not GPKG, then it will have no affect of these layer names.

TUPLOT

TUPLOT is a 1D and 2D time series results viewer. A full description on how to use it is below:

About

Displays version of ArcGIS Pro Toolbar.