Skip to content

Commit

Permalink
Updates 11/19
Browse files Browse the repository at this point in the history
  • Loading branch information
canavarrete01 committed Nov 19, 2024
1 parent 2e1acd2 commit 3e47628
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 36 deletions.
4 changes: 2 additions & 2 deletions data/reference/Instruments.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,9 @@
},
{
"instrument": "IRC",
"mode": "NIR",
"mode": "IRC04",
"telescope": "AKARI",
"description": null,
"reference": "Mura07"
"reference": "Onak07"
}
]
6 changes: 6 additions & 0 deletions data/reference/Publications.json
Original file line number Diff line number Diff line change
Expand Up @@ -7324,5 +7324,11 @@
"bibcode": "2007PASJ...59S.369M",
"doi": "10.1093/pasj/59.sp2.S369",
"description": "The Infrared Astronomical Mission AKARI*"
},
{
"reference": "Onak07",
"bibcode": "2007PASJ...59S.401O",
"doi": "10.1093/pasj/59.sp2.S401",
"description": "The Infrared Camera (IRC) for AKARI -- Design and Imaging Performance"
}
]
2 changes: 1 addition & 1 deletion data/reference/Telescopes.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@
{
"telescope": "AKARI",
"description": null,
"reference": null
"reference": "Mura07"
}
]
54 changes: 27 additions & 27 deletions data/source/2mass_j04151954-0935066.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,19 +356,6 @@
"reference": "PID3431",
"other_references": null
},
{
"access_url": "https://bdnyc.s3.us-east-1.amazonaws.com/LRIS/KECK_LRIS_2MASSJ04151954-0935066_T8_LRIS_Burg03.fits",
"original_spectrum": null,
"local_spectrum": null,
"regime": "nir",
"telescope": "Keck I",
"instrument": "LRIS",
"mode": "Missing",
"observation_date": "2001-02-20T00:00:00",
"comments": null,
"reference": "Burg03.510",
"other_references": null
},
{
"access_url": "https://bdnyc.s3.us-east-1.amazonaws.com/SpeX/Prism/IRTF_SpeX_2MASS%2BJ04151954-0935066_2003-09-17.fits",
"original_spectrum": "https://s3.amazonaws.com/bdnyc/spex-prism_2MASSIJ0415195-093506_20030917_BUR04B.txt",
Expand All @@ -382,27 +369,14 @@
"reference": "Burg04.2856",
"other_references": null
},
{
"access_url": "https://bdnyc.s3.us-east-1.amazonaws.com/LRIS/KECK_LRIS_2MASS_J04151954-0935066_2006-12-26.fits",
"original_spectrum": null,
"local_spectrum": null,
"regime": "nir",
"telescope": "Keck I",
"instrument": "LRIS",
"mode": "Missing",
"observation_date": "2006-12-26T00:00:00",
"comments": null,
"reference": "Kirk08",
"other_references": null
},
{
"access_url": "https://bdnyc.s3.us-east-1.amazonaws.com/AKARI_2MASS%2BJ04151954-0935066_2007-08-23.fits",
"original_spectrum": null,
"local_spectrum": null,
"regime": "nir",
"telescope": "AKARI",
"instrument": "IRC",
"mode": "NIR",
"mode": "IRC04",
"observation_date": "2007-08-23T00:00:00",
"comments": null,
"reference": "Sora12",
Expand All @@ -420,6 +394,32 @@
"comments": null,
"reference": "Simc13",
"other_references": null
},
{
"access_url": "https://bdnyc.s3.us-east-1.amazonaws.com/LRIS/KECK_LRIS_2MASSJ04151954-0935066_T8_LRIS_Burg03.fits",
"original_spectrum": null,
"local_spectrum": null,
"regime": "optical",
"telescope": "Keck I",
"instrument": "LRIS",
"mode": "Missing",
"observation_date": "2001-02-20T00:00:00",
"comments": null,
"reference": "Burg03.510",
"other_references": null
},
{
"access_url": "https://bdnyc.s3.us-east-1.amazonaws.com/LRIS/KECK_LRIS_2MASS_J04151954-0935066_2006-12-26.fits",
"original_spectrum": null,
"local_spectrum": null,
"regime": "optical",
"telescope": "Keck I",
"instrument": "LRIS",
"mode": "Missing",
"observation_date": "2006-12-26T00:00:00",
"comments": null,
"reference": "Kirk08",
"other_references": null
}
],
"SpectralTypes": [
Expand Down
13 changes: 9 additions & 4 deletions scripts/ingests/Ingest_2MASS_J0415_09.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#Load in Database
db = load_astrodb("SIMPLE.sqlite", recreatedb=True, reference_tables=REFERENCE_TABLES)

#Ingest data
Ingest data
ingest_publication(
db,
bibcode = "2012ApJ...760..151S"
Expand All @@ -36,14 +36,19 @@
bibcode="2007PASJ...59S.369M"
)

ingest_publication(
db,
bibcode = "2007PASJ...59S.401O"
)

ingest_spectrum(
db,
source="2MASS J04151954-0935066",
spectrum="https://bdnyc.s3.us-east-1.amazonaws.com/AKARI_2MASS%2BJ04151954-0935066_2007-08-23.fits",
regime="nir",
telescope="AKARI",
instrument="IRC",
mode="NIR",
mode="IRC04",
obs_date="2007-08-23",
reference="Sora12"

Expand All @@ -66,7 +71,7 @@
db,
source="2MASS J04151954-0935066",
spectrum="https://bdnyc.s3.us-east-1.amazonaws.com/LRIS/KECK_LRIS_2MASS_J04151954-0935066_2006-12-26.fits",
regime="nir",
regime="optical",
instrument="LRIS",
telescope="Keck I",
mode="Missing",
Expand All @@ -78,7 +83,7 @@
db,
source="2MASS J04151954-0935066",
spectrum="https://bdnyc.s3.us-east-1.amazonaws.com/LRIS/KECK_LRIS_2MASSJ04151954-0935066_T8_LRIS_Burg03.fits",
regime="nir",
regime="optical",
instrument="LRIS",
telescope="Keck I",
mode="Missing",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ def test_missions(db):
def test_spectra(db):
regime = "optical"
t = db.query(db.Spectra).filter(db.Spectra.c.regime == regime).astropy()
assert len(t) == 740, f"found {len(t)} spectra in the {regime} regime"
assert len(t) == 742, f"found {len(t)} spectra in the {regime} regime"

regime = "nir"
t = db.query(db.Spectra).filter(db.Spectra.c.regime == regime).astropy()
assert len(t) == 582, f"found {len(t)} spectra in the {regime} regime"
assert len(t) == 580, f"found {len(t)} spectra in the {regime} regime"

regime = "mir"
t = db.query(db.Spectra).filter(db.Spectra.c.regime == regime).astropy()
Expand Down

0 comments on commit 3e47628

Please sign in to comment.