wsu-das / degreedays
Library providing Degree Day calculation
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/wsu-das/degreedays
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: ^9.6
This package is not auto-updated.
Last update: 2025-10-02 00:03:10 UTC
README
The calculator offers two methods for calculating degree-days using daily temperatures and upper/lower cutoff(s):
degreedays()
(aliasdd()
): calculates using the single-sine method more infodegreedaysAvg()
: less accurate, it uses an approximate formula using just the mean temperature
use WsuDas\Degreedays\Calculator; $dd = Calculator::degreedays($tmax, $tmin, $lower, $upper, $cutoff);