// Run in any browser console (or Node 18+). Fetches 2025 hourly dry-bulb and wet-bulb // temperature from the Open-Meteo historical archive (ERA5-based) for the seven sites and // returns exceedance counts: index i holds the number of hours above (i - 10) degrees C. const sites={Ashburn_VA:[39.04,-77.49],Dallas_TX:[32.90,-97.04],Abilene_TX:[32.45,-99.73], Phoenix_AZ:[33.45,-112.07],Hillsboro_OR:[45.52,-122.99],Columbus_OH:[39.96,-82.99],Council_Bluffs_IA:[41.26,-95.86]}; const out={}; for (const [k,[la,lo]] of Object.entries(sites)){ const u=`https://archive-api.open-meteo.com/v1/archive?latitude=${la}&longitude=${lo}&start_date=2025-01-01&end_date=2025-12-31&hourly=temperature_2m,wet_bulb_temperature_2m&timezone=UTC`; const j=await fetch(u).then(r=>r.json()); const T=j.hourly.temperature_2m, WB=j.hourly.wet_bulb_temperature_2m; const ex=a=>{const r=[];for(let t=-10;t<=50;t++)r.push(a.filter(x=>x!=null&&x>t).length);return r}; out[k]={maxT:Math.max(...T),maxWB:Math.max(...WB),meanT:T.reduce((a,b)=>a+b,0)/T.length,dbExceed:ex(T),wbExceed:ex(WB)}; } JSON.stringify(out)