Skip to content

Commit

Permalink
First ingest wise_1810-1010
Browse files Browse the repository at this point in the history
  • Loading branch information
LishaRamon committed Dec 5, 2023
1 parent 578ba1e commit 8b81c66
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 5 deletions.
8 changes: 4 additions & 4 deletions data/2mass_j12560183-1257276.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
{
"other_name": "VHS 1256-1257b"
},
{
"other_name": "VHS 1256b"
},
{
"other_name": "VHS J125601.92-125723.9 b"
},
Expand All @@ -38,9 +41,6 @@
},
{
"other_name": "WISEA J125601.66-125728.7"
},
{
"other_name": "VHS 1256b"
}
],
"Parallaxes": [
Expand Down Expand Up @@ -267,4 +267,4 @@
"reference": "Gauz15"
}
]
}
}
12 changes: 12 additions & 0 deletions data/Publications.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
2 changes: 1 addition & 1 deletion data/Versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
"end_date": null,
"description": "Version in development"
}
]
]
32 changes: 32 additions & 0 deletions data/cwisep_j181006.00-101001.1.json
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"
}
]
}
45 changes: 45 additions & 0 deletions scripts/ingests/ingest_wise_1810-1010.py
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/')

0 comments on commit 8b81c66

Please sign in to comment.