Skip to content

Commit

Permalink
First ingest of BDR_J1750+3809
Browse files Browse the repository at this point in the history
  • Loading branch information
LishaRamon committed Nov 29, 2023
1 parent 58580ab commit db2e780
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/Untitled-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/Untitled1-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
44 changes: 44 additions & 0 deletions Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "d74c3d4f-448e-42e3-bd26-aa6a940682ba",
"metadata": {},
"outputs": [],
"source": [
"from astrodbkit2.astrodb import create_database,Database\n",
"from simple.schema import *"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "892be5f7-fd2a-402f-b800-621914a4636d",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
44 changes: 44 additions & 0 deletions Untitled1.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"id": "b34154c1-fa6e-41ec-8dc9-fcd8510d2442",
"metadata": {},
"outputs": [],
"source": [
"from astrodbkit2.astrodb import create_database,Database\n",
"from simple.schema import *"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "86c5d940-7ebd-4368-bae3-8ce59c468d57",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
38 changes: 38 additions & 0 deletions scripts/ingests/ingest_BDR_J1750+3809
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#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 = False # 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 2MASS J01415823-4633574 and its reference
#doi- 10.3847/2041-8213/abc256
#bibcode of coordinates reference- 2020ApJ...903L..33V
ingest_publication(db, doi = '10.3847/2041-8213/abc256',
description = "Direct radio discovery of a cold brown dwarf.",
ignore_ads = False)


ra_1750= Angle("17 50 01.13", u.hour).degree
dec_3809=Angle("+38 09 19.5", u.degree).degree

ingest_sources(db, ["[VCS2020] BDR J1750+3809"], references="Veda20",
ras= [ra_1750],
decs=[dec_3809],
search_db=False)

# Ingest other name for BDR J1750+3809 (one used in SIMBAD)
# code from deprecated utils does not work
ingest_names(db, '[VCS2020] BDR J1750+3809', 'BDR J1750+3809')

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

0 comments on commit db2e780

Please sign in to comment.