Using Raster Calculator statements to simplify data
(previous page)
Using a Reclassification tool
This is referred to sometimes as a density slice or simply “slice,” and reduces data to usable information. In QGIS, the reclassification tools require you to build a table, which is not easy. Instead, we’ll use a plugin called Raster Reclassifier.
First, let’s again visualize the results of the simplification in the Layer Styling Panel (without changing the data)
open the layer styling panel for the demo_DEM layer
you can see the min/max values at the top
for “Interpolation” above the colors, choose “discrete”
for “Mode” below the colors, choose “Equal Interval”
switch the Mode to “Quantile”
what’s happening?
The Raster Reclassifier plugin can be used to make binary, multiple, and index layers.
Choose the input layer and number of classification bins (the example below is 5 classes)
choose the input layer and the output file (good names are good metadata)
Actually….a better name might be “DEM_index_eqint5.tif” right? So you know on which layer the index is based…….
(note: we’re going to have some trouble because the tool rounds the minimum)
Select the method and number of categories, and press “extract” to get the values added to the table.
add the new reclassification values (here 1 thru 5).
Save the table (and the plot, see below), so you can try it again, but also as good metadata!
The methods are equal interval (each “bin” of elevation is the same, like our index of 59 m in the previous) and quantile (where the same area or number of cells will fall into each bin).
In ArcGIS Pro
Choose how you want the histogram divided (here is some ESRI help on how these methods work) The two most common methods are equal interval and equal area (known in ESRI-speak as “quantile”). The illustration above uses “equal interval.” These choices are also available for symbology of any layer (without changing the data)
These are the choices from the Reclassify tool, and similar choices are found in the Slice tool. The reclassification you choose has a huge impact on the nature of the output. Note the change in results and histograms from the data found in simplify project (to see the effect, I created histograms for the different reclass types illustrated below left in an older version of the software. I don’t think you can do this anymore).
Reclassify is the only good way to deal with discrete, non-numeric layers (like land use, e.g., pasture, roads, forest, lakes, etc) that have to be combined by hand (“manual” reclassification”)
Metadata are complicated. If you use a toolbox, it creates the geoprocessing history, but it is impossible to recover and difficult to read in that format (try it). Better to save the reclassification scheme directly from the tool, by clicking the “save” button. This operation stores an ArcMap table. You must highlight the classes you want to save before you save, or the table will be empty (way to go ESRI).