Weather and Climate Inputs for 'SWAT'
Overview
Provides workflows to prepare weather and climate time series from gridded and station data for 'SWAT' ('Soil and Water Assessment Tool'). Supports data extraction, aggregation, interpolation, quality control, unit conversion, and export of per-location model input files. For the underlying model, see Arnold et al. (1998) "Large Area Hydrologic Modeling and Assessment Part I: Model Development" doi:10.1111/j.1752-1688.1998.tb05961.x.
Breaking changes
- Removed the superseded
rasterpackage dependency and standardized spatial raster workflows onterraandSpatRaster. ts_to_area()now returns a multi-layerSpatRasterand preserves input file stems as layer names, such as2020-01-01.input_raster()no longer accepts legacyRasterLayer,RasterStack, orRasterBrickobjects. Convert these objects withterra::rast()before passing them to wcswatin.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-07-20
Documentation
The repository also keeps web-only articles.
- Help pages
- 32 (6 internal)includes a package overview page
- Examples that run
- 100%9 run in a plain check
- Exported functions with examples
- 38%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 3%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Releases over time
PRs over time
Commits over time
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/reginalexavier/wcswatin on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-12 · The repository has a site deploy workflow
pkgdown site last built 2026-09-12
Show all practicesHide 2 practices
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.0Latest
- 0.1.12026-07-19
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-07-19
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 2.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("wcswatin")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.