https://github.com/charlesaverill/localcelestialbodies
Scripts and data to generate a database of celestial bodies local to our Solar System
https://github.com/charlesaverill/localcelestialbodies
Last synced: about 2 months ago
JSON representation
Scripts and data to generate a database of celestial bodies local to our Solar System
- Host: GitHub
- URL: https://github.com/charlesaverill/localcelestialbodies
- Owner: CharlesAverill
- License: unlicense
- Created: 2023-04-08T07:28:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-12T18:57:10.000Z (9 months ago)
- Last Synced: 2025-01-14T10:58:52.429Z (3 months ago)
- Language: Python
- Size: 10.6 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LocalCelestialBodies
Scripts and data to generate a database of celestial bodies local to our Solar SystemAuth. Charles Averill, Manav Modi, Darrien Kramer, Hyeongjin Joo, Neal Gandhi
# Generation
```bash
git clone https://github.com/CharlesAverill/LocalCelestialBodies.git lcb
cd lcb
python lcb/db_generator.py
```# Example Queries
```sql
-- Select all asteroids with diameter between 90KM and 100KM
SELECT
small_body.name, small_body.size
FROM
small_body, asteroid
WHERE
90 < small_body.size AND small_body.size < 100 AND
asteroid.small_body_key=small_body.small_body_key
ORDER BY
small_body.size DESC;
-- Select all comets with tails
SELECT
small_body.name
FROM
small_body, comet
WHERE
comet.has_tail=1 AND
comet.small_body_key=small_body.small_body_key
ORDER BY small_body.name DESC;
```# Randomly-generated data
The following data fields were randomly generated at the time of the creation of the database:
- `asteroid.has_solid_composition`
- `asteroid.minerals`
- `comet.has_ice`
- `comet.has_dust`
- `comet.has_tail`
- `meteor.lifespan`
- `meteor.planet_key`
- All meteor information was pulled from an Earth Meteors database, so this
field was randomized to diversify the data)
- `constellation.*`