Slurp public photometry and spectroscopy at an FRB position

v1 - DES
v2 - FIRST

In [1]:
# imports
from matplotlib import pyplot as plt

from astropy.coordinates import SkyCoord
from astropy import units
from astropy.wcs import WCS

from frb.surveys import survey_utils


/home/xavier/.pyenv/versions/anaconda3-5.0.1/lib/python3.6/site-packages/astroquery/sdss/__init__.py:29: UserWarning: Experimental: SDSS has not yet been refactored to have its API match the rest of astroquery (but it's nearly there).
  warnings.warn("Experimental: SDSS has not yet been refactored to have its API "

DES

Target


In [2]:
coord = SkyCoord('J214425.25-403400.81', unit=(units.hourangle, units.deg))
search_r = 10 * units.arcsec

Catalog


In [3]:
des_srvy = survey_utils.load_survey_by_name('DES', coord, search_r)
des_tbl = des_srvy.get_catalog(print_query=True)


SELECT mag_auto_g, magerr_auto_g, mag_auto_r, magerr_auto_r, mag_auto_i, magerr_auto_i, mag_auto_z, magerr_auto_z, mag_auto_y, magerr_auto_y, coadd_object_id, ra, dec, tilename
FROM des_dr1.main
WHERE q3c_radial_query(ra,dec,326.105208,-40.566892,0.002778)
Returning Pandas dataframe
SELECT w1mpro, w1sigmpro, w2mpro, w2sigmpro, w3mpro, w3sigmpro, w4mpro, w4sigmpro, coadd_object_id, des_ra, des_dec, ra, dec
FROM des_dr1.des_allwise
WHERE q3c_radial_query(ra,dec,326.105208,-40.566892,0.002778)
Returning Pandas dataframe

In [4]:
des_tbl


Out[4]:
Table length=1
DES_gDES_g_errDES_rDES_r_errDES_iDES_i_errDES_zDES_z_errDES_YDES_Y_errDES_IDradecDES_tile
float64float64float64float64float64float64float64float64float64float64int64float64float64str12
23.99050.19443822.31050.059530420.96950.02965159999999999720.43850.039153520.2920.100701209895628326.105565-40.569421999999996DES2143-4040

Cut-out


In [5]:
cutout, cutout_hdr = des_srvy.get_cutout(search_r, band='r')

In [6]:
wcs = WCS(des_srvy.cutout_hdr)


WARNING: FITSFixedWarning: 'datfix' made the change 'Changed '' to '2014-10-21T03:12:45.272''. [astropy.wcs.wcs]

In [7]:
plt.clf()
plt.subplot(projection=wcs)
plt.imshow(cutout, origin='lower')
plt.show()


FIRST


In [9]:
coord2 = SkyCoord('J081240.68+320809', unit=(units.hourangle, units.deg))
search_r = 10 * units.arcsec

In [10]:
first_srvy = survey_utils.load_survey_by_name('FIRST', coord2, search_r)
first_tbl = first_srvy.get_catalog()

In [11]:
first_tbl


Out[11]:
Table length=1
NAMEradecFLUX_20_CMFLUX_20_CM_ERRORINT_FLUX_20_CMSIDELOBE_PROBTWOMASS_FIRST_OFFSETTWOMASS_KMAGSEARCH_OFFSET_separation
degdegMJYMJYMJYARCSECMAGarcmin
bytes22float64float64float64float64float64float64float64float64bytes46float64
FIRST J081240.6+320808123.16951232.13569718.320.14618.400.0140.3115.310.008 (123.16950579044646,32.135827323283664)0.008202689831452928

DECals


In [12]:
dec_srvy = survey_utils.load_survey_by_name('DECaL', coord2, search_r)
dec_tbl = dec_srvy.get_catalog()


Returning Pandas dataframe

In [13]:
dec_tbl


Out[13]:
Table masked=True length=2
DECaL_IDbrick_primaryDECaL_brickradecDECaL_gDECaL_rDECaL_zDECaL_W1DECaL_W2DECaL_W3DECaL_W4snr_gsnr_rsnr_zsnr_w1snr_w2snr_w3snr_w4
int64int64int64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
76966146363229621507231123.16771361948432.13417406206960420.618619.53518.967220.209920.4821.3003--149.126135.514138.43513.36854.573410.092629-0.8989540000000001
76966146363229631507231123.16952553840432.135715799535417.824217.419517.085117.056116.855715.526814.7015763.3380000000001536.565627.393244.87128.4489999999999818.83875.95385

In [ ]: