gen_tap_box_query

grizli.catalog.gen_tap_box_query(ra=165.86, dec=34.829694, radius=3.0, corners=None, max=100000, db='ls_dr7.tractor_primary', columns=['*'], rd_colnames=['ra', 'dec'], wcs_pad=0.5, circle=False)[source]

Generate a query string for the NOAO Legacy Survey TAP server

Parameters
ra, decfloat

RA, Dec in decimal degrees

radiusfloat

Search radius, in arc-minutes.

corners4-tuple, WCS or None

ra_min, ra_max, dec_min, dec_max of a query box to use instead of radius. Or if a WCS object, get limits from the calc_footprint method

maxint

Maximum number of rows to return. Default is 100000.

dbstr

Database to query. Default is ls_dr7.tractor_primary.

columnslist of str

List of columns to output. Default [‘*’] returns all columns.

rd_colnamesstr, str

Column names in db corresponding to ra/dec (degrees). Default is ["ra", "dec"].

wcs_padfloat

Padding to add to WCS box queries. Default is 0.5.

circlebool

Use a circle and point spatial query rather than a box

Returns
querystr

Query string