sloancone.check_coverage module

Given a location in the sky, check SDSS to see if the survey covered that region.

Author

David Young

class check_coverage(log, ra, dec, url='http://skyserver.sdss.org/dr12/en/tools/search/x_sql.aspx')[source]

Bases: object

The worker class for the check_coverage module

Key Arguments

  • log – python logger

  • raDeg – ra in decimal degrees

  • decDeg – dec in decimal degrees

  • url – the SDSS URL to ping (DR12 is the default)

Usage

To test whether or not a location in the sky has been covered by the SDSS survey:

from sloancone import check_coverage
# covered = True | False | 999 (i.e. not sure)
covered = check_coverage(
    log=log,
    ra=122.3343,
    dec=45.34343
).get()  

print(covered)

# OUTPUT: True

Coordinates can also be given in sexegesimal format:

from sloancone import check_coverage
covered = check_coverage(
    log=log,
    ra="12:45:4.45466",
    dec="-25:22:34.3434"
).get()

print(covered)

# OUTPUT: False
get()[source]

get the check_coverage object

Return

  • check_coverage

_query_sdss()[source]
  • query sdss*

_query(sql, url, fmt, log)[source]
  • query*

_filtercomment(sql)[source]

Get rid of comments starting with –