Skip to content

Commit

Permalink
Merge branch 'tickets/DM-35336'
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenam committed May 6, 2023
2 parents 46705dc + 0d55eb4 commit 88f8da8
Show file tree
Hide file tree
Showing 7 changed files with 661 additions and 362 deletions.
56 changes: 22 additions & 34 deletions pipelines/coaddQAPlots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,48 +157,36 @@ tasks:
"hist2": "ap09Flux SN",
}
plot_ri_gr_psf:
# Make a color color plot of gri in PSF magnitudes.
class: lsst.analysis.drp.colorColorPlot.ColorColorPlotTask
config:
connections.plotName: ri_gr_psf
xLims: (-0.99, 2.4)
yLims: (-0.8, 2.8)

plot_ri_gr_cmodel:
# Make a color color plot of gri in CModel magnitudes.
class: lsst.analysis.drp.colorColorPlot.ColorColorPlotTask
config:
connections.plotName: ri_gr_cmodel
axisActions.xAction.magDiff.col1: "g_cModelFlux"
axisActions.xAction.magDiff.col2: "r_cModelFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.col1: "r_cModelFlux"
axisActions.yAction.magDiff.col2: "i_cModelFlux"
axisActions.yAction.magDiff.returnMillimags: False
axisActions.zAction.column: "i_cModelFlux"
axisLabels: {"x": "g - r CModel (mag)",
"y": "r - i CModel (mag)",
"z": "i_cModelMag (mag)"}
selectorActions.coaddSelector: FlagSelector
selectorActions.coaddSelector.selectWhenFalse: ["g_cModel_flag", "r_cModel_flag", "i_cModel_flag"]
selectorActions.flagSelector.bands: ["g", "r", "i"]
selectorActions.catSnSelector.fluxType: "cModelFlux"
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["g", "r", "i"]
python: >
from lsst.analysis.drp.dataSelectors import FlagSelector
xLims: (-0.99, 2.4)
yLims: (-0.8, 2.8)
python: |
config.fluxTypeForColor = "cModelFlux"
config.axisActions.zAction.column = "i_cModelFlux"
config.setConfigDependencies()
plot_ri_gr_psf:
# Make a color color plot of gri in PSF magnitudes.
plot_iz_ri_psf:
# Make a color color plot of riz in PSF magnitudes.
class: lsst.analysis.drp.colorColorPlot.ColorColorPlotTask
config:
connections.plotName: ri_gr_psf
axisActions.xAction.magDiff.col1: "g_psfFlux"
axisActions.xAction.magDiff.col2: "r_psfFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.col1: "r_psfFlux"
axisActions.yAction.magDiff.col2: "i_psfFlux"
axisActions.yAction.magDiff.returnMillimags: False
axisActions.zAction.column: "i_psfFlux"
axisLabels: {"x": "g - r PSF (mag)",
"y": "r - i PSF (mag)",
"z": "i_PsfMag (mag)"}
selectorActions.flagSelector.bands: ["g", "r", "i"]
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["g", "r", "i"]
connections.plotName: iz_ri_psf
xLims: (-1.2, 3.3)
yLims: (-0.99, 1.99)
python: |
config.bands = {"band1": "r", "band2": "i", "band3": "z"}
config.setConfigDependencies()
plot_astromRefCat_sky_tract_dRA:
class: lsst.analysis.drp.skyPlot.SkyPlotTask
Expand Down
34 changes: 34 additions & 0 deletions pipelines/coaddQAPlots_tier2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,40 @@ tasks:
from lsst.analysis.drp.calcFunctors import SnPercentDiffCalculator
config.axisLabels.update({"y": "Percent Diff: S/N$_{PSF}$ - S/N$_{CModel}$"})
plot_ri_gr_contour_psf:
# Make a contour color color plot of gri in PSF magnitudes.
class: lsst.analysis.drp.colorColorPlot.ColorColorPlotTask
config:
connections.plotName: ri_gr_contour_psf
contourPlot: True
xLims: (-0.99, 2.4)
yLims: (-0.8, 2.8)

plot_ri_gr_contour_cmodel:
# Make a contour color color plot of gri in CModel magnitudes.
class: lsst.analysis.drp.colorColorPlot.ColorColorPlotTask
config:
connections.plotName: ri_gr_contour_cmodel
contourPlot: True
axisActions.zAction.column: "i_cModelFlux"
xLims: (-0.99, 2.4)
yLims: (-0.8, 2.8)
python: |
config.fluxTypeForColor = "cModelFlux"
config.setConfigDependencies()
plot_iz_ri_contour_psf:
# Make a contour color color plot of riz in PSF magnitudes.
class: lsst.analysis.drp.colorColorPlot.ColorColorPlotTask
config:
connections.plotName: iz_ri_contour_psf
contourPlot: True
xLims: (-1.2, 3.3)
yLims: (-0.99, 1.99)
python: |
config.bands = {"band1": "r", "band2": "i", "band3": "z"}
config.setConfigDependencies()
# Tier 2 Ellipticity coadd plots
plot_shapeSizeDiff_scatter:
# Plots the difference between the calculated determinant size
Expand Down
146 changes: 21 additions & 125 deletions pipelines/stellarLocusPlots.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
description: Make stellar locus plots for QA
tasks:

