The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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.

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 ORCID iD [aut, cre]
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

Documentation:

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)

Downloads:

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

Linking:

Please use the canonical form https://CRAN.R-project.org/package=fastfocal to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.