TrackTrap: Calculate and Visualize Degree-Days for Pest Monitoring

Combines pest trap observations with daily temperatures to calculate and visualize cumulative degree-days. Temperature inputs include 'Daymet' <https://daymet.ornl.gov>, 'Open-Meteo' <https://open-meteo.com/>, reports from the California Irrigation Management Information System ('CIMIS') <https://cimis.water.ca.gov>, and user-supplied daily weather data. Degree-days are calculated using the simple-average method with either an upper threshold applied to the daily mean or an explicitly selected calculation without an upper cutoff. The first positive trap count defines the biofix for every pest, with accumulation beginning on the following day. Negative daily degree-day values are set to zero. Users can provide temperature thresholds and optional thermal reference values. Thermal reference markers and their multiples do not independently establish flight or generation identities. Complete daily calculations and weather provenance are retained with the output to support reproducibility.

Version: 1.1.0
Depends: R (≥ 3.5.0)
Imports: daymetr, dplyr, ggplot2 (≥ 3.4.0), httr, magrittr, utils, rlang, tools
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-10-29
DOI: 10.32614/CRAN.package.TrackTrap
Author: Santosh Bhandari [aut, cre], Lalit Kharel [aut], Mahesh Ghimire [aut]
Maintainer: Santosh Bhandari <santoshbhandari4556 at gmail.com>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: NEWS
CRAN checks: TrackTrap results

Documentation:

Reference manual: TrackTrap.html , TrackTrap.pdf
Vignettes: Using a manually downloaded CIMIS CSV with TrackTrap (source, R code)

Downloads:

Package source: TrackTrap_1.1.0.tar.gz
Windows binaries: r-devel: TrackTrap_1.1.0.zip, r-release: TrackTrap_1.1.0.zip, r-oldrel: TrackTrap_1.1.0.zip
macOS binaries: r-release (arm64): TrackTrap_1.1.0.tgz, r-oldrel (arm64): TrackTrap_1.1.0.tgz, r-release (x86_64): TrackTrap_1.1.0.tgz, r-oldrel (x86_64): TrackTrap_1.1.0.tgz
Old sources: TrackTrap archive

Linking:

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