# Each of the plots needs to have a stellarLocusFitDict
# Each of the plots needs to set the stellarLocusFitDict
# this dict contains xMin, xMax, yMin, yMax which define
# a box in color space that is used for the fit. The
# color space that it is depends on the plot. It also
Expand All @@ -12,157 +11,54 @@ tasks:
class: lsst.analysis.drp.colorColorFitPlot.ColorColorFitPlotTask
config:
connections.plotName: wFit_PSF
axisActions.xAction.magDiff.col1: "g_psfFlux"
axisActions.xAction.magDiff.col2: "r_psfFlux"
axisActions.yAction.magDiff.col1: "r_psfFlux"
axisActions.yAction.magDiff.col2: "i_psfFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.returnMillimags: False
axisActions.magAction.column: "r_psfFlux"
axisLabels: {"x": "g - r PSF Magnitude (mag)",
"y": "r - i PSF Magnitude (mag)",
"mag": "r PSF Magnitude (mag)"}
selectorActions.flagSelector: CoaddPlotFlagSelector
selectorActions.flagSelector.bands: ["g", "r", "i"]
selectorActions.catSnSelector: SnSelector
selectorActions.catSnSelector.fluxType: "psfFlux"
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["g", "r", "i"]
stellarLocusFitDict: {"xMin": 0.28, "xMax": 1.0, "yMin": 0.02, "yMax": 0.48,
"mHW": 0.52, "bHW": -0.08}
python: >
from lsst.analysis.drp.dataSelectors import CoaddPlotFlagSelector, SnSelector

plot_wFit_CModel:
class: lsst.analysis.drp.colorColorFitPlot.ColorColorFitPlotTask
config:
connections.plotName: wFit_CModel
axisActions.xAction.magDiff.col1: "g_cModelFlux"
axisActions.xAction.magDiff.col2: "r_cModelFlux"
axisActions.yAction.magDiff.col1: "r_cModelFlux"
axisActions.yAction.magDiff.col2: "i_cModelFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.returnMillimags: False
axisActions.magAction.column: "r_cModelFlux"
axisLabels: {"x": "g - r CModel Magnitude (mag)",
"y": "r - i CModel Magnitude (mag)",
"mag": "r CModel Magnitude (mag)"}
selectorActions.flagSelector: CoaddPlotFlagSelector
selectorActions.flagSelector.bands: ["g", "r", "i"]
selectorActions.additionalFlagSelector: FlagSelector
selectorActions.additionalFlagSelector.selectWhenFalse: ["g_cModel_flag",
"r_cModel_flag",
"i_cModel_flag"]
selectorActions.catSnSelector: SnSelector
selectorActions.catSnSelector.fluxType: "cModelFlux"
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["g", "r", "i"]
stellarLocusFitDict: {"xMin": 0.28, "xMax": 1.0, "yMin": 0.02, "yMax": 0.48,
"mHW": 0.52, "bHW": -0.08}
python: >
from lsst.analysis.drp.dataSelectors import CoaddPlotFlagSelector, SnSelector, FlagSelector
python: |
config.fluxTypeForColor = "cModelFlux"
config.setConfigDependencies()
plot_xFit_PSF:
class: lsst.analysis.drp.colorColorFitPlot.ColorColorFitPlotTask
config:
connections.plotName: xFit_PSF
axisActions.xAction.magDiff.col1: "g_psfFlux"
axisActions.xAction.magDiff.col2: "r_psfFlux"
axisActions.yAction.magDiff.col1: "r_psfFlux"
axisActions.yAction.magDiff.col2: "i_psfFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.returnMillimags: False
axisActions.magAction.column: "r_psfFlux"
axisLabels: {"x": "g - r PSF Magnitude (mag)",
"y": "r - i PSF Magnitude (mag)",
"mag": "r PSF Magnitude (mag)"}
selectorActions.flagSelector: CoaddPlotFlagSelector
selectorActions.flagSelector.bands: ["g", "r", "i"]
selectorActions.catSnSelector: SnSelector
selectorActions.catSnSelector.fluxType: "psfFlux"
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["g", "r", "i"]
stellarLocusFitDict: {"xMin": 1.05, "xMax": 1.55, "yMin": 0.78, "yMax": 1.62,
"mHW": 13.35, "bHW": -15.54}
python: >
from lsst.analysis.drp.dataSelectors import CoaddPlotFlagSelector, SnSelector

