fastfocal: Fast Multiscale Raster Extraction and Moving Window Analysis with FFT (original) (raw)
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 |
| DOI: | 10.32614/CRAN.package.fastfocal |
| Author: | Ho Yi Wan |
| Maintainer: | Ho Yi Wan |
| BugReports: | https://github.com/hoyiwan/fastfocal/issues |
| License: | MIT + file |
| 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 |
Documentation:
Downloads:
Linking:
Please use the canonical formhttps://CRAN.R-project.org/package=fastfocalto link to this page.