-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
578ba1e
commit 8b81c66
Showing
5 changed files
with
94 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,4 +53,4 @@ | |
"end_date": null, | ||
"description": "Version in development" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"Sources": [ | ||
{ | ||
"source": "CWISEP J181006.00-101001.1", | ||
"ra": 272.52574999999996, | ||
"dec": -10.166805555555555, | ||
"epoch": null, | ||
"equinox": null, | ||
"shortname": null, | ||
"reference": "Schn20", | ||
"other_references": null, | ||
"comments": null | ||
} | ||
], | ||
"Names": [ | ||
{ | ||
"other_name": "CWISEP J181006.00-101001.1" | ||
}, | ||
{ | ||
"other_name": "Wise 1810-1010" | ||
} | ||
], | ||
"Parallaxes": [ | ||
{ | ||
"parallax": 112.5, | ||
"parallax_error": 8.1, | ||
"adopted": true, | ||
"comments": null, | ||
"reference": "Lodi22" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# script ingest first data into companion tables | ||
|
||
from scripts.ingests.ingest_utils import * | ||
from scripts.ingests.utils import * | ||
from astropy.table import Table | ||
import astropy.units as u | ||
from astropy.coordinates import Angle | ||
|
||
|
||
SAVE_DB = True # save the data files in addition to modifying the .db file | ||
RECREATE_DB = True # recreates the .db file from the data files | ||
# LOAD THE DATABASE | ||
db = load_simpledb('SIMPLE.db', recreatedb=RECREATE_DB) | ||
|
||
|
||
# Ingest wise_1810-1010 and its reference | ||
#doi- 10.3847/1538-4357/ab9a40 and 10.1051/0004-6361/202243516 | ||
#bibcode of coordinates reference- 2020ApJ...898...77S and 2022A&A...663A..84L | ||
ingest_publication(db, doi = "10.3847/1538-4357/ab9a40") | ||
|
||
ingest_publication(db, doi = "10.1051/0004-6361/202243516") | ||
|
||
ra_1810= Angle("18 10 06.18", u.hour).degree | ||
dec_1010=Angle("-10 10 00.5", u.degree).degree | ||
|
||
ingest_sources(db, ["CWISEP J181006.00-101001.1"], references=["Schn20"], | ||
ras= [ra_1810], | ||
decs=[dec_1010], | ||
search_db=False) | ||
|
||
# Ingest other name for Wise 1810-1010 (one used in SIMBAD) | ||
# code from deprecated utils does not work | ||
ingest_names(db, 'CWISEP J181006.00-101001.1', 'Wise 1810-1010') | ||
|
||
# PARALLAXES | ||
ingest_parallaxes(db, | ||
sources = ["CWISEP J181006.00-101001.1"], | ||
plxs = [112.5], | ||
plx_errs = [8.1], | ||
plx_refs = "Lodi22", | ||
comments=None) | ||
|
||
# WRITE THE JSON FILES | ||
if SAVE_DB: | ||
db.save_database(directory='data/') |