Focal#
Caution
Focal operations use dask.array.map_overlap. Each chunk dimension
must be larger than the kernel depth (typically 1 cell for a 3x3
kernel). Chunks smaller than the depth produce wrong results.
Note
mean and focal_stats output float32; hotspots outputs
int8 confidence bands. Both mean and hotspots exclude NaN
neighbours from their neighbourhood computation.
Apply#
|
Returns custom function applied array using a user-created window. |
Hotspots#
|
Identify statistically significant hot spots and cold spots in an input raster using the Getis-Ord Gi* statistic. |
Mean#
|
Returns Mean filtered array using a 3x3 window. |
Bilateral#
|
Apply a bilateral filter for feature-preserving smoothing. |
GLCM Texture#
|
Compute GLCM texture metrics over a sliding window. |
Edge Detection#
|
Compute the horizontal gradient of a raster using the Sobel operator. |
|
Compute the vertical gradient of a raster using the Sobel operator. |
|
Compute edges using the Laplacian (second-derivative) operator. |
|
Compute the horizontal gradient of a raster using the Prewitt operator. |
|
Compute the vertical gradient of a raster using the Prewitt operator. |
Focal Statistics#
|
Calculates, for all inner cells of an array, the 2D convolution of each cell. |
Generates an annulus (ring-shaped) kernel of a given cellsize and radius. |
|
Calculates cell size of an array based on its attributes. |
|
Generates a circular kernel of a given cellsize and radius. |
|
|
Validates a custom kernel. |
|
Calculates statistics of the values within a specified focal neighborhood for each pixel in an input raster. |