Difference between revisions of "ASC to ASC"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=Introduction= | =Introduction= | ||
asc_to_asc.exe is a utility used for generating the difference between two .asc (ESRI ASCII grid) files. <br> | asc_to_asc.exe is a utility used for generating the difference between two .asc (ESRI ASCII grid) files. <br> | ||
− | This utility is useful for comparing and processing TUFLOW outputs from different .2dm meshes, which can | + | This utility is useful for comparing and processing TUFLOW outputs from different .2dm meshes, which can't be compared with the <u>[[DAT_to_DAT| dat_to_dat.exe]]</u>.<br> |
The input grids are generally processed using the TUFLOW_to_GIS utility described <u>[[TUFLOW_to_GIS|here]]</u>. Both .asc files must be of the same row/column dimensions. | The input grids are generally processed using the TUFLOW_to_GIS utility described <u>[[TUFLOW_to_GIS|here]]</u>. Both .asc files must be of the same row/column dimensions. | ||
+ | |||
=Options (switches= | =Options (switches= | ||
A list of the available switches is provided in the table below:<br> | A list of the available switches is provided in the table below:<br> |
Revision as of 10:30, 10 September 2011
Introduction
asc_to_asc.exe is a utility used for generating the difference between two .asc (ESRI ASCII grid) files.
This utility is useful for comparing and processing TUFLOW outputs from different .2dm meshes, which can't be compared with the dat_to_dat.exe.
The input grids are generally processed using the TUFLOW_to_GIS utility described here. Both .asc files must be of the same row/column dimensions.
Options (switches
A list of the available switches is provided in the table below:
Switch | Description |
---|---|
"-b" | Run the utility in batch mode, this suppresses the prompt to press enter at the end of processing. Used in .bat files where two or more files are to be processed. |
"-dif" | Takes the difference between the first two .asc files, the second grid is subtracted from the first. If an optional third .asc file is specified, this is used as the output file, otherwise, asc_to_asc creates its own output filename using the names of the two input .dat files. The output is the first .asc file minus the second .asc file.
Two .asc grids are output:
|
"-out <output grid name>" | Specify the output filename for the new grid. This overwrites the a third grid if using the -dif option described above. Note: a space is required between the -out and the filename. |
"-max" | Determines the maximum value in all the input .asc files. Two output grids are created:
|
"-cd<cutoff value>" | Outputs a new file only where the value is greater than the cutoff value.
|
Examples
- asc_to_asc.exe -out difference.asc -dif after_h.asc before_h.asc
Creates new grids comparing the differences in flood levels and extents for:
"difference.asc" = "after_h.asc" - "before_h.asc" - asc_to_asc.exe -max Q100_30min_h.asc Q100_45min_h.asc Q100_60min_h.asc
Creates a new grid containing the maximum of the 3 input water level grids. - asc_to_asc.exe -out Q100_Max_Levels.asc -max Q100_30min_h.asc Q100_45min_h.asc Q100_60min_h.asc
As per item 2 above, but specifies the output name "Q100_Max_Levels.asc". - asc_to_asc.exe -cd0.1 depth.asc
Creates a new depth grid only where the depth is greater than 0.1m. - asc_to_asc.exe -cd0.1 depth.asc. levels.asc
Creates a new level grid only where the depth is greater than 0.1m. - asc_to_asc.exe -cd0.1 -out filtered_levels.asc. depths.asc levels.asc
As per Example 3, but outputs to "filtered_levels.asc".
Difference Examples
Maximum Example
Cutoff Value Examples
Up |
---|
Back to TUFLOW Utilities |