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

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() (alias dd()): calculates using the single-sine method more info
  • degreedaysAvg(): less accurate, it uses an approximate formula using just the mean temperature
use WsuDas\Degreedays\Calculator;

$dd = Calculator::degreedays($tmax, $tmin, $lower, $upper, $cutoff);