TUFLOW to GIS: Difference between revisions
Content deleted Content added
Chris Huxley (talk | contribs) |
No edit summary |
||
Line 29:
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.
<b><u>General Commands</u></b>▼
=Input Flags (switches)=
A list of the input switches is provided below:
▲<b><u>General Commands</u></b>
{| align="center" class="wikitable"
Line 56 ⟶ 52:
|-
|"-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.▼
|-▼
|"-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.▼
|-
|"-sf<scale factor>"|| Scale factor to scale the size of the arrows. The default is sf = 1, which means either:<br>
Line 72 ⟶ 62:
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.
|-▼
|"-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).
Line 86 ⟶ 74:
|}
<b><u>XMDF Commands</u></b>
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 in stored in the following structure:<br>
<tt>Simulation ID/Folder/Dataset</tt>. Some examples for simulation "M01_5m_013_SA_CPU" are:<br>
<tt>M01_5m_013_SA_CPU/Maximums/ZAEM1</tt><br>
<tt>M01_5m_013_SA_CPU/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>"|| 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)
▲|-
▲|"-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 list of the available datasets is listed within the DOS window when TUFLOW_to_GIS is preprocessing results.
▲|-
▲|"-v<output id(integer)>"|| Converts the specified vector dataset in an xmdf file. For example, <tt>-v1</tt> 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, <tt>-Folder"Maximums"</tt> will convert all datasets in
|-
|"-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_013_SA_CPU.xmdf</tt><br>
<tt>-path"M01_5m_013_SA_CPU/Maximums/ZAEM1" M01_5m_013_SA_CPU.xmdf</tt><br>
|}
<b><u>Calibration Point and Longitudinal Profile Commands</u></b>
| |||