Flood Modeller to TUFLOW: Difference between revisions
Content deleted Content added
Tuflowduncan (talk | contribs) |
|||
| (16 intermediate revisions by 4 users not shown) | |||
Line 1:
=Introduction=
Often, there is a requirement to convert aspects of a Flood Modeller model to a TUFLOW
=Flood Modeller to ESTRY conversion utility using the fm_to_estry.exe=
The fm_to_estry.exe utility creates
* Flood Modeller units to
* Flood Modeller section data to
* Flood Modeller structures to
A number of structure units are supported but <u>not all</u>. <b>A list of currently supported structures is shown below:</b>
*<b>River</b>
Line 31 ⟶ 29:
*<b>Junction</b>
*<b>QH Control</b>
If using the fm_to_estry.py Python script, it is possible to add support for additional structures. See below for more details.
<br>''Note :The utility does not currently support the conversion of either boundary condition data or logical control rules. ''
=Utility Execution (.exe)=
In order to convert a Flood Modeller network to ESTRY using the fm_to_estry executable follow the instructions below.
<ol>
<li>Download the
<li>Open the file. Then, bring in the relevant files from the
<li>Create a new .bat file (To do that right click in an empty area in the file. A dialogue will open. Choose New and then Text document. Rename your new Text document by including the <b>.bat extension</b> at the end. For Example: fm_to_estry_example.<b>bat</b>).
<li>Open your batch file and insert the text to convert the
===Examples===
<ol>
<li><pre>fm_to_estry.exe flood_modeller.gxy flood_modeller.dat -crs projection.shp</pre>
Converts a Flood Modeller model
<li><pre>fm_to_estry.exe flood_modeller.gxy flood_modeller.dat -crs "EPSG:32760"</pre>
Uses an EPSG number (32760) for the projection
<li><pre>fm_to_estry.exe flood_modeller.gxy flood_modeller.dat -crs projection.shp -out .\output</pre>
<li><pre>fm_to_estry.exe flood_modeller.gxy flood_modeller.dat -crs projection.shp -logfile</pre>
Writes a Log File
Line 57 ⟶ 58:
<li>Save your preferences and close your batch file.
<li>Double click the batch file.
<li>The above steps will return structures from the <b>supported structures list</b> in <b>.shp</b> and <b>.csv</b> file formats to use them to further set up a 1D TUFLOW/
The figure below illustrates Flood Modeler 1D model conversion to TUFLOW
<br> [[File:Fm2estry_2.jpg|700px|]]
<br>[[File:Fm2estry_3.jpg|700px|]]
</ol>
Alternatively, rather than run the executable, it is possible to run as a Python
▲=Utility Execution (.py)=
▲Alternatively, rather than run the executable, it is possible to run as a Python library. To run Python library, replace fm_to_estry.<b>exe</b> above with <b>python fm_to_estry.py</b> and follow the 2-6 steps which are described in Utility Execution (.exe). To download Python utility file please visit: [https://gitlab.com/tuflow-user-group/tuflow/model-conversions/fm-to-estry Gitlab Website] and click on the following icon: [[File:Fm2estry_4.jpg|50px|]]
The benefit of this approach is that you can add your own support for structures not currently supported. More details are described in Section: <b>How to Add New Supported Units</b>, which can be found in the following page: [https://gitlab.com/tuflow-user-group/tuflow/model-conversions/fm-to-estry#:~:text=How%20to%20Add%20New%20Supported%20Units Gitlab Website]. ▼
▲The benefit of this approach is that you can add your own support for structures not currently supported. More details are described in the Section: <b>How to Add New Supported Units</b>, which can be found in the following page: [https://gitlab.com/tuflow-user-group/tuflow/model-conversions/fm-to-estry#:~:text=How%20to%20Add%20New%20Supported%20Units TUFLOW Gitlab
=Other Information=
It is also possible to use the cross-sections from the
=Summary=
When there is a requirement to convert a Flood Modeller 1D network, or part of a network, to TUFLOW
<br>
{{Tips Navigation
|uplink=[[Main_Page| Back to Main Page]]
}}
| |||