Difference between revisions of "DOS Directory File List"

From Tuflow
Jump to navigation Jump to search
Line 1: Line 1:
 
<ol>
 
<ol>
 
<li> Open the DOS command prompt.
 
<li> Open the DOS command prompt.
<li> If necessary, change the drive location (example syntax: ''<tt>D:</tt>'' then press Enter)
+
<li> If necessary, change the drive location (example syntax: '''<tt>D:</tt>''' then press Enter)
<li> Navigate to the folder location where you would like to write a list of the folders contained within it (example syntax: ''<tt>cd D:\Example\TUFLOW\model\grid</tt>'' then press Enter)
+
<li> Navigate to the folder location where you would like to write a list of the folders contained within it (example syntax: '''<tt>cd D:\Example\TUFLOW\model\grid</tt>''' then press Enter)
<li> Write a text file listing the folder contents using the following syntax ''<tt>dir > filename.txt</tt>''
+
<li> Write a text file listing the folder contents using the following syntax: '''<tt>dir > filename.txt</tt>'''
 
</ol>
 
</ol>
A text file called ''<tt>filename.txt</tt>'' will be written containing a list of all the files contained within the folder.
+
A text file called '''<tt>filename.txt</tt>''' will be written containing a list of all the files contained within the folder.
  
This DOS file report is useful during TUFLOW modelling if topography ALS data has been provided in tile format for a catchment. In some situations over 500 *.asc files may make up a complete study area. Rather than stitching the data into a single topography dataset data layering within the TGC can be used to read each *.asc ALS tile into the TUFLOW flood model.  
+
 
 +
=Example Application - Stitching Together ALS Data Tiles=
 +
This DOS file report is useful during TUFLOW modelling if ALS topography data has been provided in tile format for a catchment. In some situations over 500 *.asc files may make up a complete study area. Rather than stitching the data into a single topography dataset using GIS software, data layering within the TGC can be used to read each *.asc ALS tile into the TUFLOW flood model.  
 
<ol>
 
<ol>
<li> Open ''<tt>filename.txt</tt>'' in Notepad++ or UltraEdit.
+
<li> Open '''<tt>filename.txt</tt>''' in <u>[[NotepadPlusPlus_Tips | Notepad++]]</u> or <u>[[UltraEdit_Tips | UltraEdit]]</u>.
 
<li> Turn on column edit mode.  
 
<li> Turn on column edit mode.  
* This is done in Notepad++ by holding in ''<tt>Alt</tt>'' prior to and during a selection
+
* This is done in Notepad++ by holding in '''<tt>Alt</tt>''' prior to and during a selection
* This is done in Notepad++ by holding in ''<tt>Alt+C</tt>'' prior to and during a selection
+
* This is done in UltraEdit by holding in '''<tt>Alt+C</tt>''' prior to and during a selection
<li> Select the .asc file names
+
<li> Select and copy the .asc file names.
 +
<li> Open the TUFLOW Geometry Control (TGC) File. Set the global model elevation to a value that's above all expected elevations with the topography dataset. We will use this value to check for any missing data or gaps between the ALS tiles after running the Tuflow model for the first time.
 +
<li> Paste the .asc file name list to the TGC file.
 +
<li> Add the necessary command syntax and file path details left of the .asc file names using  the text editor in column mode.
 +
<li> After running the TUFLOW model for the first time review topography check files <u>[[TUFLOW_Check_Files | _DEM_Z.flt]]</u> and or <u>[[TUFLOW_Check_Files | _zpt_check]]</u>. If the global model elevation value you have used is present this represents a gap in your ALS topography dataset that requires correction or additional data.

Revision as of 16:14, 14 February 2018

  1. Open the DOS command prompt.
  2. If necessary, change the drive location (example syntax: D: then press Enter)
  3. Navigate to the folder location where you would like to write a list of the folders contained within it (example syntax: cd D:\Example\TUFLOW\model\grid then press Enter)
  4. Write a text file listing the folder contents using the following syntax: dir > filename.txt

A text file called filename.txt will be written containing a list of all the files contained within the folder.


Example Application - Stitching Together ALS Data Tiles

This DOS file report is useful during TUFLOW modelling if ALS topography data has been provided in tile format for a catchment. In some situations over 500 *.asc files may make up a complete study area. Rather than stitching the data into a single topography dataset using GIS software, data layering within the TGC can be used to read each *.asc ALS tile into the TUFLOW flood model.

  1. Open filename.txt in Notepad++ or UltraEdit.
  2. Turn on column edit mode.
    • This is done in Notepad++ by holding in Alt prior to and during a selection
    • This is done in UltraEdit by holding in Alt+C prior to and during a selection
  3. Select and copy the .asc file names.
  4. Open the TUFLOW Geometry Control (TGC) File. Set the global model elevation to a value that's above all expected elevations with the topography dataset. We will use this value to check for any missing data or gaps between the ALS tiles after running the Tuflow model for the first time.
  5. Paste the .asc file name list to the TGC file.
  6. Add the necessary command syntax and file path details left of the .asc file names using the text editor in column mode.
  7. After running the TUFLOW model for the first time review topography check files _DEM_Z.flt and or _zpt_check. If the global model elevation value you have used is present this represents a gap in your ALS topography dataset that requires correction or additional data.