In [1]:
# imports
import numpy as np
from matplotlib import pyplot as plt
from importlib import reload
from astropy.coordinates import SkyCoord
from astropy import units
from astropy.wcs import WCS
from astropy.io import fits
from frb.surveys import survey_utils,images
from frb.figures import finder
In [2]:
coord = SkyCoord('J214425.25-403400.81', unit=(units.hourangle, units.deg))
search_r = 2 * units.arcmin
In [3]:
des_srvy = survey_utils.load_survey_by_name('DES', coord, search_r)
cutout, cutout_hdr = des_srvy.get_cutout(search_r, band='r')
In [4]:
wcs = WCS(cutout_hdr)
In [5]:
cutout.shape
Out[5]:
In [6]:
np.std(cutout)
Out[6]:
In [9]:
reload(finder)
fig, ax = finder.generate(cutout, wcs, 'FRB 180924', primary_coord=coord) #vmnx=(-10.,200.))
In [10]:
fig, ax = finder.generate(cutout, wcs, 'FRB 180924', primary_coord=coord, log_stretch=True)
In [12]:
reload(finder)
fig, ax = finder.generate(cutout, wcs, 'FRB 180924', primary_coord=coord,
cutout=(coord, 20*units.arcsec))
In [2]:
coord = SkyCoord(ra=45.192774821057974, dec=5.943233713446355, unit='deg')
In [3]:
deccal_srvy = survey_utils.load_survey_by_name('DECaL', coord, 10*units.arcmin)
In [4]:
cat = deccal_srvy.get_catalog()
In [5]:
cutout, cutout_hdr = deccal_srvy.get_cutout(1*units.arcmin, band='z')
In [6]:
cutout
Out[6]:
In [7]:
np.std(cutout)
Out[7]:
In [8]:
wcs2 = WCS(cutout_hdr)
In [9]:
second = SkyCoord(ra=45.19217121275808, dec=5.943188095643575, unit='deg')
In [ ]:
In [10]:
fig, ax = finder.generate(cutout, wcs2, 'TST DECCaL', primary_coord=coord,
secondary_coord=coord, third_coord=second,
vmnx=(-0.2, 0.2))
In [ ]: