Difference between revisions of "DOS Directory File List"
Jump to navigation
Jump to search
Chris Huxley (talk | contribs) |
Chris Huxley (talk | contribs) |
||
Line 7: | Line 7: | ||
<li> Write a text file listing the folder contents using the following syntax: '''<tt>dir > filename.txt</tt>'''<br> | <li> Write a text file listing the folder contents using the following syntax: '''<tt>dir > filename.txt</tt>'''<br> | ||
</ol> | </ol> | ||
− | A text file called '''<tt>filename.txt</tt>''' will be written to the folder containing the files.<br> | + | A text file called '''<tt>filename.txt</tt>''' will be written to the folder containing the files. The file names are listed in the right-hand column.<br> |
[[File:DOS_File_List_007.PNG|500px]]<br> | [[File:DOS_File_List_007.PNG|500px]]<br> | ||
=Example Application - Stitching Together ALS Data Tiles= | =Example Application - Stitching Together ALS Data Tiles= |
Revision as of 16:46, 14 February 2018
User Steps
These steps can be followed to output a printout of all files contained within a folder:
- Open the DOS command prompt
- If necessary, change the drive location (for example, to change from the C drive to the D drive use the syntax: D: then press Enter)
- Change directory to the folder location where you would like to write a list of the files contained within it (example syntax: cd D:\Example\TUFLOW\model\grid then press Enter)
- Write a text file listing the folder contents using the following syntax: dir > filename.txt
A text file called filename.txt will be written to the folder containing the files. The file names are listed in the right-hand column.
Example Application - Stitching Together ALS Data Tiles
This DOS file report may be 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.
- Open filename.txt in Notepad++ or UltraEdit.
- Turn on column edit mode.
- In Notepad++ hold in Alt prior to and during a selection
- In UltraEdit hold in Alt+C prior to and during a selection
- In Notepad++ hold in Alt prior to and during a selection
- Select and copy the .asc file names.
- Open the TUFLOW Geometry Control (TGC) File. Set the global model elevation to a value that is above all expected elevations with the topography dataset. The command is:
Set Zpts == <value>
We recommend using this value to check for any missing data or gaps between the ALS tiles after running the TUFLOW model for the first time.
- Paste the .asc file name list into the TGC file.
- Add the necessary command syntax and file path details left of the .asc file names using your preferred text editor ( Notepad++ or UltraEdit) using column edit mode.
- After running the TUFLOW model for the first time, use the _DEM_Z.flt and / or _zpt_check simulation check files to confirm there are no topography data gaps. Complete a query search for the global model elevation value that was used (in this example = 2000). If the global model elevation value is present within the check files, this represents a gap in your ALS topography dataset that requires correction or additional data.