diff --git a/data/2mass_j12560183-1257276.json b/data/2mass_j12560183-1257276.json index eed3a0b12..6f15633b6 100644 --- a/data/2mass_j12560183-1257276.json +++ b/data/2mass_j12560183-1257276.json @@ -30,6 +30,9 @@ { "other_name": "VHS 1256-1257b" }, + { + "other_name": "VHS 1256b" + }, { "other_name": "VHS J125601.92-125723.9 b" }, @@ -38,9 +41,6 @@ }, { "other_name": "WISEA J125601.66-125728.7" - }, - { - "other_name": "VHS 1256b" } ], "Parallaxes": [ @@ -267,4 +267,4 @@ "reference": "Gauz15" } ] -} +} \ No newline at end of file diff --git a/data/Publications.json b/data/Publications.json index a673cefb0..6a6c12d3d 100644 --- a/data/Publications.json +++ b/data/Publications.json @@ -6928,5 +6928,17 @@ "bibcode": "2020ApJ...903L..33V", "doi": "10.3847/2041-8213/abc256", "description": "Direct Radio Discovery of a Cold Brown Dwarf" + }, + { + "reference": "Schn20", + "bibcode": "2020ApJ...898...77S", + "doi": "10.3847/1538-4357/ab9a40", + "description": "WISEA J041451.67-585456.7 and WISEA J181006.18-101000.5: The First Extreme T-type Subdwarfs?" + }, + { + "reference": "Lodi22", + "bibcode": "2022A&A...663A..84L", + "doi": "10.1051/0004-6361/202243516", + "description": "Physical properties and trigonometric distance of the peculiar dwarf WISE J181005.5\u2212101002.3" } ] \ No newline at end of file diff --git a/data/Versions.json b/data/Versions.json index 186743d38..52a11cc17 100644 --- a/data/Versions.json +++ b/data/Versions.json @@ -53,4 +53,4 @@ "end_date": null, "description": "Version in development" } -] +] \ No newline at end of file diff --git a/data/cwisep_j181006.00-101001.1.json b/data/cwisep_j181006.00-101001.1.json new file mode 100644 index 000000000..d16e6fc28 --- /dev/null +++ b/data/cwisep_j181006.00-101001.1.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/scripts/ingests/ingest_wise_1810-1010.py b/scripts/ingests/ingest_wise_1810-1010.py new file mode 100644 index 000000000..9b6f60410 --- /dev/null +++ b/scripts/ingests/ingest_wise_1810-1010.py @@ -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/') \ No newline at end of file