Difference between revisions of "DOS Directory File List"
Jump to navigation
Jump to search
Chris Huxley (talk | contribs) |
Chris Huxley (talk | contribs) |
||
Line 2: | Line 2: | ||
These steps can be followed to output a printout of all files contained within a folder: | These steps can be followed to output a printout of all files contained within a folder: | ||
<ol> | <ol> | ||
− | <li> Open the DOS command prompt. | + | <li> Open the DOS command prompt<br> |
− | <li> If necessary, change the drive location (example syntax: '''<tt>D:</tt>''' then press Enter) | + | [[File:DOS File List 001.PNG|300px]]<br> |
− | <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> If necessary, change the drive location (example syntax: '''<tt>D:</tt>''' then press Enter)<br> |
− | <li> Write a text file listing the folder contents using the following syntax: '''<tt>dir > filename.txt</tt>''' | + | [[File:DOS File List 002.PNG|300px]]<br> |
+ | <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)<br> | ||
+ | [[File:DOS File List 000.PNG|300px]]<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. | + | A text file called '''<tt>filename.txt</tt>''' will be written to the folder containing the files.<br> |
=Example Application - Stitching Together ALS Data Tiles= | =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. | + | 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. <br> |
<ol> | <ol> | ||
− | <li> Open '''<tt>filename.txt</tt>''' in <u>[[NotepadPlusPlus_Tips | Notepad++]]</u> or <u>[[UltraEdit_Tips | UltraEdit]]</u>. | + | <li> Open '''<tt>filename.txt</tt>''' in <u>[[NotepadPlusPlus_Tips | Notepad++]]</u> or <u>[[UltraEdit_Tips | UltraEdit]]</u>.<br> |
− | <li> Turn on column edit mode. | + | <li> Turn on column edit mode. <br> |
− | * | + | * In Notepad++ hold in '''<tt>Alt</tt>''' prior to and during a selection <br> |
− | * | + | * In UltraEdit hold in '''<tt>Alt+C</tt>''' prior to and during a selection <br> |
− | <li> Select and copy the .asc file names. | + | <li> Select and copy the .asc file names.<br> |
− | <li> 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: | + | [[File:DOS File List 004.PNG|300px]]<br> |
+ | <li> 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: <br> | ||
<font color="blue"><tt>Set Zpts </tt></font> <font color="red"><tt>== </tt></font> <tt><value></tt><br> | <font color="blue"><tt>Set Zpts </tt></font> <font color="red"><tt>== </tt></font> <tt><value></tt><br> | ||
− | 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. | + | 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.<br> |
− | <li> Paste the .asc file name list into the TGC file. | + | <li> Paste the .asc file name list into the TGC file.<br> |
− | <li> Add the necessary command syntax and file path details left of the .asc file names using your preferred text editor (<u>[[NotepadPlusPlus_Tips | Notepad++]]</u> or <u>[[UltraEdit_Tips | UltraEdit]]</u>) in column mode. | + | [[File:DOS File List 005.PNG|300px]]<br> |
− | <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>. Complete a query search for the global model elevation you set for the model. If the global model elevation value is present within the check file this represents a gap in your ALS topography dataset that requires correction or additional data. | + | <li> Add the necessary command syntax and file path details left of the .asc file names using your preferred text editor (<u>[[NotepadPlusPlus_Tips | Notepad++]]</u> or <u>[[UltraEdit_Tips | UltraEdit]]</u>) in column mode. <br> |
+ | [[File:DOS File List 006.PNG|300px]]<br> | ||
+ | <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>. Complete a query search for the global model elevation you set for the model. If the global model elevation value is present within the check file this represents a gap in your ALS topography dataset that requires correction or additional data.<br> |
Revision as of 16:29, 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
300px
- If necessary, change the drive location (example syntax: D: then press Enter)
300px
- 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)
300px
- 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.
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.
- 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) in column mode.
- After running the TUFLOW model for the first time, review topography check files _DEM_Z.flt and / or _zpt_check. Complete a query search for the global model elevation you set for the model. If the global model elevation value is present within the check file this represents a gap in your ALS topography dataset that requires correction or additional data.