# SPHEREx Sky Dome A dome-first front door for the SPHEREx Data Explorer. You start **standing on a grass field under a simulated sky**, look around, switch between optical, near-infrared and mid-infrared views of the sky, click a point, see the SPHEREx frames nearby, and press **Investigate this region** to open that exact position in the existing Explorer (sky map, search, FITS tools). A **Return to dome** button brings you back with the view and selection intact. Plain JavaScript, Three.js r128 (already loaded by `index.html`), no build step, no new Python packages. ## Install (3 commands) Unzip this package **into the project folder** (the one containing `s.py` and `index.html`), then: ```bash python3 tools/install_dome.py --test # checks files, patches s.py + index.html, runs the tests (--test needs Node) python3 s.py # start the server as usual # open http://localhost:8000/ # the dome opens first ``` `?dome=0` on the address opens the normal app with no dome. `python3 tools/install_dome.py --uninstall` removes the dome block from `index.html`. Backups: `s.py.bak`, `index.html.bak`. What the installer changes (nothing else is touched): | File | Change | |---|---| | `s.py` | adds an **allowlisted** static route: `dome*.js`, `dome*.css`, `app-state.js`, `sky_layers/*.jpg|json`. Without it the server returns 404 for every dome file (it only serves a fixed whitelist). | | `index.html` | adds one block of `