LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Classes | |
class | JointcalStatistics |
Functions | |
def | plot_flux_distributions (plt, old_mag, new_mag, old_weighted_rms, new_weighted_rms, faint, bright, old_PA1, new_PA1, name='', outdir='.plots') |
def | plot_all_wcs_deltas (plt, data_refs, visits, old_wcs_list, per_ccd_plot=False, name='', outdir='.plots') |
def | make_xy_wcs_grid (x_dim, y_dim, wcs1, wcs2, num=50) |
def | wcs_convert (xv, yv, wcs) |
def | plot_all_wcs_quivers (plt, data_refs, visits, old_wcs_list, name, outdir='.plots') |
def | plot_wcs_quivers (ax, wcs1, wcs2, x_dim, y_dim) |
def | plot_wcs_magnitude (plt, data_refs, visits, old_wcs_list, name, outdir='.plots') |
def | plot_wcs (plt, wcs1, wcs2, x_dim, y_dim, center=(0, 0), name="", outdir='.plots') |
def | plot_rms_histogram (plt, old_rms_relative, old_rms_absolute, new_rms_relative, new_rms_absolute, old_rel_total, old_abs_total, new_rel_total, new_abs_total, name="", outdir='.plots') |
Variables | |
MatchDict = collections.namedtuple('MatchDict', ['relative', 'absolute']) | |
def lsst.jointcal.utils.make_xy_wcs_grid | ( | x_dim, | |
y_dim, | |||
wcs1, | |||
wcs2, | |||
num = 50 |
|||
) |
Return num x/y grid coordinates for wcs1 and wcs2.
Definition at line 535 of file utils.py.
def lsst.jointcal.utils.plot_all_wcs_deltas | ( | plt, | |
data_refs, | |||
visits, | |||
old_wcs_list, | |||
per_ccd_plot = False , |
|||
name = '' , |
|||
outdir = '.plots' |
|||
) |
Various plots of the difference between old and new Wcs. Parameters ---------- plt : matplotlib.pyplot instance pyplot instance to plot with. data_refs : list of lsst.daf.persistence.butlerSubset.ButlerDataRef A list of data refs to plot. visits : list of visit id (usually int) list of visit identifiers, one-to-one correspondent with catalogs. old_wcs_list : list of lsst.afw.image.wcs.Wcs A list of the old (pre-jointcal) WCSs, one-to-one corresponding to data_refs. per_ccd_plot : bool, optional Make per-ccd plots of the "wcs different" (warning: slow!) name : str Name to include in plot titles and save files. outdir : str, optional Directory to write the saved plots to.
Definition at line 499 of file utils.py.
def lsst.jointcal.utils.plot_all_wcs_quivers | ( | plt, | |
data_refs, | |||
visits, | |||
old_wcs_list, | |||
name, | |||
outdir = '.plots' |
|||
) |
Make quiver plots of the WCS deltas for each CCD in each visit. Parameters ---------- plt : matplotlib.pyplot instance pyplot instance to plot with. data_refs : list of lsst.daf.persistence.butlerSubset.ButlerDataRef A list of data refs to plot. visits : list of visit id (usually int) list of visit identifiers, one-to-one correspondent with catalogs. old_wcs_list : list of lsst.afw.image.wcs.Wcs A list of the old (pre-jointcal) WCSs, one-to-one corresponding to data_refs. name : str Name to include in plot titles and save files. outdir : str, optional Directory to write the saved plots to.
Definition at line 556 of file utils.py.
def lsst.jointcal.utils.plot_flux_distributions | ( | plt, | |
old_mag, | |||
new_mag, | |||
old_weighted_rms, | |||
new_weighted_rms, | |||
faint, | |||
bright, | |||
old_PA1, | |||
new_PA1, | |||
name = '' , |
|||
outdir = '.plots' |
|||
) |
Plot various distributions of fluxes and magnitudes. Parameters ---------- plt : matplotlib.pyplot instance pyplot instance to plot with old_mag : np.array old magnitudes new_mag : np.array new magnitudes old_weighted_rms : np.array old rms weighted by the mean (rms(data)/mean(data)) new_weighted_rms : np.array old rms weighted by the mean (rms(data)/mean(data)) faint : float Faint end of range that PA1 was computed from. bright : float Bright end of range that PA1 was computed from. old_PA1 : float Old value of PA1, to plot as horizontal line. new_PA1 : float New value of PA1, to plot as horizontal line. name : str Name to include in plot titles and save files. outdir : str, optional Directory to write the saved plots to.
def lsst.jointcal.utils.plot_rms_histogram | ( | plt, | |
old_rms_relative, | |||
old_rms_absolute, | |||
new_rms_relative, | |||
new_rms_absolute, | |||
old_rel_total, | |||
old_abs_total, | |||
new_rel_total, | |||
new_abs_total, | |||
name = "" , |
|||
outdir = '.plots' |
|||
) |
Plot histograms of the source separations and their RMS values. Parameters ---------- plt : matplotlib.pyplot instance pyplot instance to plot with. old_rms_relative : np.array old relative rms/star old_rms_absolute : np.array old absolute rms/star new_rms_relative : np.array new relative rms/star new_rms_absolute : np.array new absolute rms/star old_rel_total : float old relative rms over all stars old_abs_total : float old absolute rms over all stars new_rel_total : float new relative rms over all stars new_abs_total : float new absolute rms over all stars name : str Name to include in plot titles and save files. outdir : str, optional Directory to write the saved plots to.
Definition at line 716 of file utils.py.
def lsst.jointcal.utils.plot_wcs | ( | plt, | |
wcs1, | |||
wcs2, | |||
x_dim, | |||
y_dim, | |||
center = (0, 0) , |
|||
name = "" , |
|||
outdir = '.plots' |
|||
) |
Plot the "distortion map": wcs1-wcs2 delta of points in the CCD grid. Parameters ---------- plt : matplotlib.pyplot instance pyplot instance to plot with. wcs1 : lsst.afw.image.wcs.Wcs First WCS to compare. wcs2 : lsst.afw.image.wcs.Wcs Second WCS to compare. x_dim : int Size of array in X-coordinate to make the grid over. y_dim : int Size of array in Y-coordinate to make the grid over. center : tuple, optional Center of the data, in on-chip coordinates. name : str Name to include in plot titles and save files. outdir : str, optional Directory to write the saved plots to.
Definition at line 682 of file utils.py.
def lsst.jointcal.utils.plot_wcs_magnitude | ( | plt, | |
data_refs, | |||
visits, | |||
old_wcs_list, | |||
name, | |||
outdir = '.plots' |
|||
) |
Plot the magnitude of the WCS change between old and new visits as a heat map. Parameters ---------- plt : matplotlib.pyplot instance pyplot instance to plot with. data_refs : list of lsst.daf.persistence.butlerSubset.ButlerDataRef A list of data refs to plot. visits : list of visit id (usually int) list of visit identifiers, one-to-one correspondent with catalogs. old_wcs_list : list of lsst.afw.image.wcs.Wcs A list of the old (pre-jointcal) WCSs, one-to-one corresponding to data_refs. name : str Name to include in plot titles and save files. outdir : str, optional Directory to write the saved plots to.
Definition at line 622 of file utils.py.
def lsst.jointcal.utils.plot_wcs_quivers | ( | ax, | |
wcs1, | |||
wcs2, | |||
x_dim, | |||
y_dim | |||
) |
Plot the delta between wcs1 and wcs2 as vector arrows. Parameters ---------- ax : matplotlib.axis Matplotlib axis instance to plot to. wcs1 : lsst.afw.image.wcs.Wcs First WCS to compare. wcs2 : lsst.afw.image.wcs.Wcs Second WCS to compare. x_dim : int Size of array in X-coordinate to make the grid over. y_dim : int Size of array in Y-coordinate to make the grid over.
Definition at line 598 of file utils.py.
def lsst.jointcal.utils.wcs_convert | ( | xv, | |
yv, | |||
wcs | |||
) |