FAILURE MAP
← Case archive

FA-71030 / Weather index computation / Member archive

Monthly heating and cooling degree days: missing-day carry forward · case 05

Months with sensor outages report too few degree days.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
month 12[62, 0][76, 0]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 ↗