plot_xFit_CModel:
class: lsst.analysis.drp.colorColorFitPlot.ColorColorFitPlotTask
config:
connections.plotName: xFit_CModel
axisActions.xAction.magDiff.col1: "g_cModelFlux"
axisActions.xAction.magDiff.col2: "r_cModelFlux"
axisActions.yAction.magDiff.col1: "r_cModelFlux"
axisActions.yAction.magDiff.col2: "i_cModelFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.returnMillimags: False
axisActions.magAction.column: "r_cModelFlux"
axisLabels: {"x": "g - r CModel Magnitude (mag)",
"y": "r - i CModel Magnitude (mag)",
"mag": "r CModel Magnitude (mag)"}
selectorActions.flagSelector: CoaddPlotFlagSelector
selectorActions.flagSelector.bands: ["g", "r", "i"]
selectorActions.additionalFlagSelector: FlagSelector
selectorActions.additionalFlagSelector.selectWhenFalse: ["g_cModel_flag",
"r_cModel_flag",
"i_cModel_flag"]
selectorActions.catSnSelector: SnSelector
selectorActions.catSnSelector.fluxType: "psfFlux"
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["g", "r", "i"]
stellarLocusFitDict: {"xMin": 1.05, "xMax": 1.55, "yMin": 0.78, "yMax": 1.62,
"mHW": 13.35, "bHW": -15.54}
python: >
from lsst.analysis.drp.dataSelectors import CoaddPlotFlagSelector, SnSelector, FlagSelector
python: |
config.fluxTypeForColor = "cModelFlux"
config.setConfigDependencies()
plot_yFit_PSF:
class: lsst.analysis.drp.colorColorFitPlot.ColorColorFitPlotTask
config:
connections.plotName: yFit_PSF
axisActions.xAction.magDiff.col1: "r_psfFlux"
axisActions.xAction.magDiff.col2: "i_psfFlux"
axisActions.yAction.magDiff.col1: "i_psfFlux"
axisActions.yAction.magDiff.col2: "z_psfFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.returnMillimags: False
axisActions.magAction.column: "i_psfFlux"
axisLabels: {"x": "r - i PSF Magnitude (mag)",
"y": "i - z PSF Magnitude (mag)",
"mag": "i PSF Magnitude (mag)"}
selectorActions.flagSelector: CoaddPlotFlagSelector
selectorActions.flagSelector.bands: ["r", "i", "z"]
selectorActions.catSnSelector: SnSelector
selectorActions.catSnSelector.fluxType: "psfFlux"
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["r", "i", "z"]
stellarLocusFitDict: {"xMin": 0.82, "xMax": 2.01, "yMin": 0.37, "yMax": 0.9,
"mHW": 0.40, "bHW": 0.03}
python: >
from lsst.analysis.drp.dataSelectors import CoaddPlotFlagSelector, SnSelector
xLims: (-0.8, 3.2)
yLims: (-0.5, 1.4)
python: |
config.bands = {"band1": "r", "band2": "i", "band3": "z"}
config.setConfigDependencies()
plot_yFit_CModel:
class: lsst.analysis.drp.colorColorFitPlot.ColorColorFitPlotTask
config:
connections.plotName: yFit_CModel
axisActions.xAction.magDiff.col1: "r_cModelFlux"
axisActions.xAction.magDiff.col2: "i_cModelFlux"
axisActions.yAction.magDiff.col1: "i_cModelFlux"
axisActions.yAction.magDiff.col2: "z_cModelFlux"
axisActions.xAction.magDiff.returnMillimags: False
axisActions.yAction.magDiff.returnMillimags: False
axisActions.magAction.column: "i_cModelFlux"
axisLabels: {"x": "r - i CModel Magnitude (mag)",
"y": "i - z CModel Magnitude (mag)",
"mag": "i CModel Magnitude (mag)"}
selectorActions.flagSelector: CoaddPlotFlagSelector
selectorActions.flagSelector.bands: ["r", "i", "z"]
selectorActions.additionalFlagSelector: FlagSelector
selectorActions.additionalFlagSelector.selectWhenFalse: ["g_cModel_flag",
"r_cModel_flag",
"i_cModel_flag"]
selectorActions.catSnSelector: SnSelector
selectorActions.catSnSelector.fluxType: "psfFlux"
selectorActions.catSnSelector.threshold: 50
selectorActions.catSnSelector.bands: ["r", "i", "z"]
stellarLocusFitDict: {"xMin": 0.82, "xMax": 2.01, "yMin": 0.37, "yMax": 0.9,
"mHW": 0.40, "bHW": 0.03}
python: >
from lsst.analysis.drp.dataSelectors import CoaddPlotFlagSelector, SnSelector, FlagSelector
xLims: (-0.8, 3.2)
yLims: (-0.5, 1.4)
python: |
config.fluxTypeForColor = "cModelFlux"
config.bands = {"band1": "r", "band2": "i", "band3": "z"}
config.setConfigDependencies()

0 comments on commit 88f8da8

Please sign in to comment.