-
Notifications
You must be signed in to change notification settings - Fork 3
Raster Tools Reclass by Table
This tool Reclassifies (or changes) the values of the input cells of a raster using a remap table.The tool uses the standard ArcGIS ‘Reclass by Table (Spatial Analyst)’ tool. For more detailed help see ESRI Help for the ‘Reclass by Table (Spatial Analyst)’ tool.
Table for Rasters: This is the input table, usually the results table generated by the Geodata > Search tool, but it can be any table with a field containing the full path to the rasters you want to clip. If the Input Table is a DBF, or a table in an ESRI File Geodatabase, then you can select a subset of rows in ArcMap and only those rows will be processed by the tool.
Field for Raster: Select the field from the 'Table for Rasters' that contains the full path to the raster items you want to process.
Remap table: Table holding fields defining value ranges to be reclassified and the values they will become. See Table below for an example.
- TIP: You need to create this table. The most common method to do this is to copy the raster attribute table and add extra fields to it, i.e. add the ‘From’, ‘To’ and ‘Output’ fields.
Field for From Value: Field holding the beginning value for each value range to be reclassified. This is a numeric field of the input remap table
Field for To Value: Field holding the ending value for each value range to be reclassified. This is a numeric field of the input remap table.
Field for Output Value: Field holding the integer values to which each range should be changed. This is an integer field of the input remap table.
| From | To | Output |
|---|---|---|
| 0 | 25 | 1 |
| 26 | 50 | 2 |
| 51 | 75 | 3 |
| 76 | 100 | 4 |
Example of a 'Remap table’ that reclassifies a raster dataset from 0-100 range to integer classes 1-4.
- TIP: To reclassify individual values, use a simple remap table of two fields. The first field identifies the value to reclassify, and the other field identifies the value to assign to it. Set the 'To’ field value the same as the 'From’ field value. The value to assign to the output is 'Output’ field value.
Output Workspace: This is the location for the Grid Garage results table containing the list of geodata processed by the tool as well as any data outputs. If the tool encounters any errors when processing the input geodata then a second results table will be generated, with a ‘_FAIL’ suffix, listing the input geodata that failed and any ESRI error messages.
If you have set the ArcGIS ‘Workspace' parameter in the Geoprocessing > Environment Settings then this path will be used as the default. You can use this default path or click the folder button to select a new output location which can be a folder or File Geodatabase. If you specify a folder then the Results Table will be written to a comma-delimited (CSV) text file, if you specify a File Geodatabase it will be written as a Geodatabase Table.
Result Table Name: You can choose to use the default table name or specify a different name for the Grid Garage results table. The Grid Garage results table reports on a range of different properties for each of the geodata items in the 'Table for Geodata' input table. See the Grid Garage User Manual for a description of all the properties reported on.
If the tool encounters any errors when processing any of the geodata then a second results table will be generated, with a ‘_FAIL’ suffix, listing the input geodata that failed and any ESRI error messages. If you choose a folder for the Output Workspace then the result table will be written to a comma-delimited (CSV) text file which will not allow you to select rows for processing when using the table as input for other Grid Garage Tools.
Result Table file name: The default name will always take the form of ‘ReclassRasterTool_date_time’, where ‘date’ and ‘time’ are the date and time that the tool was run.
Missing Values: Denotes whether missing values in the reclass table retain their value or get mapped to NoData. Select from:
- DATA — Signifies that if any cell location on the input raster contains a value not present or reclassed in a remap table, the value should remain intact and be written for that location to the output raster. This is the default.
- NODATA — Signifies that if any cell location on the input raster contains a value not present or reclassed in a remap table, the value will be reclassed to NoData for that location on the output raster.
Output File Workspace (optional): If you want the output geodata files to be saved in a different location to the ‘Output Workspace’ you can select a new location (folder or File Geodatabase, depending on the output file type). The result tables will still be written to the ‘Output Workspace’ specified above.
Output Filename Prefix (optional): Any text you enter in this input box will be added as a prefix (at the beginning) for all output file names.
Output Filename Suffix (optional): Any text you enter in this input box will be added as a suffix (at the end) for all output file names.