wsu-das/degreedays

There is no license information available for the latest version (v1.0.0) of this package.

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

v1.0.0 2024-04-30 18:43 UTC

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() (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);