Summary
Symbolizing a single-band raster using the Classified method requires a histogram to be built on the raster dataset. However, for a large-sized raster that has small cell sizes, for example, 30 x 30 cells, building a histogram for the entire raster dataset can be time-consuming.
The example below is a normalized difference vegetation index (NDVI) layer with the pixel size of approximately 3.28 feet. To symbolize the NDVI layer using the Classified method, a histogram must be built. However, given the fine resolution and large spatial extent, scanning through all the pixel values of the original large raster dataset to calculate histogram may take a significant amount of time. Hence, a quicker way to estimate and build the histogram is to resample the raster to a raster with reduced sampling size, build the histogram on the resampled raster, and import the histogram to the original raster.
Note:
Using the resampling technique, the resampled raster does not represent the original data distribution completely.
However, this method is a way to approximate the original distribution with a smaller sample size to estimate the histogram more quickly.
Procedure
The steps provided describe how to resample a large raster to a reduced resolution raster using the Resample Function, import the resampled raster's histogram to the original raster dataset using the Statistics and Histograms Function, and symbolizing the raster layer with Classified symbology.
- On the ArcMap main menu, click Windows > Image Analysis.
- In the Image Analysis window, enable and select the original raster.
- Click the Add Function button to open the Function Template Editor.
- Add and apply the Resample Function by the following the steps:
- In the Function Template Editor, right-click Identity Function > Insert Function > Resample Function.
- In the Raster Function Properties dialog box, set the original pixel size for Input cell size, and a larger pixel size for Output cell size to reduce the resolution of the output raster.
- Click OK to apply the function. This step generates a new layer that is a resampled raster with coarser spatial resolution.
- Right-click the new layer in the Table Of Contents > Properties to open the Layer Properties dialog box.
- Click the Symbology tab > Classified > OK.
- Click Yes on the Compute Histogram warning pop-up window.
- Save the resampled raster layer with histogram built as a layer file by right-clicking the layer > Save As Layer File.
- Open the Image Analysis window and add the Statistics and Histogram Function by the following steps:
- In the Image Analysis window, select the original raster dataset > Add Function.
- Right-click Identity Function > Insert Function > Statistics and Histogram Function.
- In the Raster Function Properties dialog box, for the Import Statistics and Histogram from File option, browse to the layer file saved in Step 8, and click OK.
- Click OK in the Function Template Editor to apply the function.
Note:
To view the imported histogram and symbolize the layer using the Classified method, open the Symbology window of the new layer generated in Step 9.