TrackTrap: An R-based computational tool for modeling pest phenology with automated weather integration

Understanding pest phenology is fundamental to integrated pest management (IPM), as constant pest monitoring provides timely information needed for informed management decisions throughout the growing season. Conventional tools and techniques for pest phenology modeling rely on routine trap monitoring to identify the reference event (biofix) and on growing degree days (GDD) to track subsequent developmental progress since the biofix. Manual compilation, cleaning, and processing of weather data from multiple sources can be time-consuming, error-prone tasks that can further delay the development and application of phenology models. Several resources on CRAN (Comprehensive R Archive Network) provide only partial support for pest monitoring workflows, with limited integration of raw trap data processing, automated weather retrieval, GDD calculation, and pest phenology visualization within a single package. In this paper, we present TrackTrap, an open-source R package that automates this workflow by using two meteorological Application Programming Interfaces (APIs), namely Daymet and Open-Meteo, to retrieve location-specific weather information for a user-specified date. As an alternative, users may instead provide weather data manually as a CSV file downloaded from the California Irrigation Management Information System (CIMIS). Following the user’s inputs, TrackTrap then processes JSON responses from Open-Meteo, weather data retrieved via the daymetr package for Daymet, or CSV data manually downloaded from the CIMIS website. Using pest-specific developmental thresholds stored in the package’s built-in database or user-supplied values, TrackTrap computes cumulative GDD using the simple-average method with a horizontal upper-temperature cutoff when specified or without an upper cutoff when explicitly selected. TrackTrap provides researchers and pest control advisors (PCAs) with an automated, reproducible script to compute degree-days beginning the day after biofix and visualize trap catches against accumulated degree days. The software and resources for accessing TrackTrap are freely available in the Zenodo and GitHub repositories.

Authors

Institutions

Publication Details

Journal
Agricultural and Environmental Modelling
Published
2026-11-03
DOI
https://doi.org/10.3897/aem.8.208963
Primary Topic
Insect behavior and control techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TrackTrap: An R-based computational tool for modeling pest phenology with automated weather integration

Santosh Bhandari, Lalit Kharel, Mahesh Ghimire
Agricultural and Environmental Modelling
Insect behavior and control techniques
article

TrackTrap: An R-based computational tool for modeling pest phenology with automated weather integration

Santosh Bhandari, Lalit Kharel, Mahesh Ghimire
article en

Abstract

Understanding pest phenology is fundamental to integrated pest management (IPM), as constant pest monitoring provides timely information needed for informed management decisions throughout the growing season. Conventional tools and techniques for pest phenology modeling rely on routine trap monitoring to identify the reference event (biofix) and on growing degree days (GDD) to track subsequent developmental progress since the biofix. Manual compilation, cleaning, and processing of weather data from multiple sources can be time-consuming, error-prone tasks that can further delay the development and application of phenology models. Several resources on CRAN (Comprehensive R Archive Network) provide only partial support for pest monitoring workflows, with limited integration of raw trap data processing, automated weather retrieval, GDD calculation, and pest phenology visualization within a single package. In this paper, we present TrackTrap, an open-source R package that automates this workflow by using two meteorological Application Programming Interfaces (APIs), namely Daymet and Open-Meteo, to retrieve location-specific weather information for a user-specified date. As an alternative, users may instead provide weather data manually as a CSV file downloaded from the California Irrigation Management Information System (CIMIS). Following the user’s inputs, TrackTrap then processes JSON responses from Open-Meteo, weather data retrieved via the daymetr package for Daymet, or CSV data manually downloaded from the CIMIS website. Using pest-specific developmental thresholds stored in the package’s built-in database or user-supplied values, TrackTrap computes cumulative GDD using the simple-average method with a horizontal upper-temperature cutoff when specified or without an upper cutoff when explicitly selected. TrackTrap provides researchers and pest control advisors (PCAs) with an automated, reproducible script to compute degree-days beginning the day after biofix and visualize trap catches against accumulated degree days. The software and resources for accessing TrackTrap are freely available in the Zenodo and GitHub repositories.

Agricultural and Environmental ModellingVol. 8
University of Nebraska–Lincoln (US), University of California System (US), University of California, Davis (US)
Openalex Percentile: Top 16%
Insect behavior and control techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon