# Homepage quality heuristic — V2.2.1

This is an uncalibrated product heuristic for comparing offshore forecasts, not an observed surf report, a safe-to-surf assessment or a prediction of breaking-face height. No statistical validation against DMJ observations has been performed. Labels such as EPIC express this heuristic only. Sandbars, actual faces, rips, pollution, crowding and jetty diffraction are not predicted.

## Wave height and daily/hourly selection

The initial ordinary launch displays today's Pacific-calendar-day average of all finite modeled offshore significant wave heights, Hs, with the number of available hours and partial coverage shown. It is the arithmetic mean of hourly Hs, not a mean breaking-face height or a newly integrated wave statistic. Missing hours never become zero. Dates preserve actual UNIX timestamps and DST hours. An intentional app update preserves the prior station/date/hour and observation draft; a normal new launch starts today's daily summary while keeping station/model/thermal preferences.

Choosing another day restores its daily average. Direct chart inspection switches to that actual hour; a Daily average button returns to the day. Hourly graphs retain their canonical selected timestamp even while the top panel is summarizing the day. The water panel shows an eligible recent regional buoy measurement for today's daily overview; otherwise it shows the daily mean modeled SST if at least 75% of that day's forecast rows have temperatures. A future day never reuses today's buoy as its forecast. Hourly inspection retains the existing strict time-matched observation/model selection and unchanged wetsuit bands. A daily SST mean has a daily valid interval, not an invented observation timestamp.

## Required evidence and hourly points

Essential inputs are finite modeled offshore Hs, primary swell period (>0–40 s), primary swell direction (0–360° FROM), wind speed (0–200 mph) and wind direction (0–360° FROM), paired by the same forecast timestamp. Missing or invalid essentials yield UNAVAILABLE with each exact field named, including per-day missing-hour counts. Breaking-surf calibration, tide, gusts, air and water temperature are not prerequisites. Primary swell height is useful supporting evidence but is optional: if it is absent while all essentials exist, the rating is PROVISIONAL and capped at GOOD. FLAT requires both Hs and primary swell height <0.5 ft AND all essential swell/wind inputs. If swell height is absent, FLAT cannot be inferred. Gusts remain visible but are not separately scored.

All following weights and thresholds are chosen application rules, not NOAA/CDIP coefficients:

| Factor | Points |
|---|---|
| Offshore Hs, ft | <1.5: 8; 1.5–<3: 20; 3–6: 28; >6–8: 20; >8–12: 10; >12: 0 |
| Primary swell period, s | <7: 0; 7–<9: 5; 9–<12: 12; ≥12: 20 |
| DMJ angular exposure | ≤45° from historical seaward normal: 14; >45–75°: 7; >75°: 0 |
| Calm wind | ≤3 mph, any direction: 30 |
| Offshore wind | >3–8 mph: 30; >8–12: 20; >12–18: 8; >18: 0 |
| Cross-shore wind | >3–8 mph: 18; >8–12: 8; >12: 0 |
| Onshore wind | >3–6 mph: 12; >6–10: 4; >10: 0 |

Wind direction is FROM: within 55° of the seaward beach normal is onshore; at least 125° away is offshore; otherwise cross-shore. DMJ uses the existing NOAA-derived historical 243° normal. This coarse angular comparison does not perform nearshore refraction, sheltering or a swell transfer function. Other stations retain their existing approximate shoreline references for wind; their exposure is unverified, receives only a neutral 7 points and cannot exceed GOOD. Their forecasting models are unchanged.

Scores map to POOR <32, BELOW AVERAGE 32–<46, FAIR 46–<58, FAIR/GOOD 58–<68, GOOD 68–<80, GREAT 80–<90, EPIC ≥90. FLAT is the separate minimal-energy condition above.

Caps apply after scoring: onshore wind ≥18 mph or any wind ≥30 mph gives POOR; onshore ≥12 gives at most BELOW AVERAGE. Hs <1.5 gives at most BELOW AVERAGE; >8 gives at most FAIR; >12 gives POOR with an elevated-energy caution. Swell >75° from the verified normal gives at most FAIR. Lead time ≥7 days gives at most FAIR. EPIC additionally requires 2–6 ft offshore Hs, period ≥12 s, and calm ≤3 mph or offshore ≤8 mph. Thus a large swell alone never grants EPIC. These thresholds are not universal hazard boundaries.

Tide effects have **zero score weight**: La Jolla/Newport regional predictions lack a validated local quality response and datum transfer at these breaks. Forecast confidence is limited even for complete near-term data; stale data disables ratings, extended lead time caps them, and missing hourly inputs reduce coverage. No probabilistic confidence percentage is claimed.

## Daily aggregation

