Download index.html from udgamlabs/NanoCast: direct link, hf CLI and curl.
- Browser
- Download file 8.46 kB
-
https://huggingface.co/spaces/udgamlabs/NanoCast/resolve/main/index.html
- Command line
-
hf download hf://spaces/udgamlabs/NanoCast/index.html
-
curl -L -o index.html https://huggingface.co/spaces/udgamlabs/NanoCast/resolve/main/index.html
8.46 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>NanoCast · Udgam Labs</title> | |
| <meta name="description" content="A 10-day global weather forecast from a 40M-parameter model, running on your own graphics chip in the browser." /> | |
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
| <link href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&family=IBM+Plex+Mono&family=Newsreader:opsz,wght@6..72,500&display=swap" rel="stylesheet" /> | |
| <link rel="stylesheet" href="./style.css" /> | |
| <script type="importmap"> | |
| { | |
| "imports": { | |
| "three": "https://cdn.jsdelivr.net/npm/three@0.187.0/build/three.module.js", | |
| "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.187.0/examples/jsm/" | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <div id="globe-container"></div> | |
| <header id="topbar"> | |
| <div class="brand panel"> | |
| <span class="kind">Weather model · 40M parameters</span> | |
| <h1>NanoCast</h1> | |
| <div class="sub">A 10-day forecast for the whole planet, made on your own graphics chip.</div> | |
| </div> | |
| <div class="status-pills"> | |
| <span class="pill" id="pill-gpu">WebGPU: <strong>checking</strong></span> | |
| <span class="pill" id="pill-model">Model: <strong>loading</strong></span> | |
| <span class="pill" id="pill-latency">10 days: <strong>ready</strong></span> | |
| </div> | |
| </header> | |
| <aside id="left-panel" class="panel"> | |
| <div> | |
| <div class="section-label">Start from</div> | |
| <select id="scenario-select"></select> | |
| <p id="scenario-desc"></p> | |
| </div> | |
| <div> | |
| <button id="run-btn" class="primary-btn" disabled>Run the 10-day forecast</button> | |
| <div id="progress-wrap" class="progress-wrap"> | |
| <div class="progress-track"><div id="progress-fill" class="progress-fill"></div></div> | |
| <div class="progress-text"> | |
| <span id="progress-step">Step 0 / 40</span> | |
| <span id="progress-ms">—</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="section-label">Map</div> | |
| <div class="layer-grid" id="layer-grid"></div> | |
| </div> | |
| <div> | |
| <div class="section-label" id="legend-title">2 m temperature (°C)</div> | |
| <div id="legend-bar" class="legend-bar"></div> | |
| <div class="legend-labels"> | |
| <span id="legend-min">-35</span> | |
| <span id="legend-mid">5</span> | |
| <span id="legend-max">45</span> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="section-label">Display</div> | |
| <label class="toggle-row"> | |
| <span>Moving wind lines</span> | |
| <input type="checkbox" id="toggle-wind" checked /> | |
| </label> | |
| <label class="toggle-row"> | |
| <span>Coastlines and grid</span> | |
| <input type="checkbox" id="toggle-coast" checked /> | |
| </label> | |
| <label class="toggle-row" id="truth-row" style="display:none;"> | |
| <span>Show what really happened (ERA5, at days 1, 3, 5, 7, 10; no rain)</span> | |
| <input type="checkbox" id="toggle-truth" /> | |
| </label> | |
| </div> | |
| <div class="links"> | |
| <a href="https://udgamlabs.com/models/nanocast" target="_blank" rel="noopener">udgamlabs.com/models/nanocast</a><br /> | |
| <a href="https://huggingface.co/udgamlabs/NanoCast-40M" target="_blank" rel="noopener">Model card</a> · | |
| <a href="https://github.com/udgamlabs/nanocast" target="_blank" rel="noopener">Code on GitHub</a> | |
| <div class="by">NanoCast by <img src="./lockup.svg" alt="Udgam Labs" /></div> | |
| </div> | |
| </aside> | |
| <section id="pin-panel" class="panel visible"> | |
| <div class="section-label">Regional forecast, nearest 1.5° grid point</div> | |
| <div class="search-wrap"> | |
| <div class="search-row"> | |
| <input | |
| type="text" | |
| id="city-input" | |
| placeholder="A place, or lat, lon" | |
| autocomplete="off" | |
| /> | |
| <button id="city-go-btn" class="go-btn" title="Show this place">Go</button> | |
| </div> | |
| <div id="city-dropdown" class="city-dropdown"></div> | |
| <div class="quick-chips" id="quick-cities"> | |
| <button class="chip" data-city="London">London</button> | |
| <button class="chip" data-city="New York">New York</button> | |
| <button class="chip" data-city="Tokyo">Tokyo</button> | |
| <button class="chip" data-city="São Paulo">São Paulo</button> | |
| <button class="chip" data-city="Nairobi">Nairobi</button> | |
| <button class="chip" data-city="Sydney">Sydney</button> | |
| </div> | |
| <div class="fine">Place search uses the Open-Meteo geocoder; the forecast itself runs on your device.</div> | |
| </div> | |
| <div class="time-picker-wrap"> | |
| <div class="time-picker-head"> | |
| <span class="mini-label">Date and time (<span id="tz-label">local</span>)</span> | |
| <span class="mini-lead" id="picker-lead">+0h</span> | |
| </div> | |
| <input type="datetime-local" id="forecast-datetime" /> | |
| <div class="quick-chips" id="quick-times"> | |
| <button class="chip" data-hours="0">Start</button> | |
| <button class="chip" data-hours="24">+24h</button> | |
| <button class="chip" data-hours="72">+3d</button> | |
| <button class="chip" data-hours="120">+5d</button> | |
| <button class="chip" data-hours="168">+7d</button> | |
| <button class="chip" data-hours="240">+10d</button> | |
| </div> | |
| </div> | |
| <div id="pin-results" class="pin-results"> | |
| <div class="pin-header"> | |
| <div> | |
| <div class="pin-coords" id="pin-title">London, UK</div> | |
| <div class="pin-sub" id="pin-sub">—</div> | |
| </div> | |
| <span class="cond-badge" id="pin-cond">—</span> | |
| </div> | |
| <div class="pin-stats" id="pin-stats"> | |
| <div class="stat-box active" data-chart="t2m" title="Plot 10 days of 2 m temperature"> | |
| <div class="k">Temperature</div> | |
| <div class="v" id="pin-t2m">—</div> | |
| <div class="v-sub" id="pin-t2m-f">—</div> | |
| </div> | |
| <div class="stat-box" data-chart="wspd" title="Plot 10 days of 10 m wind"> | |
| <div class="k">Wind</div> | |
| <div class="v" id="pin-wind">—</div> | |
| <div class="v-sub" id="pin-wind-dir">—</div> | |
| </div> | |
| <div class="stat-box" data-chart="tp6h" title="Plot 10 days of 6-hour rain"> | |
| <div class="k">Rain, 6 h</div> | |
| <div class="v" id="pin-tp">—</div> | |
| <div class="v-sub" id="pin-tp-note">—</div> | |
| </div> | |
| <div class="stat-box" data-chart="mslp" title="Plot 10 days of sea-level pressure"> | |
| <div class="k">Pressure</div> | |
| <div class="v" id="pin-mslp">—</div> | |
| <div class="v-sub">sea level</div> | |
| </div> | |
| <div class="stat-box" data-chart="t850" title="Plot 10 days of 850 hPa temperature"> | |
| <div class="k">850 hPa temp</div> | |
| <div class="v" id="pin-t850">—</div> | |
| <div class="v-sub">about 1.5 km up</div> | |
| </div> | |
| <div class="stat-box" data-chart="q700" title="Plot 10 days of 700 hPa moisture"> | |
| <div class="k">700 hPa moisture</div> | |
| <div class="v" id="pin-q700">—</div> | |
| <div class="v-sub" id="pin-z500">Z500 —</div> | |
| </div> | |
| </div> | |
| <div id="rollout-cta" class="rollout-cta" style="display:none;"> | |
| Run the forecast (about 3 seconds with WebGPU) to see all 10 days here. | |
| </div> | |
| <div id="chart-section"> | |
| <div class="chart-head"> | |
| <span class="section-label" id="chart-title" style="margin:0;">10 days of 2 m temperature (°C)</span> | |
| <span class="chart-meta" id="chart-meta">Pick a card above</span> | |
| </div> | |
| <svg id="meteogram-svg" viewBox="0 0 306 110"></svg> | |
| <div class="daily-strip" id="daily-strip"></div> | |
| </div> | |
| </div> | |
| </section> | |
| <footer id="timeline-bar" class="panel"> | |
| <button id="play-btn" class="play-btn" title="Play or pause">▶</button> | |
| <div class="time-readout"> | |
| <div class="lead" id="lead-label">+0h (day 0.0)</div> | |
| <div class="utc" id="utc-label">—</div> | |
| </div> | |
| <input type="range" id="step-slider" min="0" max="40" value="0" step="1" /> | |
| <div class="hint">Drag to turn · scroll to zoom · click the globe or search a place</div> | |
| </footer> | |
| <div id="note" class="note" hidden></div> | |
| <script type="module" src="./app.js"></script> | |
| </body> | |
| </html> | |