Rectangle Neighborhood Focal Statistics
Overview
This tool performs focal statistics using a rectangular neighborhood.
How It Works
Focal statistics use the current cell as the focal cell, aggregate surrounding cell values within the specified neighborhood, and write the result back to the focal cell location. A rectangular neighborhood allows different horizontal and vertical extents.
Use Cases
- Summarize raster values in neighborhoods with different width and height.
- Apply directional smoothing or aggregation along a preferred axis.
- Use as an intermediate raster in a longer iXGIS neighborhood analysis workflow.
Parameters
| Parameter | Description | Notes |
|---|---|---|
| Input raster file | Raster file for focal statistics. | Required. |
| Rectangle center X offset | X offset of the rectangle neighborhood center. | Required. Default: 0. |
| Rectangle center Y offset | Y offset of the rectangle neighborhood center. | Required. Default: 0. |
| Rectangle half width | Half width of the rectangle neighborhood, in the raster coordinate system units. | Required. Default: 50. |
| Rectangle half height | Half height of the rectangle neighborhood, in the raster coordinate system units. | Required. Default: 50. |
| Statistical method | Statistic calculated from cell values in the rectangular neighborhood. | Required. Default: nan_average. Options: sum ignoring invalid values (nan_sum), maximum ignoring invalid values (nan_max), minimum ignoring invalid values (nan_min), range ignoring invalid values (nan_range), average ignoring invalid values (nan_average), variance ignoring invalid values (nan_variance). |
| Output raster file | Output raster containing the rectangular neighborhood focal statistics result. | Required. |
Steps
- Open the Geoprocessing Toolbox in iXGIS, go to Spatial Analysis Tools > Neighborhood Analysis > Focal Statistics, and start Rectangle Neighborhood Focal Statistics.
- Select the input raster file and confirm that it can be read correctly.
- Set the rectangle center offsets, half width, half height, and statistical method.
- Specify the output raster file and confirm the output path, format, and file name.
- Click Run. After the task completes, review the output value range and spatial pattern.
Notes
- Verify that the raster coordinate system, cell size, and units are appropriate for the width and height settings.