https://github.com/dfm/casjobs
An interface to CasJobs for Humans.
https://github.com/dfm/casjobs
Last synced: 10 months ago
JSON representation
An interface to CasJobs for Humans.
- Host: GitHub
- URL: https://github.com/dfm/casjobs
- Owner: dfm
- License: mit
- Created: 2012-04-14T19:17:37.000Z (about 14 years ago)
- Default Branch: main
- Last Pushed: 2022-07-28T19:28:16.000Z (almost 4 years ago)
- Last Synced: 2024-10-31T22:24:31.681Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 8
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
This basically does the same thing as
`python-casjobs `_ but it only
depends on `Requests `_ which makes it more useful
in my opinion.
Usage
-----
Install it:
::
pip install casjobs
Here's how you might get the fields in Stripe 82 that hit the Pisces
overdensity:
::
import casjobs
query = """SELECT *
INTO mydb.pisces2
FROM Stripe82..Field AS p
WHERE p.mjd_g > 0 AND p.ramin < 355 AND p.ramax > 355
"""
jobs = CasJobs()
job_id = jobs.submit(query)
status = jobs.monitor(job_id)
print status
License
-------
MIT