LSSTApplications
19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
|
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 |
|||
) |
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 498 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 555 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 715 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 681 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 621 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 597 of file utils.py.
def lsst.jointcal.utils.wcs_convert | ( | xv, | |
yv, | |||
wcs | |||
) |