https://github.com/hover2pi/cone_search_plus
A whiz-bang Web application for all-sky cone searches with tunable constraints
https://github.com/hover2pi/cone_search_plus
Last synced: 8 months ago
JSON representation
A whiz-bang Web application for all-sky cone searches with tunable constraints
- Host: GitHub
- URL: https://github.com/hover2pi/cone_search_plus
- Owner: hover2pi
- License: mit
- Created: 2017-05-08T14:03:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T04:16:59.000Z (over 7 years ago)
- Last Synced: 2024-08-10T20:12:42.585Z (almost 2 years ago)
- Language: Jupyter Notebook
- Size: 1.74 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cone_search_plus
[](https://travis-ci.org/hover2pi/cone_search_plus)
[](https://coveralls.io/github/hover2pi/cone_search_plus?branch=master&service=github)
[](https://cone_search_plus.readthedocs.io/en/latest/?badge=latest)
A whiz-bang Python package for all-sky cone searches with tunable constraints.
Requirements:
- numpy
- astropy
- matplotlib
- ephem
- astroquery
## Installation
Install via PYPI with
```
pip install cone_search_plus
```
or via Github with
```
git clone https://github.com/hover2pi/cone_search_plus.git
python cone_search_plus/setup.py install
```
## Web Application
To run `cone_search_plus` as a Web application, do
```
python App/csp_app/app_csp.py
```
And then navigate to `http://0.0.0.0:5000/` in your browser.
## Documentation
Full documentation for the latest build can be found on [ReadTheDocs](https://cone_search_plus.readthedocs.io/en/latest/).
The package also contains detailed Jupyter notebooks highlighting the core functionality of its primary classes, including
- [cone_search_plus.csp.SourceList](https://github.com/hover2pi/cone_search_plus/blob/master/notebooks/csp_demo.ipynb)
## Demo
Here is a demo of the software:
```
# Imports
from cone_search_plus import csp
import astropy.units as q
# Coordinates of Trappist-1
ra = 346.6223683553692
dec = -05.0413976917903
# Make the SourceList object
sl = csp.SourceList([ra,dec], 2*q.arcmin)
```
```
_r USNO-A2.0 RAJ2000 DEJ2000 ACTflag Mflag Bmag Rmag Epoch
arcm deg deg mag mag yr
------ ------------- ---------- ---------- ------- ----- ---- ---- --------
1.7118 0825-19856975 346.595528 -5.031456 18.3 17.2 1953.680
0.8099 0825-19857185 346.610139 -5.035592 17.4 15.5 1953.680
0.1138 0825-19857340 346.621587 -5.039667 18.8 18.2 1953.680
1.9556 0825-19857424 346.627275 -5.073620 18.7 17.7 1953.680
1.1837 0825-19857643 346.641906 -5.044656 17.9 17.0 1953.680
1.6607 0825-19857776 346.650070 -5.039175 15.2 14.7 1953.680
6 sources found within 2.0 arcmin
```
And plot it:
```
sl.proximity_plot()
```

Nice!
## Licensed
This project is Copyright (c) Joe Filippazzo and licensed under the terms of the BSD 3-Clause license. See LICENSE for more information.