Skip to main content

Functions and classes to access online astronomical data resources

Project description

Documentation | View on Github | Download Development ZIP

Latest PyPI version Documentation Status Github Actions CI Status Coverage results Zenodo

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_wavelength     coo_bibcode       matched_id
                   deg           deg      ...
------------- ------------- ------------- ... -------------- ------------------- -------------
* tet01 Ori C 83.8186095697 -5.3897005033 ...              O 2020yCat.1350....0G * tet01 Ori C

Installation and Requirements

Astroquery works with Python 3.9 or later. As an astropy affiliate, astroquery requires astropy version 5.0 or later.

The latest version of astroquery can be pip installed (note the --pre for picking up released developer versions, and -U for upgrade):

$ python -m pip install -U --pre astroquery

To install all the mandatory and optional dependencies add the [all] identifier to the pip command above (or use [docs] or [test] for the dependencies required to build the documentation or run the tests):

$ python -m pip install -U --pre astroquery[all]

To install the ‘bleeding edge’ version:

$ python -m pip install git+https://github.com/astropy/astroquery.git

or cloned and installed from source:

$ # If you have a github account:
$ git clone git@github.com:astropy/astroquery.git
$ # If you do not:
$ git clone https://github.com/astropy/astroquery.git
$ cd astroquery
$ python -m pip install .

Using astroquery

Importing astroquery on its own doesn’t get you much: you need to import each sub-module specifically. See the documentation for a list of Available Services. 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.

Citing Astroquery

If you use astroquery, please cite the paper we published in The Astronomical Journal.

The BibTeX entry is available from the package itself:

import astroquery
astroquery.__citation__

In addition you may also want to refer to specific versions of the package. We create a separate Zenodo DOI for each version, they can be looked up at the following Zenodo page

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.4.12.dev10784.tar.gz (15.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astroquery-0.4.12.dev10784-py3-none-any.whl (11.2 MB view details)

Uploaded Python 3

File details

Details for the file astroquery-0.4.12.dev10784.tar.gz.

File metadata

  • Download URL: astroquery-0.4.12.dev10784.tar.gz
  • Upload date:
  • Size: 15.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for astroquery-0.4.12.dev10784.tar.gz
Algorithm Hash digest
SHA256 34bb9075307d1aafbe5e9fbf2aaba296ebffdf1d2b7b8c6e265bd66dac789d4b
MD5 4a4ea29a07c56bbbb308d352b23ef721
BLAKE2b-256 0fbf762b2f49c7a04215ef5fe4f4bb28eb25bc12ad036e5636c2ed3340ec47dc

See more details on using hashes here.

File details

Details for the file astroquery-0.4.12.dev10784-py3-none-any.whl.

File metadata

File hashes

Hashes for astroquery-0.4.12.dev10784-py3-none-any.whl
Algorithm Hash digest
SHA256 1cfe3489ed016e43d73c8feba78982a8ce291e258f3945e4b0a3d828225eeda9
MD5 88de84ff6eeabb0938328a361095404d
BLAKE2b-256 e53b924d5f0a6885621b3a3009d82bc6ca4b1bd0959799a9fb36bfb079d9eb43

See more details on using hashes here.

Supported by

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