wsu-das / degreedays
There is no license information available for the latest version (v1.0.0) of this package.
Library providing Degree Day calculation
v1.0.0
2024-04-30 18:43 UTC
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: ^9.6
This package is not auto-updated.
Last update: 2025-04-02 21:42:05 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);