MAGPIS Queries (astroquery.magpis)

Getting started

This module may be used to fetch image cutouts in the FITS format from various MAGPIS surveys. The only required parameter is the target you wish to search for. This may be specified as a name - which is resolved online via astropy functions or as coordinates using any of the coordinate systems available in astropy.coordinates. The FITS image is returned as an HDUList object. Here is a sample query:

>>> from astroquery.magpis import Magpis
>>> from astropy import coordinates
>>> from astropy import units as u
>>> image = Magpis.get_images(coordinates.SkyCoord(10.5*u.deg, 0.0*u.deg,
...                                                frame='galactic'))
>>> image

[<astropy.io.fits.hdu.image.PrimaryHDU at 0x4008650>]

There are some other optional parameters that you may additionally specify. For instance the image size may be specified by setting the image_size parameter. It defaults to 1 arcmin, but may be set to any other value using the appropriate Quantity object.

You may also specify the MAGPIS survey from which to fetch the cutout via the keyword survey. To know the list of valid surveys:

>>> from astroquery.magpis import Magpis
>>> Magpis.list_surveys()

   ['gps6epoch3',
    'gps6epoch4',
    'gps20',
    'gps20new',
    'gps90',
    'gpsmsx',
    'gpsmsx2',
    'gpsglimpse36',
    'gpsglimpse45',
    'gpsglimpse58',
    'gpsglimpse80',
    'mipsgal',
    'bolocam']

The default survey used is ‘bolocam’. Here is a query setting these optional parameters as well.

>>> from astroquery.magpis import Magpis
>>> import astropy.units as u
>>> import astropy.coordinates as coord
>>> image = Magpis.get_images(coordinates.SkyCoord(10.5*u.deg, 0.0*u.deg,
...                                                frame='galactic'),
...                                                image_size=10*u.arcmin,
...                                                survey='gps20new')
>>> image

[<astropy.io.fits.hdu.image.PrimaryHDU at 0x4013e10>]

Reference/API

astroquery.magpis Package

MAGPIS Image and Catalog Query Tool

Revision History

Refactored using common API as a part of Google Summer of Code 2013.

Originally contributed by

Adam Ginsburg (adam.g.ginsburg@gmail.com)

Classes

MagpisClass()

Conf()

Configuration parameters for astroquery.magpis.