Every hour is assessed independently with the same essential input requirements. A daily rating needs at least six paired hours and at least 50% of returned hourly timestamps. Missing values are never synthesized. Any incomplete daily coverage is PROVISIONAL, displays rated/total hours, and records the exact missing fields and counts. With fewer paired hours the daily rating is UNAVAILABLE even if all 24 wave heights exist. Hourly ratings remain available for individually supported hours.

FULL FORECAST RATING means all essential hourly inputs plus primary swell height are available, the sources are recent/current-cycle, local exposure is verified, and the horizon is less than seven days. For a daily FULL label, all returned hourly rows must meet those conditions. FULL refers to input completeness, not measured accuracy or validation.

PROVISIONAL FORECAST RATING is used when essentials exist but supporting swell height or verified local exposure is absent, the outlook is ≥7 days, daily coverage is partial, or sources are in the bounded cache grace period. Every provisional rating is capped at GOOD (other stricter caps still apply). Missing exposure never earns an offshore or swell-exposure benefit: an existing approximate bearing can supply a qualified wind classification; absent geometry gets no swell-direction points and at most FAIR. The compact label identifies saved sources, exposure uncertainty, missing supporting height, extended outlook, or partial coverage. Details give the full reasons and independent source retrieval times.

Daily scores average supported hourly capped scores; they never score an averaged direction or claim the best hour represents the day. At least 80% of supported hours must themselves be EPIC for daily EPIC. If at least 25% of supported hours are BELOW AVERAGE/POOR/FLAT, daily quality is at most FAIR. These remain uncalibrated application rules.

## Source age, partial refresh and provenance

The 30-minute refresh interval is NOT a hard forecast validity cutoff. A same-cycle source retrieved within 30 minutes can support FULL evidence. At 30 minutes to three hours, complete cached essential inputs may support only PROVISIONAL quality while a refresh is pending or failed. A recent source retained after a failed/partial refresh is also disclosed as provisional. A source older than three hours, with unknown/invalid retrieval time, or from a previous 05:00 Pacific cycle is unusable for ratings. Three hours is a conservative application cache policy, not a scientifically validated skill horizon or a substitute for a provider issue timestamp. FULL/PROVISIONAL never mean a calibrated statistical probability.

Marine and weather/model source timestamps and cycle keys are tracked independently. A successful marine refresh cannot erase a still-usable wind source or renew its age. If a newly fetched source explicitly contains null values, those nulls replace the prior source and are NOT filled from older runs. Sources are joined at exact UNIX timestamps; no missing hour is manufactured. Selected GFS/ECMWF wind caches use the same age/cycle policy and never silently substitute another wind model. Incomplete caches do not suppress a network refresh on spot selection; partial failures retry after one minute.

The status text distinguishes active updating, saved sources and failed refreshes. Provider validation/transport failures and each source's retrieval time appear in Rating basis & limitations. Weather cancellation/deadlines cover JSON response-body consumption as well as headers; a stalled body or server error can use the existing fixed Netlify weather proxy with the exact same provider/model/query. Client 4xx/provider request errors do not trigger a fallback. Parent/spot cancellation still prevents fallback and abandoned responses.


## Colors and accessibility

| Label | Requested color | Display text color |
|---|---|---|
| EPIC | #9333EA | #9333EA |
| GREAT | #0891B2 | #0891B2 |
| GOOD | #16A34A | #16A34A |
| FAIR/GOOD | #929E20 | #89951E |
| FAIR | #B88900 | #B88900 |
| BELOW AVERAGE | #EA580C | #EA580C |
| POOR | #DC2626 | #DC2626 |
| FLAT | #737373 | #737373 |

The large number, FT unit and ≥24px bold label inherit one color variable. FAIR/GOOD is slightly darkened because its requested shade is below 3:1 on white. All displayed colors meet 3:1 for large bold text. Small explanations remain neutral high-contrast text. Color is never the only indication: the label is always written out. Charts stay monochrome.

## Source foundation

- [Open-Meteo marine fields, model resolution and time-series semantics](https://open-meteo.com/en/docs/marine-weather-api). Hourly SST output is from a coarser ocean-temperature model; no claim of hourly beach measurements.
- Existing [DMJ scientific methodology](./dmj-data/METHODOLOGY.md) and source registry document the historical NOAA geometry and CDIP/NOAA evidence. These sources do not validate this rating rubric.
- Existing [water/wetsuit methodology](./INTERACTION_AND_WATER_V2_1.md). Its measured/model distinction, station coordinates and recommendation rules remain unchanged.

The new homepage's camera is a regional Oceanside Pier view, never labeled DMJ. No iframe is created before explicit Load. Its URL disables autoplay, starts muted, and playback unloads offscreen/on navigation/backgrounding independently of narration. Camera availability and embeds are controlled by the third-party operator; the YouTube and Visit Oceanside external fallbacks remain.
