Aller au contenu principal

Square Neighborhood Focal Statistics

Overview

This tool performs focal statistics using a square 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 square neighborhood uses equal horizontal and vertical extents.

Use Cases

  • Smooth or summarize raster values within a fixed square neighborhood.
  • Apply local statistics where equal row and column coverage is required.
  • Use as an intermediate raster in a longer iXGIS neighborhood analysis workflow.

Parameters

ParameterDescriptionNotes
Input raster fileRaster file for focal statistics.Required.
Square center X coordinateX coordinate of the square neighborhood center.Required. Default: 0.
Square center Y coordinateY coordinate of the square neighborhood center.Required. Default: 0.
Square half side lengthHalf side length of the square neighborhood, in the raster coordinate system units.Required. Default: 50.
Statistical methodStatistic calculated from cell values in the square 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 fileOutput raster containing the square neighborhood focal statistics result.Required.

Steps

  1. Open the Geoprocessing Toolbox in iXGIS, go to Spatial Analysis Tools > Neighborhood Analysis > Focal Statistics, and start Square Neighborhood Focal Statistics.
  2. Select the input raster file and confirm that it can be read correctly.
  3. Set the square center coordinates, half side length, and statistical method.
  4. Specify the output raster file and confirm the output path, format, and file name.
  5. 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 half side length setting.