FA-71032 / Weather index computation / Member archive
Monthly heating and cooling degree days: heating accumulation operand · case 02
HDD totals carry half-degree fractions and disagree with published integer totals.
Case contract
daily entries are [tmax_F, tmin_F] with None for missing. A day with a missing value reuses the previous valid daily mean; missing days before any valid day are skipped. Round the daily mean half up to a whole degree, then HDD += 65 - m if m < 65, CDD += m - 65 if m > 65. Return [HDD, CDD].
Why this case matters
Energy billing normalisation and utility demand models use monthly HDD/CDD.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| month 3 | [52.5, 34] | [51, 34] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