Difference between revisions of "TUFLOW to GIS"

From Tuflow
Jump to navigation Jump to search
 
(81 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
=Introduction=
 
=Introduction=
The TUFLOW_to_GIS.exe is a utility available on the TUFLOW website <u>([http://www.tuflow.com/Tuflow%20Utilities.aspx Download TUFLOW utilities])</u>.
+
The TUFLOW_to_GIS.exe is a utility available on the TUFLOW website <u>([https://www.tuflow.com/downloads/#utilities Download TUFLOW utilities])</u>.
 
<br>
 
<br>
The utility can be used to convert TUFLOW outputs (.dat and .xmdf) into formats that can be imported into GIS packages such as MapInfo, ArcGIS, QGIS and SAGA.
+
The utility can be used to convert TUFLOW outputs (.xmdf and .dat) into formats that can be imported into GIS packages such as MapInfo, ArcGIS, and QGIS.
 
<br>
 
<br>
'''Note''' That as per the 2013 version of TUFLOW, TUFLOW can now write directly to the gridded formats (.asc and .flt).  This avoids the need for a separate conversion step.  This is outlined in the  <u>[http://www.tuflow.com/Download/TUFLOW/Releases/2013-12/Doc/TUFLOW%20Release%20Notes.2013-12.pdf release notes]</u>.<br>
+
'''Note''' That as per the 2013 version of TUFLOW, TUFLOW can now write directly to the gridded formats (.asc and .flt).  This avoids the need for a separate conversion step.  This is outlined in the  <u>[https://www.tuflow.com/Download/TUFLOW/Releases/2013-12/Doc/TUFLOW%20Release%20Notes.2013-12.pdf release notes]</u>.<br>
 
<br>
 
<br>
 
The output frequency and data types can now be specified independently for each data output format.  An example is given below:<br>
 
The output frequency and data types can now be specified independently for each data output format.  An example is given below:<br>
 
<tt>Map Output Data Format == XMDF ASC <br>
 
<tt>Map Output Data Format == XMDF ASC <br>
XMDF Map Output Data Types == h v d MB1<br>
+
XMDF Map Output Data Types == h v d dt<br>
 
XMDF Map Output Interval == 300<br>
 
XMDF Map Output Interval == 300<br>
 
ASC Map Output Data Types == h v d Z0<br>
 
ASC Map Output Data Types == h v d Z0<br>
Line 14: Line 14:
 
In the example above, both .xmdf and .asc are written directly by TUFLOW.  For the .xmdf output the water levels, velocity, depth and mass balance output are written every 300 seconds (5 minutes).  For the .asc format the water levels, velocities, depths and hazard (velocity depth product) are written.  These are written only for the maximum (ASC Map Output Interval == 0).
 
In the example above, both .xmdf and .asc are written directly by TUFLOW.  For the .xmdf output the water levels, velocity, depth and mass balance output are written every 300 seconds (5 minutes).  For the .asc format the water levels, velocities, depths and hazard (velocity depth product) are written.  These are written only for the maximum (ASC Map Output Interval == 0).
  
The TUFLOW to GIS utility can output to grid format and also MapInfo and Shapefile format. For the MapInfo and Shapefile format this can be either as points, or as arrows.
+
The TUFLOW to GIS utility can output to grid format and also MapInfo and Shapefile format. For the MapInfo and Shapefile format this can be either as points, or as arrows.
 +
 
 +
<br>
  
 
=Running TUFLOW_to_GIS=
 
=Running TUFLOW_to_GIS=
Line 20: Line 22:
 
The most common way to run the utility is from a batch file.  This allows the user to process multiple outputs at once. A batch file is simply a plain text file containing one or more lines that execute a utility as per the example sections below.<br>
 
The most common way to run the utility is from a batch file.  This allows the user to process multiple outputs at once. A batch file is simply a plain text file containing one or more lines that execute a utility as per the example sections below.<br>
 
<br>
 
<br>
For more common tasks a right click function can be setup in Windows to perform a particular conversion. FileMenuTools can be used to set custom right click functionality, the method is described  in the [[Windows_Right_Click_Functionality| Windows Right Click Functionality]].  The '''Program''' input should refer to the location of the TUFLOW_to_GIS executable and the '''Arguments''' input should contain the desired option and then %FILENAMES%.  For example <tt>-b -asc -TypeAll -max %FILENAMES%</tt> could be used to convert all of the "Maximums" data into gridded .asc format.
+
For more common tasks a right click function can be setup in Windows to perform a particular conversion. FileMenuTools can be used to set custom right click functionality, the method is described  in the [[Windows_Right_Click_Functionality| Windows Right Click Functionality]].  The '''Program''' input should refer to the location of the TUFLOW_to_GIS executable and the '''Arguments''' input should contain the desired option and then %FILENAMES%.  For example <tt>-b -asc -typeAll -max %FILENAMES%</tt> could be used to convert all of the "Maximums" data into gridded .asc format.
 +
 
 +
<br>
  
 
=Output Options=
 
=Output Options=
 
== Gridded Data ==
 
== Gridded Data ==
Gridded (raster) data is outputted in the ESRI ASCII grid format.  This is plain text format and is very widely recognised and used by a variety of GIS software including ArcGIS (requires Spatial Analyst), QGIS, SAGA and MapInfo (requires Vertical Mapper or Encom Discover). This is specified with the flag '''-asc'''.
+
Gridded (raster) data is outputted in the ESRI ASCII grid format.  This is plain text format and is very widely recognised and used by a variety of GIS software including ArcGIS (requires Spatial Analyst), QGIS, and MapInfo (requires Vertical Mapper or Encom Discover). This is specified with the flag '''-asc'''.<br>
 +
 
 +
The TUFLOW to GIS utility uses the same approach as TUFLOW for interpolating a raster.  That is, each cell is split into 4 triangles with a common vertex at the cell centre. An ASCII grid output directly from TUFLOW will use the calculated value at the cell centre (ZC). For an ASCII grid output using the TUFLOW to GIS utility, the centre used is the average of the corners.  For this reason, the grids will not be exactly the same.
  
 
==Point and Vector Data==
 
==Point and Vector Data==
Vector outputs (e.g. velocity or flow) can be written as either points or arrows.  Scalar outputs (e.g. depth or level) can be written as points.  These can currently be written out in either MapInfo format (.mif) or ArcGIS shapefiles (.shp). The '''-mif''' flag is used to output in MapInfo format and '''-shp''' to output in shapefile format. Only one type (-mif or -shp) can be processed at a time, to output in both formats, use two entries in a batch file.
+
Vector outputs (e.g. velocity or flow) can be written as either points or arrows.  Scalar outputs (e.g. depth or level) can be written as points.  These can currently be written out in either MapInfo format (.mif) or shapefiles (.shp). The '''-mif''' flag is used to output in MapInfo format and '''-shp''' to output in shapefile format. Only one type (-mif or -shp) can be processed at a time, to output in both formats, use two entries in a batch file.
 +
 
 +
<br>
  
=XMDF Options=
+
=Switches (Input Flags)=
When working with the .xmdf outputs from TUFLOW, there are some additional input switches are available.
+
==General Input Switches==
=Input Flags (switches)=
 
 
A list of the input switches is provided below:
 
A list of the input switches is provided below:
 
<b><u>General Commands</u></b>
 
 
 
{| align="center" class="wikitable"
 
{| align="center" class="wikitable"
  
Line 43: Line 47:
 
|"-b"|| Run the utility in batch mode, this suppresses the prompt to press enter at the end of processing.  Used in .bat files where two or more files are to be processed.
 
|"-b"|| Run the utility in batch mode, this suppresses the prompt to press enter at the end of processing.  Used in .bat files where two or more files are to be processed.
 
|-
 
|-
|"-asc"|| The output file will be in ESRI ASCII Grid format, a text format recognised by most 3D grid modelling software (including Vertical Mapper, SAGA and QGIS)
+
|"-asc"|| The output file will be in ESRI ASCII Grid format, a text format recognised by most 3D grid modelling software (including Vertical Mapper and QGIS)
 
|-
 
|-
 
|"-mif"|| The output format will be the MapInfo Interchange format (.mif/.mid) recognised by most GIS software
 
|"-mif"|| The output format will be the MapInfo Interchange format (.mif/.mid) recognised by most GIS software
 
|-
 
|-
|"-shp"|| The output format will be the ArcGIS Shapefile format. This can be opened directly in ArcMap, QGIS or SAGA (and most GIS software)
+
|"-shp"|| The output format will be the shapefile format. This can be opened directly in QGIS and ArcMap (and most GIS software)
 +
|-
 +
|"-vector" or "-arrows"|| The output will contain arrows as polygons to display vector data (eg. velocities and unit flows) in GIS.  Must be used with the -mif or -shp option.
 
|-
 
|-
|"-vector" or "-arrows"|| The output will contain arrows as polygons to display vector data (eg. velocities and unit flows) in GIS.  Must be used with the -mif option.
+
|"-slant<slant factor>"|| Changes the arrow head slant in the vector GIS output above. The default is -slant12 which gives 30 degree arrow head according to the equation ((180/slant)*2)
 
|-
 
|-
 
|"-t<output time>"|| Converts the data at the specified timestep, for example -t2 to convert output time 2 hours. If this switch is omitted the utility will display a list of available times and prompt for an input. Use -t99999 or -max to convert the maximums.
 
|"-t<output time>"|| Converts the data at the specified timestep, for example -t2 to convert output time 2 hours. If this switch is omitted the utility will display a list of available times and prompt for an input. Use -t99999 or -max to convert the maximums.
 
|-
 
|-
|"-tAll"|| Converts all output times from the .dat or .xmdf file.
+
|"-tAll"|| Converts all output times from the .xmdf or .dat file.
 
|-
 
|-
 
|"-max" or "-t99999"|| The maximums will be converted.  The maximums must have been written to be able to convert using the -max or -t99999 switch.  See the .tcf file command (Store Maximums and Minimums == ON MAXIMUMS ONLY).
 
|"-max" or "-t99999"|| The maximums will be converted.  The maximums must have been written to be able to convert using the -max or -t99999 switch.  See the .tcf file command (Store Maximums and Minimums == ON MAXIMUMS ONLY).
 
|-
 
|-
|"-s<output id(integer)>"|| Converts the specified scalar dataset in an xmdf file. For example, s1 will convert the first scalar dataset. A list of the available datasets is listed within the DOS window when TUFLOW_to_GIS is preprocessing results.
+
|"-sf<scale factor>"|| Scale factor to scale the size of the arrows. The default is sf = 1, which means the cell size of the first 2D domain in the .tcf file is equivalent in length to an arrow of 1m/s for velocity datasets or 1m<sup>3</sup>/s for unit flow datasets.
|-
 
|"-v<output id(integer)>"|| Converts the specified vector dataset in an xmdf file. For example, v1 will convert the first scalar dataset. A list of the available datasets is listed within the DOS window when TUFLOW_to_GIS is preprocessing results.
 
 
|-
 
|-
|"-Folder<Folder Name>"|| Converts all datasets within a particular xmdf file. For example, "Maximums" will convert all datasets in he \Maximums\ folder.
+
|"-2dm <.2dm file>"|| To explicitly specify a .2dm file.  By default TUFLOW_to_GIS assumes the .2dm file has the same name as the .xmdf file. Must be a space between -2dm and “<2dm_file>”.
|-
 
|"-sf<scale factor>"|| Scale factor to scale the size of the arrows. The default is sf = 1, which means either:<br>
 
* if  grid is not specified the cell size of the first 2D domain in the .tcf file is equivalent in length to an arrow of 1m/s for _V.dat files or 1m<sup>3</sup>/s for _q.dat files.
 
* if  grid is specified, the grid <dist> value is used instead of the cell size of the first 2D domain to scale the arrows.<br>For example, if the first 2D domain has a cell size of 10m, by default, a 1m/s velocity arrow will be 10m long.  If  sf0.5 or  grid5, is specified the 1m/s velocity arrow will be 5m long.
 
|-
 
|"-2dm <.2dm file>"|| To explicitly specify a .2dm file.  By default TUFLOW_to_GIS assumes the .2dm file has the same name as the .dat file. Must be a space between -2dm and “<2dm_file>”.
 
 
|-
 
|-
 
|"-grid<dist>"|| The output will be on a regular north-south aligned grid of spacing <dist> metres.  If no <dist> is specified the user is prompted to enter a distance (e.g. "-grid").  If no grid input is used with a -mif or -shp conversion the data is converted at the cell corners.  For a "-asc" output if no grid input is specified the default is 1/2 of the 2D cell size.<br>
 
|"-grid<dist>"|| The output will be on a regular north-south aligned grid of spacing <dist> metres.  If no <dist> is specified the user is prompted to enter a distance (e.g. "-grid").  If no grid input is used with a -mif or -shp conversion the data is converted at the cell corners.  For a "-asc" output if no grid input is specified the default is 1/2 of the 2D cell size.<br>
 
For -asc output it sets the raster cell size of the 3D ESRI ASCII grid.<br>
 
For -asc output it sets the raster cell size of the 3D ESRI ASCII grid.<br>
 
For -mif or -shp output sets the interval in metres for the output on a north-south alignment.
 
For -mif or -shp output sets the interval in metres for the output on a north-south alignment.
|-
 
|"-type<output type>"|| For use with .xmdf inputs, in which all inputs are stored in the one .xmdf file. Use this to convert a specific output type. Output types should as specified per the output type in the .tcf eg. h (water level), V (velocity), q (flow), or d (depth). Scale factor to scale the size of the arrows.
 
 
|-
 
|-
 
|"-cd<depth>"|| Sets the cutoff depth for use with -mif or -shp output, this is used when processing the water level and depth outputs.  The default is 0.01m (or 0.01ft if  the results are in feet).
 
|"-cd<depth>"|| Sets the cutoff depth for use with -mif or -shp output, this is used when processing the water level and depth outputs.  The default is 0.01m (or 0.01ft if  the results are in feet).
Line 84: Line 80:
 
|-
 
|-
 
|"-sgs"|| Suppresses the grid size from the output file name. For example Run_h_g005_max.asc will become Run_h_max.asc
 
|"-sgs"|| Suppresses the grid size from the output file name. For example Run_h_g005_max.asc will become Run_h_max.asc
 +
|-
 +
|"-rmp<mesh_part>" || Removes a mesh part from the output. <mesh_part> must be the same name as appears in the .2dm file. The .tcf command Meshparts == ON must have been specified.
 +
|-
 +
|"-ttf<TT_Factor>" || Scales the thickness of arrow tails (default = 0). It will produce arrows suitable for ArcGIS if TT_factor is non-zero. <br>
 +
+ve value(eg. -ttf.01): Thickness is TT_Factor times the arrow size.<br>
 +
-ve value(eg. -ttf-.01): Thickness is TT_Factor times the cell size.
 +
|-
 +
|"-vmax<vmax>"|| The max vector magnitude for scaling vector arrow points.Default is no scaling except for _V.dat files which it is 10.
 +
|-
 +
|" -wld "|| It is used for creating a .wld file from a .tab file. The .tab file must be one created using the Save Window As...option in MapInfo to geo-reference a screen image.
 +
|-
 +
|"-pts<pt types>"|| Outputs only the specified out locations. Note: only valid with -mif or -shp output. Default is All. Any combination of the following:<br>
 +
C - 2D cell centres<br>
 +
H - 2D cell corners<br>
 +
UV - 2D cell sides<br>
 +
T - 1D Water Level Line triangles<br>
 +
T - 1D Water Level Line triangles<br>
 +
Eg: -ptsCT would output only 2D cell centres and 1D water level line points
 +
|-
 +
|"-region"||Outputs a region object, for each 2D cell the output value is the cell centre output. Note: only valid with -mif or -shp output.
 +
|}
 +
 +
==XMDF Switches==
 +
When working with the .xmdf outputs from TUFLOW, there are some additional input switches are available.  This is because the .xmdf file uses a folder structure and multiple output parameters are stored in the same .xmdf file.  When converting you can control which dataset is converted using the switches below.  These switches are not valid for .dat files as these contain a single parameter for each file.  E.g. the _d.dat contains only depth information.<br>
 +
In the xmdf file, the data is stored in the following structure:<br>
 +
<tt>Simulation ID/Folder/Dataset</tt>.  Some examples for simulation "M01_5m_001" are:<br>
 +
<tt>M01_5m_001/Maximums/ZAEM1</tt><br>
 +
<tt>M01_5m_001/Temporal/Depth</tt><br>
 +
 +
The xmdf specific switches are outlined in the table below:<br>
 +
{| align="center" class="wikitable"
 +
! Switch
 +
! width=80% | Description
 +
|-
 +
 +
|"-type<output type>"|| Converts the specified output type in an xmdf file. Output types should be specified as per the output type in the .tcf e.g. h (water level), v (velocity), q (unit flow) or d (depth). Output types other than h, v, q and d are not predefined with the -type switch and should be called with -v and/or -s switch.
 +
|-
 +
|"-typeAll"|| Converts all available output types in an xmdf file.
 +
|-
 +
|"-s<output id(integer)>"|| Converts the specified scalar dataset in an xmdf file. For example, <tt>-s1</tt> will convert the first scalar dataset. A summary of the available datasets is listed within the DOS window when TUFLOW_to_GIS is preprocessing results. Check <u>[[TUFLOW_to_GIS#XMDF_Dataset_Example | XMDF Dataset Example]]</u>. To keep the DOS window open write "pause" at the end of the processing batch file and remove -b switch.
 +
|-
 +
|"-v<output id(integer)>"|| Converts the specified vector dataset in an xmdf file. For example, <tt>-v1</tt> will convert the first vector dataset. A summary of the available datasets is listed within the DOS window when TUFLOW_to_GIS is preprocessing results. Check <u>[[TUFLOW_to_GIS#XMDF_Dataset_Example | XMDF Dataset Example]]</u>. To keep the DOS window open write "pause" at the end of the processing batch file and remove -b switch.
 +
|-
 +
|"-Folder<Folder Name>"|| Converts all datasets within a particular xmdf file. For example, <tt>-Folder"Maximums"</tt> will convert all datasets in the \Maximums\ folder.
 +
|-
 +
|"-path<path name>"||Converts a dataset based on the path in the .xmdf file.  For example, <tt>-path"Maximums/ZAEM1"</tt> would convert the dataset Maximum ZAEM1 dataset. This can be a full path in the .xmdf file or a partial match. E.g.:<br>
 +
<tt>-path"Maximums/ZAEM1" M01_5m_001.xmdf</tt><br>
 +
<tt>-path"M01_5m_001/Maximums/ZAEM1" M01_5m_001.xmdf</tt><br>
 
|}
 
|}
 +
===XMDF Dataset Example===
 +
For example, to convert the maximum Z1 output from “M01_5m_002_mult.xmdf” the DOS window shows us that this is the fifth scalar dataset and the below command would be used:<br>
 +
<tt>TUFLOW_to_GIS_w64.exe -asc -s5 -max M01_5m_002_mult.xmdf </tt><br>
 +
Another way to extract the same dataset using the -path switch is:<br>
 +
<tt>TUFLOW_to_GIS_w64.exe -asc -path"Maximums/Z1" M01_5m_002_mult.xmdf</tt><br>
  
 +
[[File: xmdf_dataset_example.png]]<br>
 +
<br>
  
<b><u>Calibration Point and Longitudinal Profile Commands</u></b>
+
==Calibration Point and Longitudinal Profile Switches==
  
 
{| align="center" class="wikitable"
 
{| align="center" class="wikitable"
Line 94: Line 145:
 
! width=90% | Description
 
! width=90% | Description
 
|-
 
|-
|"-cp<cp_file>"|| For appending the value from a .xmdf or .dat file to a .mif or .shp file. The cp_file contains points representing locations where results are extracted from TUFLOW. The file format includes two attributes. The first attribute is a numeric field containing the recorded value. The second field is a char(100) text field containing the cp name. The cp_file is also used to find calibration points near any longitudinal profile.
+
|"-cp<cp_file>"|| For appending the value from a .xmdf or .dat file to a .shp or .mif file. The cp_file contains points representing locations where results are extracted from TUFLOW. The file format includes two attributes. The first attribute is a numeric field containing the recorded value. The second field is a char(100) text field containing the cp name. The cp_file is also used to find calibration points near any longitudinal profile.
 
'Note: requires a space after -cp. Quotes should be used if spaces existing within the filename.'
 
'Note: requires a space after -cp. Quotes should be used if spaces existing within the filename.'
 
|-
 
|-
Line 106: Line 157:
 
|"-fso"|| Free Surface Only, sets 1D water levels in pipes to the obvert/soffit level if running full
 
|"-fso"|| Free Surface Only, sets 1D water levels in pipes to the obvert/soffit level if running full
 
|}
 
|}
 +
 +
  
 
=Examples=
 
=Examples=
<ol>
 
 
== Converting to 3D grids==
 
== Converting to 3D grids==
 
Probably the most common use of the TUFLOW_to_GIS utility is to convert the maximum results to a 3D surface.  A number of examples are given below:<br>
 
Probably the most common use of the TUFLOW_to_GIS utility is to convert the maximum results to a 3D surface.  A number of examples are given below:<br>
* Convert maximums to a 3D grid:<br>
+
<ol>
<li><tt>TUFLOW_to_GIS.exe -asc -b -max M01_5m_003_h.dat</tt></li>
+
<li>Convert water level maximums to a 3D grid:<br>
<u>Description:</u> Convert to a 3D grid ("-asc"), using batch mode ("-b"), converting the maximums ("-max") for the water level results '''M01_5m_003_h.dat'''.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -asc -max -typeH M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> Using batch mode (-b), convert to a 3D grid (-asc), converting the maximums (-max) for the water level results (-typeH).<br>
* Convert to a 3D grid at a specific time:<br>
+
<br>
<li><tt>TUFLOW_to_GIS.exe -asc -b -t3 M01_5m_003_h.dat</tt></li>
+
<li>Convert to a 3D grid at a specific time:<br>
<u>Description:</u> As per example 1, except conversion at time 3 hours (-t3) instead of the maximums.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -asc -t3 -typeH M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> As per example 1, except conversion at time 3 hours (-t3) instead of the maximums.<br>
* Convert to a 3D grid of specified grid cell size:<br>
+
<br>
<li><tt>TUFLOW_to_GIS.exe -asc -b -grid1 -max M01_5m_003_h.dat</tt></li>
+
<li>Convert to a 3D grid of specified grid cell size:<br>
<u>Description:</u> As per example 1, except the raster cell size is specified at 1m instead of being half the 2D cell size.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -asc -max -grid1 -typeH M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> As per example 1, except the raster cell size is specified at 1m instead of being half the 2D cell size.<br>
* Convert to a 3D grid from .xmdf file:<br>
+
<br>
<li><tt>TUFLOW_to_GIS.exe -asc -b -typeh -max M01_5m_003.xmdf</tt></li>
+
<li>Convert velocity maximums to a 3D grid:<br>
<u>Description:</u> As per example 1, output TUFLOW format is .xmdf.  The -typeh specifies the '''h'''(water level) output to be converted.
+
*<tt>TUFLOW_to_GIS.exe -b -asc -max -typeV M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> As per example 1, except the velocity results (-typeV) are processed instead of water level (-typeH).<br>
<li><tt>TUFLOW_to_GIS.exe -asc -b -typeV -max M01_5m_003.xmdf</tt></li>
+
<br>
<u>Description:</u> As per example 4, except the the velocity results (-typeV) are processed instead of water level (-typeh).
+
<li>Convert Z1 hazard maximums to a 3D grid:<br>
 +
*<tt>TUFLOW_to_GIS.exe -b -asc -max -s5 M01_5m_001.xmdf</tt><br>
 +
*<u>Description:</u> As per example 1, except the Z1 hazard (-s5 based on the <u>[[TUFLOW_to_GIS#XMDF_Dataset_Example | XMDF Dataset Example]]</u>) are processed instead of water level (-typeH).<br>
 +
</ol>
  
 
== Converting to Points ==
 
== Converting to Points ==
To output to a points file specify either a MapInfo output with the "-mif" switch or Arc shapefiles output with the "-shp" output. To output at cell corners only:
+
To output to a points file specify either a shapefiles output with the "-shp" switch or MapInfo output with the "-mif" output. To output at cell corners only:
* Convert maximums to a MapInfo Points file at cell corners:<br>
+
<ol start="6">
<li><tt>TUFLOW_to_GIS.exe -mif -b -max M01_5m_003_h.dat</tt></li>
+
<li>Convert maximums to a shapefile points file at cell corners:<br>
<u>Description:</u> Convert to a MapInfo format ("-mif"), using batch mode ("-b"), converting the maximums ("-max") for the water level results '''M01_5m_003_h.dat'''.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -shp -max -typeH M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> Using batch mode (-b), convert to a shapefile format (-shp), converting the maximums (-max) for the water level results (-typeH).<br>
* Convert maximums to a MapInfo Points file on a regular grid:<br>
+
<br>
<li><tt>TUFLOW_to_GIS.exe -mif -grid2 -b -max M01_5m_003_h.dat</tt></li>
+
<li>Convert maximums to a shapefile points file on a regular grid:<br>
<u>Description:</u> Convert to a MapInfo format ("-mif") on a regular 2m grid ("-grid2"), using batch mode ("-b"), converting the maximums ("-max") for the water level results '''M01_5m_003_h.dat'''.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -shp -max -grid2 -typeH M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> Using batch mode (-b), convert to a shapefile format (-shp), converting the maximums (-max), on a regular 2m grid (-grid2) for the water level results (-typeH).<br>
To export either of the above to shapefile format simply replace the "-mif" with "-shp".
+
<br>
* Convert velocity at time 2 hours MapInfo points file, where the results file is in xmdf format:<br>
+
<li>Convert velocity at time 2 hours to shapefile points file:<br>
<li><tt>TUFLOW_to_GIS.exe -shp -b -t2 -typeV M01_5m_003.xmdf</tt></li>
+
*<tt>TUFLOW_to_GIS.exe -b -shp -t2 -typeV M01_5m_001.xmdf</tt><br>
<u>Description:</u> Convert to a ArcGIS shapefile format ("-shp"), using batch mode ("-b"), at time of 2 hours ("-t2"), converting the velocity output ("-typeV") for the results file '''M01_5m_003.xmdf'''.<br>
+
*<u>Description:</u> Using batch mode (-b), convert to a shapefile format (-shp), at time of 2 hours (-t2), converting the velocity output (-typeV).<br>
 
+
<br>
* Convert the model topography to MapInfo points file format:<br>
+
<li>Convert the model topography to shapefile points file format:<br>
<li><tt>TUFLOW_to_GIS.exe -mif -b M01_5m_003.2dm</tt></li>
+
*<tt>TUFLOW_to_GIS.exe -b -shp M01_5m_001.2dm</tt><br>
<u>Description:</u> Convert to a MapInfo format ("-mif"), using batch mode ("-b"), converting the model topography ("-typeV") from the results file '''M01_5m_003.2dm'''.<br>
+
*<u>Description:</u> Using batch mode (-b), convert to a shapefile format (-shp), converting the model topography.<br>
 +
</ol>
  
 
== Converting to Arrows ==
 
== Converting to Arrows ==
To output to vectors file specify either a MapInfo "-mif" or Arc shapefiles ("-shp") output type and the "-vector" option. This will create a vector dataset, with the vectors stored as polygon objects.<br>
+
To output to vectors file specify either a shapefiles "-shp" or MapInfo "-mif" output type and the "-vector" option. This will create a vector dataset, with the vectors stored as polygon objects.<br>
The size of the vectors can be controlled with the scale factor ("-sf") switch.
+
The size of the vectors can be controlled with the scale factor ("-sf") switch.<br>
'''NOTE:''' The input .dat file or dataset type must be a vector dataset, such as velocity or unit flow.<br>
+
'''NOTE:''' If using input .dat file the dataset type must be a vector dataset, such as velocity or unit flow.<br>
* Convert output time 2 to a MapInfo vector file at cell corners:<br>
+
<ol start="10">
<li><tt>TUFLOW_to_GIS.exe -mif -vector -b -t2 M01_5m_003_V.dat</tt></li>
+
<li>Convert output time 2 to a shapefile at cell corners:<br>
<u>Description:</u> Convert to a MapInfo format ("-mif"), using vector outputs ("-vector"), using batch mode ("-b") and converting at time 2 hours ("-t2") for the velocity results '''M01_5m_003_V.dat'''.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -shp -vector -t2 -typeV M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> Using batch mode (-b), convert to a shapefile format (-shp), using vector outputs (-vector), and converting at time 2 hours (-t2) for the velocity results (-typeV).<br>
* Convert output time 2 to a MapInfo vector file at cell corners:<br>
+
<br>
<li><tt>TUFLOW_to_GIS.exe -mif -vector -sf0.5 -b -t2 M01_5m_003_V.dat</tt></li>
+
<li>Convert output time 2 to a shapefile at cell corners:<br>
<u>Description:</u> As above with a scale factor of 0.5, so that the arrows will be half the length.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -shp -vector -t2 -sf0.5 -typeV M01_5m_001.xmdf</tt><br>
 
+
*<u>Description:</u> As above with a scale factor of 0.5, so that the arrows will be half the length.<br>
* Convert output time 2 to a ArcGIS shapefile on a regular grid of 2m spacing:<br>
+
<br>
<li><tt>TUFLOW_to_GIS.exe -shp -vector -grid2 -b -t2 M01_5m_003_q.dat</tt></li>
+
<li>Convert output time 2 to a shapefile on a regular grid of 2m spacing for unit flow:<br>
<u>Description:</u> Convert to a ArcGIS shapefile ("-shp"), using vector outputs ("-vector") on a regular 2 metre grid ("-grid2") using batch mode ("-b") and converting at time 2 hours ("-t2") for the unit flow results '''M01_5m_003_q.dat'''.<br>
+
*<tt>TUFLOW_to_GIS.exe -b -shp -vector -t2 -sf0.5 -grid2 -typeq M01_5m_001.xmdf</tt><br>
 +
*<u>Description:</u> As above on a regular 2 metre grid (-grid2) for the unit flow results (-typeq).<br>
 +
<br>
 +
<u>Note:</u> When using processed maxmax xmdf from RES_to_RES utility the -typeV switch needs to be replaced with -v1 switch. -v1 switch calls for the first vector dataset.<br>
 +
</ol>
  
 
== Calibration Points and Longitudinal Profiles ==
 
== Calibration Points and Longitudinal Profiles ==
These command options are used to extract longitudinal profile information from model results. Input format requirements for the CP and LP files are provided in the 'Calibration Point and Longitudinal Profile Commands' Table within the 'Input Flags' section above.  
+
These command options are used to extract longitudinal profile information from model results. Input format requirements for the CP and LP files are provided in the calibration point and longitudinal profile commands table within the 'Input Flags' section of this page. <br>
 +
<ol start="13">
 +
<li>Compute difference between recorded high water mark (in shp or mif format) and modelled maximum flood level:<br>
 +
*<tt>TUFLOW_to_GIS.exe -cp "CP_File.shp" -typeH -max M03_5m_003.xmdf</tt><br>
 +
*<tt>TUFLOW_to_GIS.exe -cp "CP_File.mif" -typeH -max M03_5m_003.xmdf</tt><br>
  
*Compute difference between recorded high water mark (in ArcGIS shapefile format) and modelled maximum flood level
+
The CP file inputs, flood model result and difference in peak flood level relative to the recorded level is output to a GIS file (eg. '<CP_filename>_<TUFLOW_model_filename>.shp') <br>
<li><tt>TUFLOW_to_GIS.exe -cp "CP_File.shp" -typeH -max M01_5m_003.xmdf</tt></li>
+
<br>
 +
[[File: T2G_Longsection_001.PNG|300px]]<br>
 +
<br>
  
The CP file inputs, flood model result and difference in peak flood level relative to the recorded level is output to a shape file <CP_file>_<TUFLOW_model_name>.shp  
+
<li>Compute longitudinal profiles of maximum flood level model results. Associate recorded high water marks (in shp or mif format) with the profile if the point location is within a defined radius of the longitudinal profile line.<br>  
 +
*<tt>TUFLOW_to_GIS.exe -cp "CP_File.shp" -lp "LP_File.shp" -cpsd100 -lpmd2500 -typeH -max M03_5m_003.xmdf</tt><br>
 +
*<tt>TUFLOW_to_GIS.exe -cp "CP_File.mif" -lp "LP_File.mif" -cpsd100 -lpmd2500 -typeH -max M03_5m_003.xmdf</tt><br>
  
[[File:T2G_Longsection_001.PNG]]
+
The longitude profile results are output to a csv file. The output increment matches the resolution of vertices along the longitudinal profile line. The GIS dataset defines the longitudinal profile chainage at a regular (specified) increment.<br>
 
+
<br>
*Compute longitudinal profiles of maximum flood level model results. Associate recorded high water mark (in ArcGIS and MapInfo mif format)  with the profile if the point location is within a 100m radius of the longitudinal profile line.
+
[[File: T2G_Longsection_005.PNG|950px]]
<li><tt>TUFLOW_to_GIS.exe -cp "CP_File.shp" -lp "LP_Fil.shp" -cpsd100 -typeH -max M01_5m_003.xmdf</tt></li>
+
[[File: T2G_Longsection_004.PNG|500px]]
<li><tt>TUFLOW_to_GIS.exe -cp "CP_File.mif" -lp "LP_Fil.mif" -cpsd100 -typeH -max M01_5m_003.xmdf</tt></li>
+
<br>
The longitude profile results are output to a csv file.<br>
 
[[File: T2G_Longsection_002.PNG|900px]]
 
 
</ol>
 
</ol>
 
<br>
 
<br>

Latest revision as of 20:16, 19 July 2024

Introduction

The TUFLOW_to_GIS.exe is a utility available on the TUFLOW website (Download TUFLOW utilities).
The utility can be used to convert TUFLOW outputs (.xmdf and .dat) into formats that can be imported into GIS packages such as MapInfo, ArcGIS, and QGIS.
Note That as per the 2013 version of TUFLOW, TUFLOW can now write directly to the gridded formats (.asc and .flt). This avoids the need for a separate conversion step. This is outlined in the release notes.

The output frequency and data types can now be specified independently for each data output format. An example is given below:
Map Output Data Format == XMDF ASC
XMDF Map Output Data Types == h v d dt
XMDF Map Output Interval == 300
ASC Map Output Data Types == h v d Z0
ASC Map Output Interval == 0
In the example above, both .xmdf and .asc are written directly by TUFLOW. For the .xmdf output the water levels, velocity, depth and mass balance output are written every 300 seconds (5 minutes). For the .asc format the water levels, velocities, depths and hazard (velocity depth product) are written. These are written only for the maximum (ASC Map Output Interval == 0).

The TUFLOW to GIS utility can output to grid format and also MapInfo and Shapefile format. For the MapInfo and Shapefile format this can be either as points, or as arrows.


Running TUFLOW_to_GIS

Simply double clicking on the TUFLOW_to_GIS executable will bring up a DOS prompt that that gives you some instructions on running the utility.
The most common way to run the utility is from a batch file. This allows the user to process multiple outputs at once. A batch file is simply a plain text file containing one or more lines that execute a utility as per the example sections below.

For more common tasks a right click function can be setup in Windows to perform a particular conversion. FileMenuTools can be used to set custom right click functionality, the method is described in the Windows Right Click Functionality. The Program input should refer to the location of the TUFLOW_to_GIS executable and the Arguments input should contain the desired option and then %FILENAMES%. For example -b -asc -typeAll -max %FILENAMES% could be used to convert all of the "Maximums" data into gridded .asc format.


Output Options

Gridded Data

Gridded (raster) data is outputted in the ESRI ASCII grid format. This is plain text format and is very widely recognised and used by a variety of GIS software including ArcGIS (requires Spatial Analyst), QGIS, and MapInfo (requires Vertical Mapper or Encom Discover). This is specified with the flag -asc.

The TUFLOW to GIS utility uses the same approach as TUFLOW for interpolating a raster.  That is, each cell is split into 4 triangles with a common vertex at the cell centre. An ASCII grid output directly from TUFLOW will use the calculated value at the cell centre (ZC). For an ASCII grid output using the TUFLOW to GIS utility, the centre used is the average of the corners.  For this reason, the grids will not be exactly the same.

Point and Vector Data

Vector outputs (e.g. velocity or flow) can be written as either points or arrows. Scalar outputs (e.g. depth or level) can be written as points. These can currently be written out in either MapInfo format (.mif) or shapefiles (.shp). The -mif flag is used to output in MapInfo format and -shp to output in shapefile format. Only one type (-mif or -shp) can be processed at a time, to output in both formats, use two entries in a batch file.


Switches (Input Flags)

General Input Switches

A list of the input switches is provided below:

Switch Description
"-b" Run the utility in batch mode, this suppresses the prompt to press enter at the end of processing. Used in .bat files where two or more files are to be processed.
"-asc" The output file will be in ESRI ASCII Grid format, a text format recognised by most 3D grid modelling software (including Vertical Mapper and QGIS)
"-mif" The output format will be the MapInfo Interchange format (.mif/.mid) recognised by most GIS software
"-shp" The output format will be the shapefile format. This can be opened directly in QGIS and ArcMap (and most GIS software)
"-vector" or "-arrows" The output will contain arrows as polygons to display vector data (eg. velocities and unit flows) in GIS. Must be used with the -mif or -shp option.
"-slant<slant factor>" Changes the arrow head slant in the vector GIS output above. The default is -slant12 which gives 30 degree arrow head according to the equation ((180/slant)*2)
"-t<output time>" Converts the data at the specified timestep, for example -t2 to convert output time 2 hours. If this switch is omitted the utility will display a list of available times and prompt for an input. Use -t99999 or -max to convert the maximums.
"-tAll" Converts all output times from the .xmdf or .dat file.
"-max" or "-t99999" The maximums will be converted. The maximums must have been written to be able to convert using the -max or -t99999 switch. See the .tcf file command (Store Maximums and Minimums == ON MAXIMUMS ONLY).
"-sf<scale factor>" Scale factor to scale the size of the arrows. The default is sf = 1, which means the cell size of the first 2D domain in the .tcf file is equivalent in length to an arrow of 1m/s for velocity datasets or 1m3/s for unit flow datasets.
"-2dm <.2dm file>" To explicitly specify a .2dm file. By default TUFLOW_to_GIS assumes the .2dm file has the same name as the .xmdf file. Must be a space between -2dm and “<2dm_file>”.
"-grid<dist>" The output will be on a regular north-south aligned grid of spacing <dist> metres. If no <dist> is specified the user is prompted to enter a distance (e.g. "-grid"). If no grid input is used with a -mif or -shp conversion the data is converted at the cell corners. For a "-asc" output if no grid input is specified the default is 1/2 of the 2D cell size.

For -asc output it sets the raster cell size of the 3D ESRI ASCII grid.
For -mif or -shp output sets the interval in metres for the output on a north-south alignment.

"-cd<depth>" Sets the cutoff depth for use with -mif or -shp output, this is used when processing the water level and depth outputs. The default is 0.01m (or 0.01ft if the results are in feet).
"-prec< u >.< d >" Sets the output precision for -asc, -mif and -shp options. For example -prec6.3 would output 6 units (or 5 units if number is negative) (ie. from -99,999 to 999,999) with 3 decimal places.
"-sec" Display and enter times in seconds (default = hours).
"-out<output file name, without file extension>" To specify the name of the output files. Extension added based on output format. Note: not applicable when converting multiple outputs (eg. multiple times).
"-sgs" Suppresses the grid size from the output file name. For example Run_h_g005_max.asc will become Run_h_max.asc
"-rmp<mesh_part>" Removes a mesh part from the output. <mesh_part> must be the same name as appears in the .2dm file. The .tcf command Meshparts == ON must have been specified.
"-ttf<TT_Factor>" Scales the thickness of arrow tails (default = 0). It will produce arrows suitable for ArcGIS if TT_factor is non-zero.

+ve value(eg. -ttf.01): Thickness is TT_Factor times the arrow size.
-ve value(eg. -ttf-.01): Thickness is TT_Factor times the cell size.

"-vmax<vmax>" The max vector magnitude for scaling vector arrow points.Default is no scaling except for _V.dat files which it is 10.
" -wld " It is used for creating a .wld file from a .tab file. The .tab file must be one created using the Save Window As...option in MapInfo to geo-reference a screen image.
"-pts<pt types>" Outputs only the specified out locations. Note: only valid with -mif or -shp output. Default is All. Any combination of the following:

C - 2D cell centres
H - 2D cell corners
UV - 2D cell sides
T - 1D Water Level Line triangles
T - 1D Water Level Line triangles
Eg: -ptsCT would output only 2D cell centres and 1D water level line points

"-region" Outputs a region object, for each 2D cell the output value is the cell centre output. Note: only valid with -mif or -shp output.

XMDF Switches

When working with the .xmdf outputs from TUFLOW, there are some additional input switches are available. This is because the .xmdf file uses a folder structure and multiple output parameters are stored in the same .xmdf file. When converting you can control which dataset is converted using the switches below. These switches are not valid for .dat files as these contain a single parameter for each file. E.g. the _d.dat contains only depth information.
In the xmdf file, the data is stored in the following structure:
Simulation ID/Folder/Dataset. Some examples for simulation "M01_5m_001" are:
M01_5m_001/Maximums/ZAEM1
M01_5m_001/Temporal/Depth

The xmdf specific switches are outlined in the table below:

Switch Description
"-type<output type>" Converts the specified output type in an xmdf file. Output types should be specified as per the output type in the .tcf e.g. h (water level), v (velocity), q (unit flow) or d (depth). Output types other than h, v, q and d are not predefined with the -type switch and should be called with -v and/or -s switch.
"-typeAll" Converts all available output types in an xmdf file.
"-s<output id(integer)>" Converts the specified scalar dataset in an xmdf file. For example, -s1 will convert the first scalar dataset. A summary of the available datasets is listed within the DOS window when TUFLOW_to_GIS is preprocessing results. Check XMDF Dataset Example. To keep the DOS window open write "pause" at the end of the processing batch file and remove -b switch.
"-v<output id(integer)>" Converts the specified vector dataset in an xmdf file. For example, -v1 will convert the first vector dataset. A summary of the available datasets is listed within the DOS window when TUFLOW_to_GIS is preprocessing results. Check XMDF Dataset Example. To keep the DOS window open write "pause" at the end of the processing batch file and remove -b switch.
"-Folder<Folder Name>" Converts all datasets within a particular xmdf file. For example, -Folder"Maximums" will convert all datasets in the \Maximums\ folder.
"-path<path name>" Converts a dataset based on the path in the .xmdf file. For example, -path"Maximums/ZAEM1" would convert the dataset Maximum ZAEM1 dataset. This can be a full path in the .xmdf file or a partial match. E.g.:

-path"Maximums/ZAEM1" M01_5m_001.xmdf
-path"M01_5m_001/Maximums/ZAEM1" M01_5m_001.xmdf

XMDF Dataset Example

For example, to convert the maximum Z1 output from “M01_5m_002_mult.xmdf” the DOS window shows us that this is the fifth scalar dataset and the below command would be used:
TUFLOW_to_GIS_w64.exe -asc -s5 -max M01_5m_002_mult.xmdf
Another way to extract the same dataset using the -path switch is:
TUFLOW_to_GIS_w64.exe -asc -path"Maximums/Z1" M01_5m_002_mult.xmdf

Xmdf dataset example.png

Calibration Point and Longitudinal Profile Switches

Switch Description
"-cp<cp_file>" For appending the value from a .xmdf or .dat file to a .shp or .mif file. The cp_file contains points representing locations where results are extracted from TUFLOW. The file format includes two attributes. The first attribute is a numeric field containing the recorded value. The second field is a char(100) text field containing the cp name. The cp_file is also used to find calibration points near any longitudinal profile.

'Note: requires a space after -cp. Quotes should be used if spaces existing within the filename.'

"-cpsd<sd>" The search distance for finding calibration points near a longitudinal profile.
"-lpmd<md>" The distance between LP chainage markers along a longitudinal profile.
"-lp<lp_file>" For longitudinal profile output. The lp_file contains polyline(s) representing the lp alignments(s). The first and only attribute within the file is a char(100) containing the lp name. One <lp_name>.csv file for each polyline is produced.

'Note: requires a space after -lp. Quotes should be used if spaces existing within the filename.'

"-fso" Free Surface Only, sets 1D water levels in pipes to the obvert/soffit level if running full


Examples

Converting to 3D grids

Probably the most common use of the TUFLOW_to_GIS utility is to convert the maximum results to a 3D surface. A number of examples are given below:

  1. Convert water level maximums to a 3D grid:
    • TUFLOW_to_GIS.exe -b -asc -max -typeH M01_5m_001.xmdf
    • Description: Using batch mode (-b), convert to a 3D grid (-asc), converting the maximums (-max) for the water level results (-typeH).

  2. Convert to a 3D grid at a specific time:
    • TUFLOW_to_GIS.exe -b -asc -t3 -typeH M01_5m_001.xmdf
    • Description: As per example 1, except conversion at time 3 hours (-t3) instead of the maximums.

  3. Convert to a 3D grid of specified grid cell size:
    • TUFLOW_to_GIS.exe -b -asc -max -grid1 -typeH M01_5m_001.xmdf
    • Description: As per example 1, except the raster cell size is specified at 1m instead of being half the 2D cell size.

  4. Convert velocity maximums to a 3D grid:
    • TUFLOW_to_GIS.exe -b -asc -max -typeV M01_5m_001.xmdf
    • Description: As per example 1, except the velocity results (-typeV) are processed instead of water level (-typeH).

  5. Convert Z1 hazard maximums to a 3D grid:
    • TUFLOW_to_GIS.exe -b -asc -max -s5 M01_5m_001.xmdf
    • Description: As per example 1, except the Z1 hazard (-s5 based on the XMDF Dataset Example) are processed instead of water level (-typeH).

Converting to Points

To output to a points file specify either a shapefiles output with the "-shp" switch or MapInfo output with the "-mif" output. To output at cell corners only:

  1. Convert maximums to a shapefile points file at cell corners:
    • TUFLOW_to_GIS.exe -b -shp -max -typeH M01_5m_001.xmdf
    • Description: Using batch mode (-b), convert to a shapefile format (-shp), converting the maximums (-max) for the water level results (-typeH).

  2. Convert maximums to a shapefile points file on a regular grid:
    • TUFLOW_to_GIS.exe -b -shp -max -grid2 -typeH M01_5m_001.xmdf
    • Description: Using batch mode (-b), convert to a shapefile format (-shp), converting the maximums (-max), on a regular 2m grid (-grid2) for the water level results (-typeH).

  3. Convert velocity at time 2 hours to shapefile points file:
    • TUFLOW_to_GIS.exe -b -shp -t2 -typeV M01_5m_001.xmdf
    • Description: Using batch mode (-b), convert to a shapefile format (-shp), at time of 2 hours (-t2), converting the velocity output (-typeV).

  4. Convert the model topography to shapefile points file format:
    • TUFLOW_to_GIS.exe -b -shp M01_5m_001.2dm
    • Description: Using batch mode (-b), convert to a shapefile format (-shp), converting the model topography.

Converting to Arrows

To output to vectors file specify either a shapefiles "-shp" or MapInfo "-mif" output type and the "-vector" option. This will create a vector dataset, with the vectors stored as polygon objects.
The size of the vectors can be controlled with the scale factor ("-sf") switch.
NOTE: If using input .dat file the dataset type must be a vector dataset, such as velocity or unit flow.

  1. Convert output time 2 to a shapefile at cell corners:
    • TUFLOW_to_GIS.exe -b -shp -vector -t2 -typeV M01_5m_001.xmdf
    • Description: Using batch mode (-b), convert to a shapefile format (-shp), using vector outputs (-vector), and converting at time 2 hours (-t2) for the velocity results (-typeV).

  2. Convert output time 2 to a shapefile at cell corners:
    • TUFLOW_to_GIS.exe -b -shp -vector -t2 -sf0.5 -typeV M01_5m_001.xmdf
    • Description: As above with a scale factor of 0.5, so that the arrows will be half the length.

  3. Convert output time 2 to a shapefile on a regular grid of 2m spacing for unit flow:
    • TUFLOW_to_GIS.exe -b -shp -vector -t2 -sf0.5 -grid2 -typeq M01_5m_001.xmdf
    • Description: As above on a regular 2 metre grid (-grid2) for the unit flow results (-typeq).

    Note: When using processed maxmax xmdf from RES_to_RES utility the -typeV switch needs to be replaced with -v1 switch. -v1 switch calls for the first vector dataset.

Calibration Points and Longitudinal Profiles

These command options are used to extract longitudinal profile information from model results. Input format requirements for the CP and LP files are provided in the calibration point and longitudinal profile commands table within the 'Input Flags' section of this page.

  1. Compute difference between recorded high water mark (in shp or mif format) and modelled maximum flood level:
    • TUFLOW_to_GIS.exe -cp "CP_File.shp" -typeH -max M03_5m_003.xmdf
    • TUFLOW_to_GIS.exe -cp "CP_File.mif" -typeH -max M03_5m_003.xmdf
    The CP file inputs, flood model result and difference in peak flood level relative to the recorded level is output to a GIS file (eg. '<CP_filename>_<TUFLOW_model_filename>.shp')

    T2G Longsection 001.PNG

  2. Compute longitudinal profiles of maximum flood level model results. Associate recorded high water marks (in shp or mif format) with the profile if the point location is within a defined radius of the longitudinal profile line.
    • TUFLOW_to_GIS.exe -cp "CP_File.shp" -lp "LP_File.shp" -cpsd100 -lpmd2500 -typeH -max M03_5m_003.xmdf
    • TUFLOW_to_GIS.exe -cp "CP_File.mif" -lp "LP_File.mif" -cpsd100 -lpmd2500 -typeH -max M03_5m_003.xmdf
    The longitude profile results are output to a csv file. The output increment matches the resolution of vertices along the longitudinal profile line. The GIS dataset defines the longitudinal profile chainage at a regular (specified) increment.

    T2G Longsection 005.PNG T2G Longsection 004.PNG


Up
Go-up.png Back to TUFLOW Utilities