Skip to main content

Functions and classes to access online data resources

Project description

Documentation | View on Github | Download ZIP | Download TAR

Accessing Online Astronomical Data

Astroquery is an astropy affiliated package that contains a collection of tools to access online Astronomical data. Each web service has its own sub-package. For example, to interface with the SIMBAD website, use the simbad sub-package:

>>> from astroquery.simbad import Simbad
>>> theta1c = Simbad.query_object('tet01 Ori C')
>>> theta1c.pprint()
   MAIN_ID          RA           DEC      ... COO_QUAL COO_WAVELENGTH     COO_BIBCODE
------------- ------------- ------------- ... -------- -------------- -------------------
* tet01 Ori C 05 35 16.4637 -05 23 22.848 ...        A              O 2007A&A...474..653V

Installation and Requirements

As an astropy affiliate, astroquery requires astropy. However, because astroquery relies heavily upon the astropy.coordinates module, the development version of astropy is required. astropy can be installed from pip:

$ pip install git+http://github.com/astropy/astropy.git#egg=astropy

astroquery uses the requests module to communicate with the internet. requests can also be installed with pip.

As of July 2013, astroquery is in pre-release state, so to install, you need to clone it:

$ git clone git@github.com:astropy/astroquery.git
$ cd astroquery
$ python setup.py install

pip install also works:

$ pip install git+http://github.com/astropy/astroquery.git#egg=astroquery

Using astroquery

Importing astroquery on its own doesn’t get you much: you need to import each sub-module specifically. Check out the docs to find a list of the tools available. The API shows the standard suite of tools common to most modules, e.g. query_object and query_region.

To report bugs and request features, please use the issue tracker. Code contributions are very welcome, though we encourage you to follow the API and contributing guidelines as much as possible.

List of Modules

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astroquery-0.0.dev1184.tar.gz (1.3 MB view details)

Uploaded Source

File details

Details for the file astroquery-0.0.dev1184.tar.gz.

File metadata

File hashes

Hashes for astroquery-0.0.dev1184.tar.gz
Algorithm Hash digest
SHA256 b14c587fe18a73b49dd2bb85e8fb68054dfc15d5f37978b752a9c745a96d21e0
MD5 b3ec18924f9f3f8f807cda66b0fc3b03
BLAKE2b-256 d2dbd2ad7da9077274098904e4f6f177548e00afb578424e508df4b08ec44163

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page