|
LSST Applications
21.0.0+04719a4bac,21.0.0-1-ga51b5d4+f5e6047307,21.0.0-11-g2b59f77+a9c1acf22d,21.0.0-11-ga42c5b2+86977b0b17,21.0.0-12-gf4ce030+76814010d2,21.0.0-13-g1721dae+760e7a6536,21.0.0-13-g3a573fe+768d78a30a,21.0.0-15-g5a7caf0+f21cbc5713,21.0.0-16-g0fb55c1+b60e2d390c,21.0.0-19-g4cded4ca+71a93a33c0,21.0.0-2-g103fe59+bb20972958,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+3ad5d60fb1,21.0.0-2-g7f82c8f+8babb168e8,21.0.0-2-g8f08a60+06509c8b61,21.0.0-2-g8faa9b5+616205b9df,21.0.0-2-ga326454+8babb168e8,21.0.0-2-gde069b7+5e4aea9c2f,21.0.0-2-gecfae73+1d3a86e577,21.0.0-2-gfc62afb+3ad5d60fb1,21.0.0-25-g1d57be3cd+e73869a214,21.0.0-3-g357aad2+ed88757d29,21.0.0-3-g4a4ce7f+3ad5d60fb1,21.0.0-3-g4be5c26+3ad5d60fb1,21.0.0-3-g65f322c+e0b24896a3,21.0.0-3-g7d9da8d+616205b9df,21.0.0-3-ge02ed75+a9c1acf22d,21.0.0-4-g591bb35+a9c1acf22d,21.0.0-4-g65b4814+b60e2d390c,21.0.0-4-gccdca77+0de219a2bc,21.0.0-4-ge8a399c+6c55c39e83,21.0.0-5-gd00fb1e+05fce91b99,21.0.0-6-gc675373+3ad5d60fb1,21.0.0-64-g1122c245+4fb2b8f86e,21.0.0-7-g04766d7+cd19d05db2,21.0.0-7-gdf92d54+04719a4bac,21.0.0-8-g5674e7b+d1bd76f71f,master-gac4afde19b+a9c1acf22d,w.2021.13
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 534 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 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 | |||
| ) |