Package 'DegreeDayCalc'

Title: Degree-Day Phenology Calculator (Shiny Application)
Description: Provides a Shiny application to compute daily and cumulative degree-days from minimum and maximum temperatures using average, triangular, and sine-wave methods, optionally including an upper temperature threshold. The application maps cumulative thermal accumulation to user-defined developmental stage thresholds and allows exporting tabular and graphical results.
Authors: Victor Manuel Almaraz Valle [aut, cre] (ORCID: <https://orcid.org/0000-0002-3673-8002>), J. Concepción Rodríguez Maciel [aut], Gustavo Ramírez Valverde [aut], Jaime Alfredo Urzua Gutierrez [aut], Manuel Alejandro Tejeda Reyes [aut]
Maintainer: Victor Manuel Almaraz Valle <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2026-05-21 09:20:21 UTC
Source: https://github.com/almarazkrae-4081/degreedaycalc

Help Index


Compute degree-days from daily minimum and maximum temperatures

Description

Calculates daily degree-days (thermal units) from Tmin and Tmax using several common methods (average, triangular, sine). Optionally, an upper threshold (Tupper) can be applied in methods supporting it.

Usage

degree_days(
  Tmin,
  Tmax,
  Tbase,
  Tupper = NULL,
  method = c("average", "average_cut", "triangle", "triangle_upper", "sine",
    "sine_upper")
)

Arguments

Tmin

Daily minimum temperature (°C).

Tmax

Daily maximum temperature (°C).

Tbase

Base (lower developmental threshold) temperature (°C).

Tupper

Optional upper temperature threshold (°C). Required for "triangle_upper" and "sine_upper" methods.

method

Degree-day method. One of "average", "average_cut", "triangle", "triangle_upper", "sine", "sine_upper".

Value

A numeric value (degree-days) rounded to 3 decimals.


DegreeDayCalc

Description

Convenience wrapper to launch the Shiny application.

Usage

DegreeDayCalc()

Value

Runs a Shiny application.


Launch the DegreeDayCalc Shiny application

Description

Opens the Degree-Day Phenology Calculator Shiny app bundled with the package.

Usage

run_app()

Value

Runs a Shiny application.