- Svelte 70%
- TypeScript 28%
- CSS <1%
- Nix <1%
- HTML <1%
COSMO #
COSMO is a tool for exploring astronomical data from the Gaia catalog.
You can try COSMO live at https://tedius.tngl.sh/cosmo/
Features #
- Local/VizieR data: load your own local CSV file, or a TSV file exported from VizieR.
- Table view: browse the raw data in a table format.
- 2D plot: plot any two columns against each other with fully free axis selection.
- 3D scatter plot: plot any three columns against each other with free axis selection.
- 3D slice tool: move and resize a slice through the 3D scatter to inspect a specific slab of the data.
Tech Stack #
Local development #
Vite+ installed on your machine. Its vp command fetches the Node and pnpm the project needs.
Note
if you're using nix we have a flake.nix with a devShell with vp, pnpm and Node.
On NixOS run vp env off once, so vp uses them instead of downloading its own builds, which NixOS cannot run.
vp install # install dev packages
vp dev # dev server for instant changes preview
vp build # compile the project to dist/
vp test # run the tests
TODO's #
- [] cite vizier and gaia for the data.
- [] Manual
Known Bugs #
- Some local files generate empty tables
- Zoom in the 2D plot sometimes goes to infinite zoom on a star
- Hover and clicked star colors in the table are applied to the star with index +1
License #
This project is open-source software, licensed under the GNU General Public License v3.0 (GPL-3.0).
This means you are free to use, study, modify, and redistribute this code, provided that any derivative work you distribute is also licensed under the GPL-3.0 and its source code is made available. This copyleft requirement ensures that the software — and any modifications or projects built upon it remains free and open for the community.
See the LICENSE file for the license.