Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting Ingest for 2MASS 0415 #377

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions scripts/ingests/ingest_0415.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from astrodb_utils import load_astrodb, ingest_instrument, ingest_publication
from simple.schema import *
from simple.schema import REFERENCE_TABLES
from simple.utils.spectra import ingest_spectrum
from astrodb_utils.photometry import ingest_photometry_filter, ingest_photometry
import logging

SAVE_DB = False # save the data files in addition to modifying the .db file
RECREATE_DB = True # recreates the .db file from the data files

logger = logging.getLogger("AstroDB")
logger.setLevel(logging.INFO)

db = load_astrodb("SIMPLE.sqlite", recreatedb=True, reference_tables=REFERENCE_TABLES)

# Spectra Files

# Ingest Spectra

# Ingest Photometry Filters

# Ingest Photometry


# WRITE THE JSON FILES
if SAVE_DB:
db.save_database(directory='data/')