Skip to content

mikeck1/c3po

Repository files navigation

c3po - Gatoraid (Easy data access tool for land and space based telescope datas) #Python #Flask #Pymongo

Import data from the internet into the MongoDB server

NEW IN VERSION 2! Add via website
Regions are displayed

All stars per region are added as 'GatorObjects' for each region.

Details for each star
Alt text Alt text



Read Me:
To add data register an account and in your dashboard select 'add regions by file' and use file 'simbad_new.tsv' for reference. For new data go to http://simbad.u-strasbg.fr/simbad/ and replicate the file named 'simbad_new.tsv', which contains region data from the simbad app. This data is added to the database and http://irsa.ipac.caltech.edu/applications/Gator/ API is used to find stars for each region name.
______________________________________________________________________________________________________

Install and run MongoDB Server:
Choose your Platform: https://docs.mongodb.com/manual/installation/

Install Python and pip:
Windows (Follow this guide): https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/
OS X/ Linux: sudo easy_install pip

Run the website and API:
app.py runs an API and website that manages and displays land and space telescope data from caltech.gator and simbad API's.
pipenv install requests
pip install -r requirements.txt

You may need to install additional dependencies.
python app.py

______________________________________________________________________________________________________


A list of all availible API commands will be posted soon
GET: localhost:5000/api/region_by_name/HD%2010700
GET: localhost:5000/api/stars/069.40055143/-02.47354857