GRID to GRID draft: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 43:
*Converts the file "DEM.asc" to.flt format.<br>
:<tt>grid_to_grid.exe -conv -flt DEM.asc</tt>
* Converts an
:<tt>grid_to_grid.exe -conv -tif DEM_M01.asc -co COMPRESS=LZW -co PREDICTOR=2</tt>
* Converts GeoTIFF to a Cloud Optimised GeoTIFF. Requires <tt>-out</tt> flag since the extension for COG is also .tif and the default output file would be the same as the input file.<br>
Line 55:
Examples:<br>
*Creates a new grid containing the maximum of the 3 input water level grids.<br>
:<tt>grid_to_grid.exe -max Q100_30min_h.tif Q100_45min_h.
*As per item 2 above, but specifies the output name "Q100_Max_Levels.
:<tt>grid_to_grid.exe -out Q100_Max_Levels.
*Wildcard character "*" is supported in filenames.<br>
:<tt>grid_to_grid.exe -out Q100_Max_Levels.
* Runs a maximum operation on all FLT grids in a given location and outputs to a GeoPackage raster.<br>
:<tt>grid_to_grid.exe -max -out "output_grids.gpkg >> maximum_h" *.flt</tt>
Line 70:
*A second grid with a “_wd” suffix is output to indicate which .asc grid cells were once wet and are now dry (value -99) or once dry and are now wet (value +99 with first .asc to be the developed case and second .asc to be the existing case). Importing this grid into Vertical Mapper creates a .grc (grid classification) grid that has two categories: “Was Wet Now Dry” and “Was Dry Now Wet”. This grid is particularly useful for displaying areas that were previously inundated or previously flood-free.<br>
Example:
*Creates new grids comparing the differences in flood levels and extents for: "difference.
:<tt>grid_to_grid.exe -out difference.
*Runs a difference operation on GeoTIFF outputs.<br>
:<tt>grid_to_grid.exe -dif proposed.tif existing.tif</tt>
Line 91:
Examples:
*Creates a new depth grid only where the depth is greater than 0.1m.<br>
:<tt>grid_to_grid.exe -cd0.1 depth.
*Creates a new level grid only where the depth is greater than 0.1m.<br>
:<tt>grid_to_grid.exe -cd0.1 depth.
*As per the example above, but sets the output name as "filtered_levels.
:<tt>grid_to_grid.exe -cd0.1 -out filtered_levels.
==Resize==
Line 103:
This is the defualt processing method, which can also be specified with the '''-rm_avg''' (resize method - average) input flag. When processing for each tile in the new grid, the average of all non-null values in the input grid is taken. For example with a resize factor of 5, the 25 values in the input grid are averaged.<br>
Example:
*Creates a new 10m DEM
:<tt>grid_to_grid.exe -resize5 -out DEM_10m.
===Minimum===
Alternative processing method for resize, specified with the '''-rm_min''' (resize method - minimum) flag. At each output grid the values is the minimum of the values in the input grid.<br>
Example:
*Creates a new 10m DEM
:<tt>grid_to_grid.exe -resize5 -rm_min -out DEM_10m_min.
===Maximum===
Alternative processing method for resize, specified with the '''-rm_max''' (resize method - maximum) flag. At each output grid the values is the maximum of the values in the input grid.<br>
Example:
*Creates a new 10m DEM
:<tt>grid_to_grid.exe -resize5 -rm_max -out DEM_10m_max.
==Transform==
Line 122:
Examples:
*Multiplies all values by 0.3048.<br>
:<tt>grid_to_grid.exe -trans_m0.3048 DEM.
*Multiplies all values by 0.3048 and then adds 10.0.<br>
:<tt>grid_to_grid.exe -trans_m0.3048 -trans_c10 DEM.
==Decimal==
Converts
Example:
*Converts all .
:<tt>grid_to_grid.exe -conv -asc -decimal5 *.
==Classify==
Classifies the grid based on the input classifications.
{| class="wikitable"
Line 148:
Examples:
*Outputs a classified grid, based on the cut off values and names in the "classifications.csv".<br>
:<tt>grid_to_grid.exe -classify classifications.csv results_VMax.
*If using vertical mapper the -grc option can be used to create the
:<tt>grid_to_grid.exe -RGB -grc -classify depth_classify.csv results_dMax.
:{| class="wikitable"
Line 183:
'''NOTE:''' For the output GIS file, the '''dz''' attribute is set to 0.0 regardless of the value set in the input field. <br>
Example:
*<tt>grid_to_grid.exe -brkline 2d_zsh_breaklines_L.shp DEM.
*<tt>grid_to_grid.exe -brkline 2d_zsh_breaklines_L.gpkg DEM.tif</tt>
Line 242:
|Above 5.0|| Above 5.0 || 973 || 0.06
|}
*Example
:<tt>grid_to_grid.exe –histogram histogram_bins.csv results_d_Max.
==Extract 1D Model Inputs==
Line 365:
==Calibration Points==
'''"-cp <cp_file>"'''<br>
For appending the value from a
'''"-config <config_file>"''' (optional)<br>
Points to a csv file containing accuracy thresholds and style control options, e.g. symbol, colour and size.<br>
Line 373:
The second search radius used to search for maximum and minimum values in meters.<br>
Example usage:
*<tt>grid_to_grid.exe -cp Flood_Marks.MIF -config diff_config.csv -cpsd100 -cpmm50 results_h_Max.
==Statistics==
<big>'''"-stat<type>"'''</big>
As of the 2017-10-AA build, the grid_to_grid.exe utility allows the user to perform a number of statistical analyses on a group of input grids
The available options are:
Line 397:
* An SRC grid: a grid listing which source input grid the median result value came from (a corresponding .csv file is also written as a legend)<br>
Example usage:
*<tt>grid_to_grid.exe -statMedian Q100_30min_TP1_h.
[[File: asc_to_asc_statsMedian_eg.PNG|1000px|]]<br>
Line 411:
* An SRC grid: a grid listing which source input grid the result value came from or was the next above (a corresponding .csv file is also written as a legend)<br>
Example usage:
*<tt>grid_to_grid.exe -statMean Q100_30min_*_h.
==="-statFrac"===
Line 419:
* A Frac grid: the resulting Fraction value<br>
Example usage:
*<tt>grid_to_grid.exe -statFrac Q100_30min_*_h.
==="-statMin"===
Line 428:
* An SRC grid: a grid listing which source input grid the minimum result value came from (a corresponding .csv file is also written as a legend)<br>
Example usage:
*<tt>grid_to_grid.exe -statMin Q100_30min_*_h.
==="-statMax"===
Line 437:
* An SRC grid: a grid listing which source input grid the maximum result value came from (a corresponding .csv file is also written as a legend)<br>
Example usage:
*<tt>grid_to_grid.exe -statMax Q100_30min_*_h.
==="-statAll"===
Line 447:
* A .csv file that contains the legend for all SRC grids<br>
Example usage:
*<tt>grid_to_grid.exe -statAll Q100_30min_*_h.
==="-statRank<integer id>"===
Line 456:
* An SRC grid: a grid listing which source input grid the ranked result value came from (a corresponding .csv file is also written as a legend)<br>
Example usage:
*<tt>grid_to_grid.exe -statRank5 Q100_30min_*_h.
==Flood Extent==
Returns a simple grid with value of 1 where the input grid has an active, non-zero value.<br>
Example usage:
*<tt>grid_to_grid.exe -fe results_dMax.
==Remap==
Line 472:
Examples:
*The utility can also remap additional map output grids (e.g. velocity, hazard and others) to the resolution of the DEM file, e.g.<br>
:<tt>grid_to_grid.exe -remap -wl lowres_h.
*The utility can also apply a buffer distance or add freeboard. For example, the below applies a buffer distance of 20m, and adds a freeboard of 0.2m to the original water level grid.<br>
:<tt>grid_to_grid.exe -remap -wl lowres_h.
:<tt>grid_to_grid.exe -remap -fb0.2 -bd20 -wl lowres_h.
Note that, for any output types other than depth, this utility does NOT interpolate the result from the coarser grid to the finer grid, but only extends/reduces the output extent to the dry/wet extent. More discussions on this function is documented here [[TUFLOW_Remapping | TUFLOW Remapping Tool]].<br>
|