Crandore Hub

fastfocal

Fast Multiscale Raster Extraction and Moving Window Analysis with FFT

Provides fast moving-window ("focal") and buffer-based extraction for raster data using the 'terra' package. Automatically selects between a 'C++' backend (via 'terra') and a Fast Fourier Transform (FFT) backend depending on problem size. The FFT backend supports sum and mean, while other statistics (e.g., median, min, max, standard deviation) are handled by the 'terra' backend. Supports multiple kernel types (e.g., circle, rectangle, gaussian), with NA handling consistent with 'terra' via 'na.rm' and 'na.policy'. Operates on 'SpatRaster' objects and returns results with the same geometry.

Versions across snapshots

VersionRepositoryFileSize
0.1.3 rolling source/ R- fastfocal_0.1.3.tar.gz 298.0 KiB
0.1.3 latest source/ R- fastfocal_0.1.3.tar.gz 298.0 KiB
0.1.3 2026-04-23 source/ R- fastfocal_0.1.3.tar.gz 298.0 KiB
0.1.3 2026-04-09 windows/windows R-4.5 fastfocal_0.1.3.zip 315.6 KiB

Dependencies (latest)

Imports

Suggests