SeaWolf-AI commited on
Commit
137b15a
·
verified ·
1 Parent(s): f28ea8e

Champions cards in board style, moved to bottom, WIN highlights in results timeline

Browse files
Files changed (1) hide show
  1. index.html +11 -10
index.html CHANGED
@@ -41,8 +41,8 @@ svg{width:100%;height:auto;display:block}.lg{display:flex;flex-wrap:wrap;gap:6px
41
  .mo{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px}.mc{background:rgba(4,11,24,.45);border:1px solid var(--line);border-radius:10px;padding:9px 10px;border-top:3px solid var(--cy)}.mc .m{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--mut)}.mc .w{font-weight:800;font-size:13px;margin-top:3px}.mc .e{font-size:12px;color:var(--mut)}
42
  .ol{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin-bottom:14px}.ot1{background:linear-gradient(180deg,#134a8f,#0b2a5c);border:1px solid #2a66b8;border-radius:10px;padding:8px 4px;text-align:center}.ot1 .dn{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--mut)}.ot1 .dd{font-size:11px;color:var(--mut)}.ot1 .tv{font-size:24px;font-weight:900;color:#fff;line-height:1.2}.ot1 .sp{font-size:10px;color:var(--cy);font-weight:700}
43
  @media(max-width:700px){.ol{grid-template-columns:repeat(5,minmax(0,1fr))}}
44
- .tw{overflow-x:auto}.ot{border-collapse:collapse;width:100%;min-width:1080px;font-size:13px}.ot th,.ot td{padding:6px 8px;text-align:right;border-bottom:1px solid rgba(29,63,120,.6);white-space:nowrap}.ot th:first-child,.ot td:first-child{text-align:left;position:sticky;left:0;background:#0f2a55}.ot th{color:var(--mut);font-size:11px;letter-spacing:.06em}.ot tr.dwo td{color:var(--cy);font-weight:800}.ot tr.obr td{color:var(--gold);font-weight:800}.ot th.pa{color:#b9c7e0}.ot th.td,.ot td.td{background:rgba(255,200,61,.10)}.ot th.td{color:var(--gold)}.ot th.fu{color:var(--cy)}.ot .cu{border-right:2px solid var(--line);color:var(--ink)}.er{display:block;font-size:10px;font-weight:700}.er.g{color:#7be495}.er.y{color:#ffd166}.er.r{color:#ff6b7d}
45
- .h3{margin:0 0 8px;font-size:13px;font-weight:700;color:var(--ink)}.wt{border-collapse:separate;border-spacing:3px;width:100%;min-width:720px;font-size:12px}.wt th{color:var(--mut);font-size:11px;letter-spacing:.06em;padding:4px 6px;text-align:center;white-space:nowrap}.wt th:first-child,.wt td:first-child{text-align:left;font-weight:700;color:var(--ink);white-space:nowrap;padding:5px 8px}.wt td.w{text-align:center;border-radius:6px;padding:5px 4px;font-weight:800;color:#061226;white-space:nowrap}.wt td.w small{display:block;font-weight:700;font-size:10px;opacity:.8}.wt td.e{text-align:center;color:var(--mut)}
46
  .note{color:var(--mut);font-size:13px;margin:0}.note b{color:var(--ink)}footer{color:var(--mut);font-size:12px;margin-top:18px}a{color:var(--cy)}#status{color:var(--mut);font-size:13px;margin-bottom:12px}
47
  </style></head><body>
48
  <div class="top"><span class="live"><i></i>LIVE</span><span class="brand">Global Weather Model <b>Leaderboard</b></span><span class="stamp" id="stamp">Loading…</span></div>
@@ -60,9 +60,6 @@ svg{width:100%;height:auto;display:block}.lg{display:flex;flex-wrap:wrap;gap:6px
60
  <div class="pn"><h2 id="h1">Most accurate model</h2><div id="champ"></div></div>
61
  <div class="pn dw"><h2>AI vs Physics (Supercomputer)</h2><div id="dwc"></div></div>
62
  </div>
63
- <div class="pn" style="margin-top:14px"><h2>Champions at a glance: who is no. 1</h2>
64
- <h3 class="h3">By period and forecast day, 24 cities</h3><div class="tw"><table class="wt" id="wper"></table></div>
65
- <h3 class="h3" style="margin-top:16px">By city and forecast day, 2026 year to date</h3><div class="tw"><table class="wt" id="wcity"></table></div><div class="lg" id="lg3"></div></div>
66
  <div class="pn" style="margin-top:14px"><h2 id="h2">Accuracy board</h2><div id="bars"></div></div>
67
  <div class="grid2">
68
  <div class="pn"><h2>Error by forecast day</h2><div id="curve"></div><div class="lg" id="lg1"></div></div>
@@ -72,6 +69,9 @@ svg{width:100%;height:auto;display:block}.lg{display:flex;flex-wrap:wrap;gap:6px
72
  <div class="ctl" style="margin:0 0 12px"><label>Outlook city<select id="ocity"></select></label></div>
73
  <div class="ol" id="otiles"></div><div class="tw"><table class="ot" id="otab"></table></div><p class="note" id="onote" style="margin-top:10px"></p></div>
74
  <div class="pn" style="margin-top:14px"><h2 id="h3">Monthly champions 2026</h2><div class="mo" id="mo"></div></div>
 
 
 
75
  <div class="pn" style="margin-top:14px"><h2>How it is scored</h2>
76
  <p class="note">Every day each model's forecast is recorded for up to 10 days ahead. When the observed value for a day is published, every forecast made for that day is scored and the cumulative record is updated, once a day. A forecast issued N days earlier is compared with the ERA5 daily maximum 2 m temperature for the same UTC day at each city. Lower RMSE ranks higher. Models are compared on the same cases: days and cities where every listed model issued a forecast. Type shows how a model works: <b>AI</b> models learn the forecast from data, <b>Physics (Supercomputer)</b> models solve the equations of the atmosphere on supercomputers. ERA5 is published about five days after the fact, so the latest verification date trails today. Forecasts 1 to 7 days ahead are scored from 2026-01-01; forecasts 8 to 10 days ahead are archived from 2026-11-13 and enter the ranking as their target days are verified. <b>Darwin-Prediction-Weather</b> is VIDRAFT's fusion engine: local bias correction plus skill-weighted fusion of the public models, fitted only on days before the one being scored. It is ranked on exactly the same cases as the public models. In the 10-day outlook the fusion for days beyond the longest scored lead uses that lead's calibration.</p></div>
77
  <footer>Full daily record since 2026-01-01 (every model forecast and the ERA5 value): <a href="https://huggingface.co/datasets/FINAL-Bench/Weather-Model-Forecast-Archive">Weather-Model-Forecast-Archive</a>. Weather data by <a href="https://open-meteo.com/">Open-Meteo.com</a> (CC BY 4.0). Verification: ERA5, Copernicus Climate Change Service. Model sources: ECMWF, NOAA NCEP, DWD, JMA, ECCC, MET Norway. Engine: <a href="https://huggingface.co/FINAL-Bench/Darwin-Prediction-Weather">Darwin-Prediction-Weather</a>. Leaderboard and compiled record: CC BY-NC 4.0, non-commercial use only. Contact: <a href="mailto:vidraft@mail.vidraft.net">vidraft@mail.vidraft.net</a></footer>
@@ -114,12 +114,13 @@ function outlook(){if(!OL){$("otiles").innerHTML="";$("otab").innerHTML="";$("on
114
  const idx=d=>Math.round((Date.parse(d)-Date.parse(dates[0]))/864e5),pd=Rc?Rc.dates:[],ob=Rc?Rc.obs[city]||[]:[];
115
  const pf=(m,j)=>Rc&&Rc.F[m]&&Rc.F[m][city]?num(Rc.F[m][city][Lp-1][j]):NaN;
116
  const pfus=j=>{if(liH<0||!Rc)return NaN;const use=ms.filter(m=>F[m]&&F[m][liH]&&fin(pf(m,j)));if(use.length<3)return NaN;const {bias,mse}=fit(liH,Lp,idx(pd[j]),use);const good=use.filter(m=>fin(mse[m])&&mse[m]>0&&fin(bias[m][c]));if(good.length<3)return NaN;let ws=0,f=0;good.forEach(m=>ws+=1/mse[m]);good.forEach(m=>f+=(1/mse[m])/ws*(pf(m,j)-bias[m][c]));return f};
117
- const cell=(v,o)=>{if(!fin(v))return "<td>–</td>";if(!fin(o))return `<td>${v.toFixed(1)}</td>`;const e=v-o,k=Math.abs(e)<1?"g":Math.abs(e)<2?"y":"r";return `<td>${v.toFixed(1)}<span class="er ${k}">${e>=0?"+":""}${e.toFixed(1)}</span></td>`};
 
118
  let h=`<tr><th>Model</th><th class="cu">RMSE to ${dates[dates.length-1].slice(5)}<br>${Lp}-day lead</th>`+pd.map((d,j)=>`<th class="${j===pd.length-1?"td":"pa"}">${j===pd.length-1?"TODAY":"−"+(pd.length-1-j)+"d"}<br>${d.slice(5)}</th>`).join("")+days.map((d,k)=>`<th class="fu">+${k+1}d<br>${d.slice(5)}</th>`).join("")+"</tr>";
119
  if(Rc)h+=`<tr class="obr"><td>Observed</td><td class="cu"></td>${ob.map((v,j)=>`<td class="${j===pd.length-1?"td":""}">${fin(num(v))?v.toFixed(1)+(j===pd.length-1?"*":""):"–"}</td>`).join("")}${days.map(()=>"<td></td>").join("")}</tr>`;
120
- h+=`<tr class="dwo"><td>Darwin-Prediction-Weather</td><td class="cu">${cv("darwin")}</td>${pd.map((d,j)=>cell(pfus(j),j===pd.length-1?NaN:num(ob[j]))).join("")}${fus.map(v=>`<td>${fin(v)?v.toFixed(1):"–"}</td>`).join("")}</tr>`;
121
- ms.forEach(m=>h+=`<tr><td>${flag(MODELS[m][3],MODELS[m][4])}${MODELS[m][0]}</td><td class="cu">${cv(m)}</td>${pd.map((d,j)=>cell(pf(m,j),j===pd.length-1?NaN:num(ob[j]))).join("")}${days.map((d,k)=>{const v=num(OL.models[m][city][k+1]);return `<td>${fin(v)?v.toFixed(1):"–"}</td>`}).join("")}</tr>`);
122
- $("otab").innerHTML=h;$("onote").textContent=`Forecasts issued ${OL.issued.replace("T"," ").replace("Z"," UTC")}, in °C. The large numbers are the Darwin-Prediction-Weather fusion; "± models" is half the spread between the public models, a guide to how settled the forecast is. Each of these forecasts is scored on the board above once the day is verified.${OL.recent?` Past days show the forecast issued ${Lp} day${Lp>1?"s":""} earlier and its error against the observed value; recent observed values are preliminary until ERA5 is published. * Today so far (${OL.recent.today_hours}:00 UTC).`:""}`}
123
  // bias and weights use only days whose truth was known before scoring day t (t-30 .. t-lead)
124
  function fit(li,D,t,ms){const w0=Math.max(0,t-30),t1=t-D;const bias={},mse={};
125
  for(const m of ms){bias[m]=[];let s2=0,n2=0;
@@ -165,7 +166,7 @@ function render(){
165
  }
166
  // champions at a glance (independent of the period and city selectors)
167
  const last=dates.length-1,SH={darwin:"Darwin",ecmwf_ifs025:"ECMWF IFS",ecmwf_aifs025_single:"ECMWF AIFS",gfs_seamless:"GFS",ncep_aigfs025:"AIGFS",icon_seamless:"ICON",jma_seamless:"JMA",gem_seamless:"GEM",metno_seamless:"MET Nordic"},seen={};
168
- const wc=(m,v)=>{if(!m)return '<td class="e">–</td>';seen[m]=1;return `<td class="w" style="background:${inf(m)[5]}">${SH[m]}<small>${v.toFixed(2)}°</small></td>`},LA=LEADS.map((L,i)=>i).filter(i=>MK.some(m=>F[m]&&F[m][i]&&F[m][i][0].some(v=>v!==null&&v!==undefined)));
169
  const hd="<tr><th></th>"+LA.map(i=>`<th>${LEADS[i]}-day</th>`).join("")+"</tr>";
170
  $("wper").innerHTML=hd+[["Latest day",1],["Last 7 days",7],["Last 30 days",30],["Last 90 days",90],["2026 year to date",9999]].map(([nm,n])=>`<tr><td>${nm}</td>${LA.map(i=>{const r=run(i,Math.max(MIN,last-n+1),last,-1).rows[0];return r?wc(r.m,r.r):wc(null)}).join("")}</tr>`).join("");
171
  $("wcity").innerHTML=hd+NAMES.map((c,ci2)=>`<tr><td>${c}</td>${LA.map(i=>{const Y=run(i,MIN,last,-1);let bm=null,bv=1e9;Y.rows.forEach(x=>{const v=grp(Y.A,x.m,"c"+ci2,30);if(fin(v)&&v<bv){bv=v;bm=x.m}});return wc(bm,bv)}).join("")}</tr>`).join("");
 
41
  .mo{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px}.mc{background:rgba(4,11,24,.45);border:1px solid var(--line);border-radius:10px;padding:9px 10px;border-top:3px solid var(--cy)}.mc .m{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--mut)}.mc .w{font-weight:800;font-size:13px;margin-top:3px}.mc .e{font-size:12px;color:var(--mut)}
42
  .ol{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin-bottom:14px}.ot1{background:linear-gradient(180deg,#134a8f,#0b2a5c);border:1px solid #2a66b8;border-radius:10px;padding:8px 4px;text-align:center}.ot1 .dn{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--mut)}.ot1 .dd{font-size:11px;color:var(--mut)}.ot1 .tv{font-size:24px;font-weight:900;color:#fff;line-height:1.2}.ot1 .sp{font-size:10px;color:var(--cy);font-weight:700}
43
  @media(max-width:700px){.ol{grid-template-columns:repeat(5,minmax(0,1fr))}}
44
+ .tw{overflow-x:auto;scrollbar-color:#2a5596 #0a1c3a;scrollbar-width:thin}.tw::-webkit-scrollbar{height:8px}.tw::-webkit-scrollbar-track{background:#0a1c3a;border-radius:4px}.tw::-webkit-scrollbar-thumb{background:#2a5596;border-radius:4px}.ot{border-collapse:collapse;width:100%;min-width:1080px;font-size:13px}.ot th,.ot td{padding:6px 8px;text-align:right;border-bottom:1px solid rgba(29,63,120,.6);white-space:nowrap}.ot th:first-child,.ot td:first-child{text-align:left;position:sticky;left:0;background:#0f2a55}.ot th{color:var(--mut);font-size:11px;letter-spacing:.06em}.ot tr.dwo td{color:var(--cy);font-weight:800}.ot tr.obr td{color:var(--gold);font-weight:800}.ot th.pa{color:#b9c7e0}.ot th.td,.ot td.td{background:rgba(255,200,61,.10)}.ot th.td{color:var(--gold)}.ot th.fu{color:var(--cy)}.ot .cu{border-right:2px solid var(--line);color:var(--ink)}.er{display:block;font-size:10px;font-weight:700}.win{display:block;font-size:9px;font-weight:900;letter-spacing:.12em;color:#3a2a00;background:linear-gradient(180deg,#ffe08a,#ffc83d);border-radius:4px;padding:1px 5px;margin:0 0 3px auto;width:max-content}.ot td.wn1{background:rgba(255,200,61,.12);box-shadow:inset 0 0 0 1px rgba(255,200,61,.6);border-radius:6px}.er.g{color:#7be495}.er.y{color:#ffd166}.er.r{color:#ff6b7d}
45
+ .h3{margin:0 0 8px;font-size:13px;font-weight:700;color:var(--ink)}.wt{border-collapse:separate;border-spacing:5px;width:100%;min-width:760px;font-size:12px}.wt th{color:var(--mut);font-size:11px;letter-spacing:.1em;text-transform:uppercase;padding:4px 6px;text-align:left;white-space:nowrap;font-weight:800}.wt th:first-child,.wt td:first-child{text-align:left;font-weight:700;color:var(--ink);white-space:nowrap;padding:5px 8px}.wt td.w{background:rgba(4,11,24,.5);border:1px solid var(--line);border-left:4px solid var(--cy);border-radius:8px;padding:7px 9px;white-space:nowrap}.wt td.w.dwn{background:linear-gradient(160deg,rgba(255,200,61,.16),rgba(4,11,24,.5) 70%);border-color:rgba(255,200,61,.55)}.wn{font-weight:800;font-size:13px;color:var(--ink)}.wm{display:flex;align-items:center;gap:8px;margin-top:4px}.wm b{font-size:13px;color:var(--ink)}.wt td.w.dwn .wm b{color:var(--gold)}.wt td.e{text-align:center;color:var(--mut)}
46
  .note{color:var(--mut);font-size:13px;margin:0}.note b{color:var(--ink)}footer{color:var(--mut);font-size:12px;margin-top:18px}a{color:var(--cy)}#status{color:var(--mut);font-size:13px;margin-bottom:12px}
47
  </style></head><body>
48
  <div class="top"><span class="live"><i></i>LIVE</span><span class="brand">Global Weather Model <b>Leaderboard</b></span><span class="stamp" id="stamp">Loading…</span></div>
 
60
  <div class="pn"><h2 id="h1">Most accurate model</h2><div id="champ"></div></div>
61
  <div class="pn dw"><h2>AI vs Physics (Supercomputer)</h2><div id="dwc"></div></div>
62
  </div>
 
 
 
63
  <div class="pn" style="margin-top:14px"><h2 id="h2">Accuracy board</h2><div id="bars"></div></div>
64
  <div class="grid2">
65
  <div class="pn"><h2>Error by forecast day</h2><div id="curve"></div><div class="lg" id="lg1"></div></div>
 
69
  <div class="ctl" style="margin:0 0 12px"><label>Outlook city<select id="ocity"></select></label></div>
70
  <div class="ol" id="otiles"></div><div class="tw"><table class="ot" id="otab"></table></div><p class="note" id="onote" style="margin-top:10px"></p></div>
71
  <div class="pn" style="margin-top:14px"><h2 id="h3">Monthly champions 2026</h2><div class="mo" id="mo"></div></div>
72
+ <div class="pn" style="margin-top:14px"><h2>Champions at a glance: who is no. 1</h2>
73
+ <h3 class="h3">By period and forecast day, 24 cities</h3><div class="tw"><table class="wt" id="wper"></table></div>
74
+ <h3 class="h3" style="margin-top:16px">By city and forecast day, 2026 year to date</h3><div class="tw"><table class="wt" id="wcity"></table></div><div class="lg" id="lg3"></div></div>
75
  <div class="pn" style="margin-top:14px"><h2>How it is scored</h2>
76
  <p class="note">Every day each model's forecast is recorded for up to 10 days ahead. When the observed value for a day is published, every forecast made for that day is scored and the cumulative record is updated, once a day. A forecast issued N days earlier is compared with the ERA5 daily maximum 2 m temperature for the same UTC day at each city. Lower RMSE ranks higher. Models are compared on the same cases: days and cities where every listed model issued a forecast. Type shows how a model works: <b>AI</b> models learn the forecast from data, <b>Physics (Supercomputer)</b> models solve the equations of the atmosphere on supercomputers. ERA5 is published about five days after the fact, so the latest verification date trails today. Forecasts 1 to 7 days ahead are scored from 2026-01-01; forecasts 8 to 10 days ahead are archived from 2026-11-13 and enter the ranking as their target days are verified. <b>Darwin-Prediction-Weather</b> is VIDRAFT's fusion engine: local bias correction plus skill-weighted fusion of the public models, fitted only on days before the one being scored. It is ranked on exactly the same cases as the public models. In the 10-day outlook the fusion for days beyond the longest scored lead uses that lead's calibration.</p></div>
77
  <footer>Full daily record since 2026-01-01 (every model forecast and the ERA5 value): <a href="https://huggingface.co/datasets/FINAL-Bench/Weather-Model-Forecast-Archive">Weather-Model-Forecast-Archive</a>. Weather data by <a href="https://open-meteo.com/">Open-Meteo.com</a> (CC BY 4.0). Verification: ERA5, Copernicus Climate Change Service. Model sources: ECMWF, NOAA NCEP, DWD, JMA, ECCC, MET Norway. Engine: <a href="https://huggingface.co/FINAL-Bench/Darwin-Prediction-Weather">Darwin-Prediction-Weather</a>. Leaderboard and compiled record: CC BY-NC 4.0, non-commercial use only. Contact: <a href="mailto:vidraft@mail.vidraft.net">vidraft@mail.vidraft.net</a></footer>
 
114
  const idx=d=>Math.round((Date.parse(d)-Date.parse(dates[0]))/864e5),pd=Rc?Rc.dates:[],ob=Rc?Rc.obs[city]||[]:[];
115
  const pf=(m,j)=>Rc&&Rc.F[m]&&Rc.F[m][city]?num(Rc.F[m][city][Lp-1][j]):NaN;
116
  const pfus=j=>{if(liH<0||!Rc)return NaN;const use=ms.filter(m=>F[m]&&F[m][liH]&&fin(pf(m,j)));if(use.length<3)return NaN;const {bias,mse}=fit(liH,Lp,idx(pd[j]),use);const good=use.filter(m=>fin(mse[m])&&mse[m]>0&&fin(bias[m][c]));if(good.length<3)return NaN;let ws=0,f=0;good.forEach(m=>ws+=1/mse[m]);good.forEach(m=>f+=(1/mse[m])/ws*(pf(m,j)-bias[m][c]));return f};
117
+ const cell=(v,o,w)=>{if(!fin(v))return "<td>–</td>";if(!fin(o))return `<td>${v.toFixed(1)}</td>`;const e=v-o,k=Math.abs(e)<1?"g":Math.abs(e)<2?"y":"r";return `<td class="${w?"wn1":""}">${w?'<span class="win">WIN</span>':""}${v.toFixed(1)}<span class="er ${k}">${e>=0?"+":""}${e.toFixed(1)}</span></td>`};
118
+ const PF=pd.map((d,j)=>pfus(j)),wins=pd.map((d,j)=>{const o=num(ob[j]);if(j===pd.length-1||!fin(o))return null;let bm=null,bv=1e9;[["darwin",PF[j]]].concat(ms.map(m=>[m,pf(m,j)])).forEach(([m,v])=>{if(fin(v)&&Math.abs(v-o)<bv-1e-9){bv=Math.abs(v-o);bm=m}});return bm}),wcount={};wins.forEach(m=>{if(m)wcount[m]=(wcount[m]||0)+1});
119
  let h=`<tr><th>Model</th><th class="cu">RMSE to ${dates[dates.length-1].slice(5)}<br>${Lp}-day lead</th>`+pd.map((d,j)=>`<th class="${j===pd.length-1?"td":"pa"}">${j===pd.length-1?"TODAY":"−"+(pd.length-1-j)+"d"}<br>${d.slice(5)}</th>`).join("")+days.map((d,k)=>`<th class="fu">+${k+1}d<br>${d.slice(5)}</th>`).join("")+"</tr>";
120
  if(Rc)h+=`<tr class="obr"><td>Observed</td><td class="cu"></td>${ob.map((v,j)=>`<td class="${j===pd.length-1?"td":""}">${fin(num(v))?v.toFixed(1)+(j===pd.length-1?"*":""):"–"}</td>`).join("")}${days.map(()=>"<td></td>").join("")}</tr>`;
121
+ h+=`<tr class="dwo"><td>Darwin-Prediction-Weather</td><td class="cu">${cv("darwin")}</td>${pd.map((d,j)=>cell(PF[j],j===pd.length-1?NaN:num(ob[j]),wins[j]==="darwin")).join("")}${fus.map(v=>`<td>${fin(v)?v.toFixed(1):"–"}</td>`).join("")}</tr>`;
122
+ ms.forEach(m=>h+=`<tr><td>${flag(MODELS[m][3],MODELS[m][4])}${MODELS[m][0]}</td><td class="cu">${cv(m)}</td>${pd.map((d,j)=>cell(pf(m,j),j===pd.length-1?NaN:num(ob[j]),wins[j]===m)).join("")}${days.map((d,k)=>{const v=num(OL.models[m][city][k+1]);return `<td>${fin(v)?v.toFixed(1):"–"}</td>`}).join("")}</tr>`);
123
+ $("otab").innerHTML=h;$("onote").textContent=`Forecasts issued ${OL.issued.replace("T"," ").replace("Z"," UTC")}, in °C. The large numbers are the Darwin-Prediction-Weather fusion; "± models" is half the spread between the public models, a guide to how settled the forecast is. Each of these forecasts is scored on the board above once the day is verified.${OL.recent?` Past days show the forecast issued ${Lp} day${Lp>1?"s":""} earlier and its error against the observed value; recent observed values are preliminary until ERA5 is published. * Today so far (${OL.recent.today_hours}:00 UTC). WIN marks the most accurate forecast of each verified day; days ahead receive their WIN when the observed value is in.${Object.keys(wcount).length?" Wins in the last "+wins.filter(Boolean).length+" days: "+Object.entries(wcount).sort((a,b)=>b[1]-a[1]).map(([m,n])=>inf(m)[0]+" "+n).join(", ")+".":""}`:""}`}
124
  // bias and weights use only days whose truth was known before scoring day t (t-30 .. t-lead)
125
  function fit(li,D,t,ms){const w0=Math.max(0,t-30),t1=t-D;const bias={},mse={};
126
  for(const m of ms){bias[m]=[];let s2=0,n2=0;
 
166
  }
167
  // champions at a glance (independent of the period and city selectors)
168
  const last=dates.length-1,SH={darwin:"Darwin",ecmwf_ifs025:"ECMWF IFS",ecmwf_aifs025_single:"ECMWF AIFS",gfs_seamless:"GFS",ncep_aigfs025:"AIGFS",icon_seamless:"ICON",jma_seamless:"JMA",gem_seamless:"GEM",metno_seamless:"MET Nordic"},seen={};
169
+ const wc=(m,v)=>{if(!m)return '<td class="e">–</td>';seen[m]=1;const M=inf(m);return `<td class="w ${m==="darwin"?"dwn":""}" style="border-left-color:${M[5]}"><div class="wn">${flag(M[3],M[4])}${SH[m]}</div><div class="wm"><span class="ty ${M[2]==="AI"?"ai":"ph"}">${M[2]==="AI"?"AI":"Physics"}</span><b>${v.toFixed(2)}°</b></div></td>`},LA=LEADS.map((L,i)=>i).filter(i=>MK.some(m=>F[m]&&F[m][i]&&F[m][i][0].some(v=>v!==null&&v!==undefined)));
170
  const hd="<tr><th></th>"+LA.map(i=>`<th>${LEADS[i]}-day</th>`).join("")+"</tr>";
171
  $("wper").innerHTML=hd+[["Latest day",1],["Last 7 days",7],["Last 30 days",30],["Last 90 days",90],["2026 year to date",9999]].map(([nm,n])=>`<tr><td>${nm}</td>${LA.map(i=>{const r=run(i,Math.max(MIN,last-n+1),last,-1).rows[0];return r?wc(r.m,r.r):wc(null)}).join("")}</tr>`).join("");
172
  $("wcity").innerHTML=hd+NAMES.map((c,ci2)=>`<tr><td>${c}</td>${LA.map(i=>{const Y=run(i,MIN,last,-1);let bm=null,bv=1e9;Y.rows.forEach(x=>{const v=grp(Y.A,x.m,"c"+ci2,30);if(fin(v)&&v<bv){bv=v;bm=x.m}});return wc(bm,bv)}).join("")}</tr>`).join("");