OgleClass#

class astroquery.ogle.OgleClass[source]#

Bases: BaseQuery

Attributes Summary

Methods Summary

query_region(*args, **kwargs)

Queries the service and returns a table object.

query_region_async(*[, coord, algorithm, ...])

Query the OGLE-III interstellar extinction calculator.

Attributes Documentation

DATA_URL = 'https://ogle.astrouw.edu.pl/cgi-ogle/getext.py'#
TIMEOUT = 60#
algorithms = ['NG', 'NN']#
coord_systems = ['RD', 'LB']#
quality_codes = ['GOOD', 'ALL']#

Methods Documentation

query_region(*args, **kwargs)#

Queries the service and returns a table object.

Query the OGLE-III interstellar extinction calculator.

Parameters:
coordlist-like

Pointings to evaluate interstellar extinction. Three forms of coordinates may be passed:

* single astropy coordinate instance
* list-like object (1 x N) of astropy coordinate instances
algorithmstring

Algorithm to interpolate data for desired coordinate. Valid options:

* 'NG': nearest grid point
* 'NN': natural neighbor interpolation
qualitystring

Quality factor for data. Valid options:

* 'All': all points
* 'GOOD': QF=0 as described in Nataf et al. (2012).
coord_sysstring

Coordinate system if using lists of RA/Decs in coord. Valid options:

* 'RD': equatorial coordinates
* 'LB': Galactic coordinates.
get_query_payloadbool, optional

If True then returns the generated query payload. Defaults to False.

Returns:
tableA Table object.
Raises:
CoordParseError

Exception raised for malformed coordinate input

Examples

Using astropy coordinates:

>>> from astropy.coordinates import SkyCoord
>>> from astropy import units as u
>>> co = SkyCoord(0.0, 3.0, unit=(u.degree, u.degree),
...               frame='galactic')
>>> from astroquery.ogle import Ogle
>>> t = Ogle.query_region(coord=co)
>>> t.pprint()
RA/LON   Dec/Lat    A_I  E(V-I) S_E(V-I) R_JKVI   mu    S_mu
--------- ---------- ----- ------ -------- ------ ------ ----- ...
17.568157 -27.342475 3.126  2.597    0.126 0.3337 14.581 0.212
query_region_async(*, coord=None, algorithm='NG', quality='GOOD', coord_sys='RD', get_query_payload=False)[source]#

Query the OGLE-III interstellar extinction calculator.

Parameters:
coordlist-like

Pointings to evaluate interstellar extinction. Three forms of coordinates may be passed:

* single astropy coordinate instance
* list-like object (1 x N) of astropy coordinate instances
algorithmstring

Algorithm to interpolate data for desired coordinate. Valid options:

* 'NG': nearest grid point
* 'NN': natural neighbor interpolation
qualitystring

Quality factor for data. Valid options:

* 'All': all points
* 'GOOD': QF=0 as described in Nataf et al. (2012).
coord_sysstring

Coordinate system if using lists of RA/Decs in coord. Valid options:

* 'RD': equatorial coordinates
* 'LB': Galactic coordinates.
get_query_payloadbool, optional

If True then returns the generated query payload. Defaults to False.

Returns:
responserequests.Response

The HTTP response returned from the service.

Raises:
CoordParseError

Exception raised for malformed coordinate input

Examples

Using astropy coordinates:

>>> from astropy.coordinates import SkyCoord
>>> from astropy import units as u
>>> co = SkyCoord(0.0, 3.0, unit=(u.degree, u.degree),
...               frame='galactic')
>>> from astroquery.ogle import Ogle
>>> t = Ogle.query_region(coord=co)
>>> t.pprint()
RA/LON   Dec/Lat    A_I  E(V-I) S_E(V-I) R_JKVI   mu    S_mu
--------- ---------- ----- ------ -------- ------ ------ ----- ...
17.568157 -27.342475 3.126  2.597    0.126 0.3337 14.581 0.212