Downscales coarse-resolution raster data to a finer grid by fitting local linear regressions of a response, such as a climate variable, on one or more fine-resolution predictors, such as elevation and other terrain indices, within a moving window. Regression coefficients are estimated for every cell using summed-area tables, so the cost is independent of the window size, then resampled to the target resolution and applied to the fine-resolution predictors. Multiplicative and additive anomaly application downscale time series relative to a baseline climatology, following the regression-on-elevation approach used for high-resolution climate surfaces described in Karger et al. (2017) <doi:10.1038/sdata.2017.122>.
| Version: | 0.0.5 |
| Depends: | R (≥ 4.1.0) |
| Imports: | Rcpp (≥ 1.0.0), terra (≥ 1.7.0) |
| LinkingTo: | Rcpp, RcppArmadillo |
| Suggests: | knitr, raster, rmarkdown, sf, stars, svglite, testthat (≥ 3.0.0) |
| Published: | 2026-08-07 |
| DOI: | 10.32614/CRAN.package.topocast (may not be active yet) |
| Author: | Gilles Colling |
| Maintainer: | Gilles Colling <gilles.colling051 at gmail.com> |
| BugReports: | https://github.com/gcol33/topocast/issues |
| License: | MIT + file LICENSE |
| URL: | https://gillescolling.com/topocast/, https://github.com/gcol33/topocast |
| NeedsCompilation: | yes |
| SystemRequirements: | C++17 |
| Language: | en-US |
| Citation: | topocast citation info |
| Materials: | README, NEWS |
| CRAN checks: | topocast results |
| Reference manual: | topocast.html , topocast.pdf |
| Vignettes: |
Getting started with topocast (source, R code) How moving-window downscaling works (source, R code) |
| Package source: | topocast_0.0.5.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=topocast to link to this page.