TUFLOW to GIS: Difference between revisions
Content deleted Content added
Anne.Kolega (talk | contribs) m →General Input Switches: i.e. |
|||
| (6 intermediate revisions by 3 users not shown) | |||
Line 19:
=Running TUFLOW_to_GIS=
Simply double clicking on the TUFLOW_to_GIS executable will bring up a
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>
Line 53:
|"-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 (
|-
|"-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)
Line 73:
|"-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) (
|-
|"-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 (
|-
|"-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 (e.g. -ttf.01): Thickness is TT_Factor times the arrow size.<br>
-ve value (e.g. -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>
E.g: -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==
Line 99 ⟶ 120:
|"-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
|-
|"-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
|-
|"-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.
Line 110 ⟶ 131:
|}
===XMDF Dataset Example===
For example, to convert the maximum Z1 output from “M01_5m_002_mult.xmdf” the
<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>
Line 212 ⟶ 233:
*<tt>TUFLOW_to_GIS.exe -cp "CP_File.mif" -typeH -max M03_5m_003.xmdf</tt><br>
The CP file inputs, flood model result and difference in peak flood level relative to the recorded level is output to a GIS file (
<br>
[[File: T2G_Longsection_001.PNG|300px]]<br>
<br>
<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>
| |||