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.
Version: | 0.1.3 |
Depends: | R (≥ 4.1.0) |
Imports: | terra, graphics, grDevices, stats |
Suggests: | testthat (≥ 3.0.0), knitr, rmarkdown, dplyr, withr, spelling |
Published: | 2025-09-23 |
Author: | Ho Yi Wan |
Maintainer: | Ho Yi Wan <hoyiwan at gmail.com> |
BugReports: | https://github.com/hoyiwan/fastfocal/issues |
License: | MIT + file LICENSE |
URL: | https://hoyiwan.github.io/fastfocal/, https://github.com/hoyiwan/fastfocal, https://doi.org/10.5281/zenodo.17074691 |
NeedsCompilation: | no |
Language: | en-US |
Citation: | fastfocal citation info |
Materials: | README, NEWS |
CRAN checks: | fastfocal results |
Reference manual: | fastfocal.html , fastfocal.pdf |
Vignettes: |
Benchmarking fastfocal (source, R code) fastfocal: Fast Multi-scale Raster Extraction and Moving Window Analysis with FFT (source, R code) |
Package source: | fastfocal_0.1.3.tar.gz |
Windows binaries: | r-devel: fastfocal_0.1.3.zip, r-release: fastfocal_0.1.3.zip, r-oldrel: fastfocal_0.1.3.zip |
macOS binaries: | r-release (arm64): fastfocal_0.1.3.tgz, r-oldrel (arm64): fastfocal_0.1.3.tgz, r-release (x86_64): fastfocal_0.1.3.tgz, r-oldrel (x86_64): fastfocal_0.1.3.tgz |
Please use the canonical form https://CRAN.R-project.org/package=fastfocal to link to this page.