diff --git a/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/.ipynb_checkpoints/Untitled-checkpoint.ipynb new file mode 100644 index 000000000..363fcab7e --- /dev/null +++ b/.ipynb_checkpoints/Untitled-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/.ipynb_checkpoints/Untitled1-checkpoint.ipynb b/.ipynb_checkpoints/Untitled1-checkpoint.ipynb new file mode 100644 index 000000000..363fcab7e --- /dev/null +++ b/.ipynb_checkpoints/Untitled1-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/Untitled.ipynb b/Untitled.ipynb new file mode 100644 index 000000000..887aad8e8 --- /dev/null +++ b/Untitled.ipynb @@ -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 +} diff --git a/Untitled1.ipynb b/Untitled1.ipynb new file mode 100644 index 000000000..fb146a722 --- /dev/null +++ b/Untitled1.ipynb @@ -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 +} diff --git a/scripts/ingests/ingest_BDR_J1750+3809 b/scripts/ingests/ingest_BDR_J1750+3809 new file mode 100644 index 000000000..af9e1d0d7 --- /dev/null +++ b/scripts/ingests/ingest_BDR_J1750+3809 @@ -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/')