Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Documentation | Blog | View on Github | Download Stable ZIP | Download Stable 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

Astroquery works with Python 2.7 and 3.3 or later. As an astropy affiliate, astroquery requires astropy version 0.4 or later.

astroquery uses the requests module to communicate with the internet. BeautifulSoup is needed for HTML parsing for some services. The keyring module is also required for accessing services that require a login. These can all be installed using pip.

The latest version of astroquery can be pip installed:

$ pip install astroquery

and the ‘bleeding edge’ master version:

$ pip install https://github.com/astropy/astroquery/archive/master.zip

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 setup.py install

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

  • Simbad: Basic data, cross-identifications, bibliography and measurements for astronomical objects outside the solar system.

  • Vizier: Set of 11,000+ published, multiwavelength catalogues hosted by the CDS.

  • IRSA dust: Galactic dust reddening and extinction maps from IRAS 100 um data.

  • NED: NASA/IPAC Extragalactic Database. Multiwavelength data from both surveys and publications.

  • IRSA: NASA/IPAC Infrared Science Archive. Science products for all of NASA’s infrared and sub-mm missions.

  • UKIDSS: UKIRT Infrared Deep Sky Survey. JHK images of 7500 sq deg. in the northern sky.

  • MAGPIS: Multi-Array Galactic Plane Imaging Survey. 6 and 20-cm radio images of the Galactic plane from the VLA.

  • NRAO: Science data archive of the National Radio Astronomy Observatory. VLA, JVLA, VLBA and GBT data products.

  • Besancon: Model of stellar population synthesis in the Galaxy.

  • NIST: National Institute of Standards and Technology (NIST) atomic lines database.

  • Fermi: Fermi gamma-ray telescope archive.

  • SDSS: Sloan Digital Sky Survey data, including optical images, spectra, and spectral templates.

  • Alfalfa: Arecibo Legacy Fast ALFA survey; extragalactic HI radio data.

  • SHA: Spitzer Heritage Archive; infrared data products from the Spitzer Space Telescope

  • Lamda: Leiden Atomic and Molecular Database; energy levels, radiative transitions, and collisional rates for astrophysically relevant atoms and molecules.

  • Ogle: Optical Gravitational Lensing Experiment III; information on interstellar extinction towards the Galactic bulge.

  • Splatalogue: National Radio Astronomy Observatory (NRAO)-maintained (mostly) molecular radio and millimeter line list service.

  • CosmoSim: The CosmoSim database provides results from cosmological simulations performed within different projects: the MultiDark project, the BolshoiP project, and the CLUES project.

  • ESO Archive

  • ALMA Archive

  • GAMA database

  • NVAS archive

  • Open Expolanet Catalog (OEC)

Badges

Latest PyPI version Number of PyPI downloads https://travis-ci.org/astropy/astroquery.svg?branch=master https://coveralls.io/repos/astropy/astroquery/badge.png https://badges.gitter.im/astropy/astroquery.png https://zenodo.org/badge/3821/astropy/astroquery.png

Metadata

Release files for astroquery 0.3.dev2794

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astroquery 0.3.dev2794
File Size Uploaded Provenance
astroquery-0.3.dev2794.tar.gz 2.7 MB Without provenance Details

Release files / astroquery-0.3.dev2794.tar.gz

Download URL astroquery-0.3.dev2794.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d985b84c8c9b2f849ddc9aacdb2c3467cb6a34035de0d04f000dd0dfdfac764a
BLAKE2b-256 checksum
How to use checksums
a0ebc79c0d8ec2b9a437712ab755ddae3eda9aa3830d247725e28465c3c88046
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for astroquery 0.3.dev2794

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.dev270

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page