Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions config/objectTableCoreRefCatMatchPhotomWholeSkyPlot_dp2Pub.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Configuration for instances of lsst.analysis.tools.tasks.WholeSkyAnalysisTask
# that aggregates metrics from objectTableCoreRefCatMatch analysis.

from lsst.analysis.tools.atools import WholeSkyPlotTool

# Keys with `band`
keysWithBand = [
"photomDiffMetrics_{band}_ref_photom_offset_coadd",
"photomDiffMetrics_{band}_ref_photom_offset_sigmaMad_coadd",
]
if hasattr(parameters, "objectTableCoreRefCatMatchWholeSkyPlotKeysWithBand"):
keysWithBand = parameters.objectTableCoreRefCatMatchWholeSkyPlotKeysWithBand

for keyWithBand in keysWithBand:
atoolName = keyWithBand.replace("_{band}", "")
setattr(config.atools, atoolName, WholeSkyPlotTool)
atool = getattr(config.atools, atoolName)
setattr(atool, "metric", keyWithBand)
setattr(atool, "publicationStyle", True)
if "sigmaMad" not in atoolName:
setattr(atool, "fixAroundZero", True)

config.addOutputNamePrefix = True
25 changes: 25 additions & 0 deletions config/objectTableCoreRefCatMatchWholeSkyPlot_dp2Pub.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Configuration for instances of lsst.analysis.tools.tasks.WholeSkyAnalysisTask
# that aggregates metrics from objectTableCoreRefCatMatch analysis.

from lsst.analysis.tools.atools import WholeSkyPlotTool

# Keys with `band`
keysWithBand = [
"astromDiffRAScatterPlot_{band}_ref_ra_offset_coadd",
"astromDiffRAScatterPlot_{band}_ref_ra_offset_sigmaMad_coadd",
"astromDiffDecScatterPlot_{band}_ref_dec_offset_coadd",
"astromDiffDecScatterPlot_{band}_ref_dec_offset_sigmaMad_coadd",
]
if hasattr(parameters, "objectTableCoreRefCatMatchWholeSkyPlotKeysWithBand"):
keysWithBand = parameters.objectTableCoreRefCatMatchWholeSkyPlotKeysWithBand

for keyWithBand in keysWithBand:
atoolName = keyWithBand.replace("_{band}", "")
setattr(config.atools, atoolName, WholeSkyPlotTool)
atool = getattr(config.atools, atoolName)
setattr(atool, "metric", keyWithBand)
setattr(atool, "publicationStyle", True)
if "sigmaMad" not in atoolName:
setattr(atool, "fixAroundZero", True)

config.addOutputNamePrefix = True
25 changes: 25 additions & 0 deletions config/objectTableCoreWholeSkyPlot_dp2Pub.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Configuration for instances of lsst.analysis.tools.tasks.WholeSkyAnalysisTask
# that aggregates metrics from objectTableCore analysis.

from lsst.analysis.tools.atools import WholeSkyPlotTool

# Keys with `band`
keysWithBand = [
"psfCModelScatter_{band}_psf_cModel_diff_median",
"shapeSizeFractionalDiff_{band}_highSNStars_median",
"psfSersicScatter_{band}_psf_sersic_diff_median",
"fiveSigmaDepth_{band}_median5sigmaDepth",
]
if hasattr(parameters, "objectTableCoreWholeSkyPlotKeysWithBand"):
keysWithBand = parameters.objectTableCoreWholeSkyPlotKeysWithBand

for keyWithBand in keysWithBand:
atoolName = keyWithBand.replace("_{band}", "")
setattr(config.atools, atoolName, WholeSkyPlotTool)
atool = getattr(config.atools, atoolName)
setattr(atool, "metric", keyWithBand)
setattr(atool, "publicationStyle", True)
if "Depth" not in atoolName:
setattr(atool, "fixAroundZero", True)

config.addOutputNamePrefix = True
39 changes: 39 additions & 0 deletions pipelines/DP2Summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
description: |
Tier1 plots and metrics to assess the data quality across the whole sky
tasks:
makeMetricTableObjectTableCore:
class: lsst.analysis.tools.tasks.MakeMetricTableTask
config:
connections.metricBundleName: "object_metrics"
connections.outputTableName: "object_metrics_table"
objectTableCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "object_metrics_table"
file: $ANALYSIS_TOOLS_DIR/config/objectTableCoreWholeSkyPlot_dp2Pub.py
makeMetricTableObjectTableCoreRefCatMatchPhotom:
class: lsst.analysis.tools.tasks.MakeMetricTableTask
config:
connections.metricBundleName: "object_ref_match_photom_metrics"
connections.outputTableName: "object_ref_match_photom_metrics_table"
objectTableCoreRefCatMatchPhotomWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "object_ref_match_photom_metrics_table"
connections.outputName: "objectTableCoreRefCatMatchPhotom_wholeSky"
file: $ANALYSIS_TOOLS_DIR/config/objectTableCoreRefCatMatchPhotomWholeSkyPlot_dp2Pub.py
python: |
from lsst.analysis.tools.atools import *
makeMetricTableObjectTableCoreRefCatMatch:
class: lsst.analysis.tools.tasks.MakeMetricTableTask
config:
connections.metricBundleName: "object_ref_match_astrom_metrics"
connections.outputTableName: "object_ref_match_astrom_metrics_table"
objectTableCoreRefCatMatchWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "object_ref_match_astrom_metrics_table"
connections.outputName: "objectTableCoreRefCatMatchAstrom_wholeSky"
file: $ANALYSIS_TOOLS_DIR/config/objectTableCoreRefCatMatchWholeSkyPlot_dp2Pub.py
python: |
from lsst.analysis.tools.atools import *
3 changes: 3 additions & 0 deletions pipelines/coaddQualityCore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tasks:
atools.skyObjectSky: SkyObjectSkyPlot
atools.skyObjectFlux: SkyObjectHistPlot
atools.psfCModelScatter: PsfCModelScatterPlot # photometry.py
atools.psfSersicScatter: PsfSersicScatterPlot # photometry.py
atools.shapeSizeDetRadiusVsCmodelMag: SizeMagnitudePlot
atools.shapeSizeDetRadiusVsCmodelMag.size_type: "determinantRadius"
atools.shapeSizeDetRadiusVsCmodelMag.mag_x: "cmodel_err"
Expand Down Expand Up @@ -95,6 +96,8 @@ tasks:
atools.sersicIndexVsSersicMag.applyContext: CoaddContext
atools.coaddInputCount: CoaddInputCount
atools.coaddPatchCount: CountPatches # counts.py
atools.fiveSigmaDepth: FiveSigmaPointSourceDepthMetric # limitingMagnitudeMetric
atools.fiveSigmaDepth.applyContext: CoaddContext
python: |
from lsst.analysis.tools.atools import *
from lsst.analysis.tools.contexts import *
Expand Down
Loading
Loading