Skip to content
Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz
Python HTML Shell
Branch: master
Clone or download

Latest commit

bsipocz Merge pull request #1685 from saimn/gemini
Fix passing additional args to Gemini's query_criteria
Latest commit 5076ec5 Apr 24, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Trying to opt into rebase action Sep 9, 2019
astropy_helpers @ 3109cc7 Updating astropy helpers to v2.0.11 Oct 25, 2019
astroquery Merge pull request #1685 from saimn/gemini Apr 24, 2020
docs Merge pull request #1645 from ceb8/mast_refactor Apr 23, 2020
frontpage another and another and another try.... Sep 15, 2013
licenses Moving license to root directory [skip ci] Mar 30, 2017
.gitignore query the NASA exoplanet archive using their API Dec 25, 2019
.gitmodules Initial commit of affiliated package template Feb 5, 2015
.pep8speaks.yml typo in comment Jan 25, 2019
.rtd-environment.yml Changing rtd configs to use conda rather than pip, and switch to use … Aug 3, 2017
.travis.yml Fixing more versions for the oldest dependency job Apr 16, 2020
CHANGES.rst Merge pull request #1645 from ceb8/mast_refactor Apr 23, 2020
CITATION CITATION file should be in the source to be distributed to user insta… May 19, 2019
CONTRIBUTING.rst add link to 'requests' module Mar 4, 2019
LICENSE.rst Moving license to root directory [skip ci] Mar 30, 2017
MANIFEST.in Renaming changelog so it's syntax highlighted Sep 19, 2019
README.rst More Gemini docs updates Nov 23, 2019
ah_bootstrap.py Updating astropy helpers to v2.0.11 Oct 25, 2019
pip-requirements Updating version dependencies [skip ci] Jan 30, 2019
pyproject.toml Renaming changelog so it's syntax highlighted Sep 19, 2019
pytest.ini pytest.ini uses --doctest-plus instead of --doctest-modules Oct 14, 2013
readthedocs.yml Changing rtd configs to use conda rather than pip, and switch to use … Aug 3, 2017
setup.cfg Review from @bsipocz Mar 5, 2020
setup.py Use pytest-remotedata plugin. Mar 5, 2020

README.rst

Documentation | Blog | View on Github | Download Stable ZIP | Download Stable TAR

Latest PyPI version Travis CI Status Coverage Status 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_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 3.6 or later. As an astropy affiliate, astroquery requires astropy version 2.0 or later.

astroquery uses the requests module to communicate with the internet. BeautifulSoup and html5lib' are 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 or anaconda. Running the tests requires curl to be installed.

The latest version of astroquery can be conda installed:

$ conda install -c astropy astroquery

or 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

The following modules have been completed using a common API:

  • ALMA Archive
  • Atomic Line List: A collection of more than 900,000 atomic transitions.
  • Besancon: Model of stellar population synthesis in the Galaxy.
  • CDS MOC Service: A collection of all-sky survey coverage maps.
  • CADC: Canadian Astronomy Data Centre.
  • ESASky: ESASky is a science driven discovery portal providing easy visualizations and full access to the entire sky as observed with ESA Space astronomy missions.
  • ESO Archive
  • Gaia: European Space Agency Gaia Archive.
  • GAMA database
  • Gemini: Gemini Archive.
  • HEASARC: NASA's High Energy Astrophysics Science Archive Research Center.
  • IBE: IRSA Image Server program interface (IBE) Query Tool provides access to the 2MASS, WISE, and PTF image archives.
  • IRSA: NASA/IPAC Infrared Science Archive. Science products for all of NASA's infrared and sub-mm missions.
  • IRSA dust: Galactic dust reddening and extinction maps from IRAS 100 um data.
  • MAGPIS: Multi-Array Galactic Plane Imaging Survey. 6 and 20-cm radio images of the Galactic plane from the VLA.
  • MAST: Barbara A. Mikulski Archive for Space Telescopes.
  • Minor Planet Center
  • NASA ADS: SAO/NASA Astrophysics Data System.
  • NED: NASA/IPAC Extragalactic Database. Multiwavelength data from both surveys and publications.
  • NIST: National Institute of Standards and Technology (NIST) atomic lines database.
  • NRAO: Science data archive of the National Radio Astronomy Observatory. VLA, JVLA, VLBA and GBT data products.
  • NVAS archive
  • Simbad: Basic data, cross-identifications, bibliography and measurements for astronomical objects outside the solar system.
  • Skyview: NASA SkyView service for imaging surveys.
  • Splatalogue: National Radio Astronomy Observatory (NRAO)-maintained (mostly) molecular radio and millimeter line list service.
  • UKIDSS: UKIRT Infrared Deep Sky Survey. JHK images of 7500 sq deg. in the northern sky.
  • Vamdc: VAMDC molecular line database.
  • Vizier: Set of 11,000+ published, multiwavelength catalogues hosted by the CDS.
  • VO Simple Cone Search
  • xMatch: Cross-identify sources between very large data sets or between a user-uploaded list and a large catalogue.

These others are functional, but do not follow a common or consistent API:

  • Alfalfa: Arecibo Legacy Fast ALFA survey; extragalactic HI radio data.
  • CosmoSim: The CosmoSim database provides results from cosmological simulations performed within different projects: the MultiDark project, the BolshoiP project, and the CLUES project.
  • Exoplanet Orbit Database
  • Fermi: Fermi gamma-ray telescope archive.
  • HITRAN: Access to the high-resolution transmission molecular absorption database.
  • JPL Horizons: JPL Solar System Dynamics Horizons Service.
  • JPL SBDB: JPL Solar System Dynamics Small-Body Database Browser Service.
  • Lamda: Leiden Atomic and Molecular Database; energy levels, radiative transitions, and collisional rates for astrophysically relevant atoms and molecules.
  • NASA Exoplanet Archive
  • OAC API: Open Astronomy Catalog REST API Service.
  • Ogle: Optical Gravitational Lensing Experiment III; information on interstellar extinction towards the Galactic bulge.
  • Open Expolanet Catalog (OEC)
  • SDSS: Sloan Digital Sky Survey data, including optical images, spectra, and spectral templates.
  • SHA: Spitzer Heritage Archive; infrared data products from the Spitzer Space Telescope.

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

Additional Links

Download Development ZIP | Download Development TAR

Maintained by Adam Ginsburg and Brigitta Sipocz (astropy.astroquery@gmail.com)

You can’t perform that action at this time.