AstroDB is a set of Python tools to interact with a database of astronomical data. AstroDB uses the astropy Python module to read in data of astronomical objects from fits files, and store the object data in MongoDB. Once the database is populated with data, more data can be added either as an additional and independent object, or as more information on existing data (using coordinate matching to determine related object data).
For more detailed information, see wiki/Installation.
Quick Start
- Clone or download the source code in this repository.
- Setup a virtual environment using Python3.7.
- Install requirements (in
requirements.txt
) with pip.
For more detailed information, see wiki/Usage.
Useful Commands
astrodb$ . activate
- Every AstroDB session should begin with this command (if using a venv)
astrodb$ . deactivate
- This should happen automatically when you close the terminal, but it's useful to know if you want to continue coding in Python after running an AstroDB script.
astrodb/src$ ./<astrodb-tool>.py
orastrodb/src$ python <astrodb-tool>.py
to run a script if using a venv.astrodb/src$ python3.7 <astrodb-tool>.py
to run a script if not using a venv.
If you're thinking about contributing to this project, chances are that I am no longer maintaining this project. It is recommended that you fork this repository on GitHub and maintain your own version.
Note: If installing or using third-party python modules not already included in requirements.txt
, export all dependencies to requirements file with pip freeze > requirements.txt
. Do this ONLY if using a venv.
For more legal information on contributing see license.
Credit for the concept and requirements goes to Dr. Jeyhan Kartaltepe (Rochester Institute of Technology).
Credit for development goes to me (James Haller, Rochester Institute of Technology).
See separate LICENSE file.