frb.surveys.dlsurvey

DataLab survey class. Gets data from any survey available through astro-datalab. Inherits from SurveyCoord. See surveycoord.py for more details on the parent class.

class frb.surveys.dlsurvey.DL_Survey(coord, radius, **kwargs)[source]

Bases: SurveyCoord

A survey class for all databases hosted by NOIR’s DataLab. Inherits from SurveyCoord

__init__(coord, radius, **kwargs)[source]
get_catalog(query=None, query_fields=None, print_query=False, timeout=120, photomdict=None)[source]

Get catalog sources around the given coordinates within self.radius.

Args:
  • query (str, optional) – SQL query to generate the catalog

  • query_fields (list, optional) – Over-ride list of items to query

  • print_query (bool) – Print the SQL query generated

Returns:

Catalog of sources obtained from the SQL query.

Return type:

astropy.table.Table

get_image(imsize, band, timeout=120, verbose=False)[source]
Get images from the catalog if available

for a given fov and band.

Args:
  • imsize (Quantity) – FOV for the desired image

  • band (str) – Band for the image (e.g. ‘r’)

  • timeout (int, optional) – Time to wait in seconds before timing out

  • verbose (bool, optional)

Returns:

Image header data unit

Return type:

HDU

get_cutout(imsize, band=None)[source]

Get cutout (and header)

Args:
  • imsize (Quantity) – e.g 10*units.arcsec

  • band (str) – e.g. ‘r’

Returns:

cutout image, cutout image header

Return type:

ndarray, Header

Note

Optional dependency: astro-datalab is required for NOIRLab Data Lab queries.