Skip to content

Commit

Permalink
Merge branch 'tickets/DM-45087'
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsayyad committed Sep 5, 2024
2 parents 5e8f51b + 5b6edaf commit 4f72e6c
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 151 deletions.
4 changes: 2 additions & 2 deletions bps/clustering/DRP-recalibrated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ cluster:
pipetasks: assembleCoadd,inject_coadd,templateGen,detection
dimensions: tract,patch,band

sourceTable:
pipetasks: writeRecalibratedSourceTable,transformSourceTable
finalizeSourceTable:
pipetasks: finalizeCharacterization,updateVisitSummary,writeRecalibratedSourceTable,transformSourceTable,consolidateSourceTable
dimensions: visit
equalDimensions: visit:exposure

Expand Down
2 changes: 0 additions & 2 deletions bps/resources/HSC/DRP-RC2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ pipetask:
requestMemory: 10000
detection:
requestMemory: 16384

# step8 tasks - sasquatch
analyzeObjectTableCore:
requestMemory: 16000
analyzeMatchedVisitCore:
Expand Down
33 changes: 13 additions & 20 deletions pipelines/HSC/DRP-Prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ subsets:
- calibrate
- writePreSourceTable
- transformPreSourceTable
- analyzeAmpOffsetMetadata
description: |
Per-detector tasks that can be run together to start the DRP pipeline.
Expand Down Expand Up @@ -99,6 +100,7 @@ subsets:
and CcdVisits.
step3:
subset:
# per-patch tasks
- makeDirectWarp
- makePsfMatchedWarp
- selectDeepCoaddVisits
Expand All @@ -111,8 +113,18 @@ subsets:
- forcedPhotCoadd
- writeObjectTable
- transformObjectTable
# per tract tasks
- consolidateObjectTable
- healSparsePropertyMaps
- analyzeObjectTableCore
- catalogMatchTract
- refCatObjectTract
- validateObjectTableCore
- analyzeMatchedVisitCore
- photometricCatalogMatch
- photometricRefCatObjectTract
- plotPropertyMapTract

description: |
tract-level tasks. Allowed data query constraints: tract
Expand All @@ -134,30 +146,11 @@ subsets:
step7:
subset:
- consolidateHealSparsePropertyMaps
- analyzeObjectTableSurveyCore
description: |
Tasks that should be run as the final step that require global inputs,
and can be run after the 'step3' subset.
This step has global aggregation tasks to run over all visits, detectors,
tracts, etc. This step should be run only with the instrument constraint
in the data query.
step8:
subset:
- analyzeAmpOffsetMetadata
- analyzeObjectTableCore
- analyzeObjectTableSurveyCore
- catalogMatchTract
- refCatObjectTract
- validateObjectTableCore
- analyzeMatchedVisitCore
- photometricCatalogMatch
- photometricRefCatObjectTract
- plotPropertyMapTract
description: |
Core (most important), coadd-level plots/metrics from analysis_tools.
Must be run after 'step3' (writeObjectTable). Cannot be run with any
dataquery constraints if analyzeObjectTableSurveyCore is included.
Can be run together with analysis_drp subsets, e.g. pipeline.yaml
(hash/pound sign)step8,analysis_coadd_plots,imsim_analysis_coadd_plots
85 changes: 28 additions & 57 deletions pipelines/HSC/DRP-RC2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,34 +72,15 @@ tasks:
matchedVisitCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "matchedVisitCore_metricsTable"
connections.outputName: "matchedVisitCore_wholeSky"
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["g", "r", "i", "z", "y"]
atools.wholeSkyMetric.plotKeys: []
atools.wholeSkyMetric.keysWithBand: parameters.matchedVisitCoreKeysWithBand
python: |
from lsst.analysis.tools.atools import *
objectTableCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["g", "r", "i", "z", "y"]
atools.wholeSkyMetric.plotKeys: parameters.objectTableCorePlotKeys
atools.wholeSkyMetric.keysWithBand: parameters.objectTableCoreKeysWithBand
python: |
from lsst.analysis.tools.atools import *
objectTableCoreRefCatMatchWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "objectTable_tract_gaia_dr3_20230707_match_metricsTable"
connections.outputName: "objectTableCoreRefCatMatch_wholeSky"
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["g", "r", "i", "z", "y"]
atools.wholeSkyMetric.plotKeys: []
atools.wholeSkyMetric.keysWithBand: parameters.objectTableCoreRefCatMatchKeysWithBand
python: |
from lsst.analysis.tools.atools import *
subsets:
step1:
subset:
Expand All @@ -108,6 +89,7 @@ subsets:
- calibrate
- writePreSourceTable
- transformPreSourceTable
- analyzeAmpOffsetMetadata
description: |
Per-detector tasks that can be run together to start the DRP pipeline.
Expand Down Expand Up @@ -156,11 +138,17 @@ subsets:
- fgcmFitCycle
- fgcmOutputProducts
- updateVisitSummary
- writeRecalibratedSourceTable
- transformSourceTable
- consolidateSourceTable
- catalogMatchVisit
- astrometricRefCatSourceVisit
- makeCcdVisitTable
- makeVisitTable
description: |
Per-visit and per-collection tasks that can be run together after step2b
with no data query constraints other than instrument.
Per-detector, Per-visit, and per-collection tasks that can be run
together after step2b with no data query constraints other than
instrument.
FGCM requires full visits and 'tract' and 'patch' constraints will
always select partial visits that overlap that region.
Expand All @@ -172,6 +160,7 @@ subsets:
wrong (partial-visit) inputs to its 'background' connection.
step3:
subset:
# per-patch Tasks
- makeDirectWarp
- makePsfMatchedWarp
- selectDeepCoaddVisits
Expand All @@ -184,10 +173,20 @@ subsets:
- forcedPhotCoadd
- transformObjectTable
- writeObjectTable
- consolidateObjectTable
- healSparsePropertyMaps
- selectGoodSeeingVisits
- templateGen
# per-tract Tasks
- consolidateObjectTable
- analyzeMatchedVisitCore
- analyzeMatchedPreVisitCore
- analyzeObjectTableCore
- catalogMatchTract
- photometricCatalogMatch
- photometricRefCatObjectTract
- plotPropertyMapTract
- refCatObjectTract
- validateObjectTableCore
description: |
Tasks that can be run together, but only after the 'step1' and 'step2'
subsets.
Expand All @@ -207,8 +206,6 @@ subsets:
- detectAndMeasureDiaSources
- transformDiaSourceCat
- writeForcedSourceTable
- writeRecalibratedSourceTable
- transformSourceTable
description: |
Tasks that can be run together, but only after the 'step1', 'step2' and
'step3' subsets
Expand Down Expand Up @@ -241,9 +238,6 @@ subsets:
step6:
subset:
- consolidateDiaSourceTable
- consolidateSourceTable
- catalogMatchVisit
- astrometricRefCatSourceVisit
- sourceObjectMatch
description: |
Tasks that can be run together, but only after the 'step1', 'step2',
Expand All @@ -262,40 +256,17 @@ subsets:
step7:
subset:
- consolidateHealSparsePropertyMaps
- matchedVisitCoreWholeSkyPlot
- objectTableCoreWholeSkyPlot
- makeMetricTableMatchedVisitCore
- makeMetricTableObjectTableCore
- makeMetricTableObjectTableCoreRefCatMatch
- objectTableCoreRefCatMatchWholeSkyPlot
- analyzeObjectTableSurveyCore
description: |
Tasks that should be run as the final step that require global inputs,
and can be run after the 'step3' subset.
This step has global aggregation tasks to run over all visits, detectors,
tracts, etc. This step should be run only with the instrument constraint
in the data query.
step8:
subset:
- analyzeAmpOffsetMetadata
- analyzeMatchedVisitCore
- analyzeMatchedPreVisitCore
- analyzeObjectTableCore
- analyzeObjectTableSurveyCore
- catalogMatchTract
- makeMetricTableMatchedVisitCore
- makeMetricTableObjectTableCore
- makeMetricTableObjectTableCoreRefCatMatch
- matchedVisitCoreWholeSkyPlot
- objectTableCoreWholeSkyPlot
- objectTableCoreRefCatMatchWholeSkyPlot
- photometricCatalogMatch
- photometricRefCatObjectTract
- plotPropertyMapTract
- refCatObjectTract
- validateObjectTableCore
description: |
Core (most important), coadd-level plots/metrics from analysis_tools.
Must be run after 'step3' (writeObjectTable). If the task
analyzeObjectTableSurveyCore is included, should be run with either no
data query constraints or with a tract constraint that *exactly* matches
that from 'step3'. Running with only a subset of tracts from step3 will
result in incomplete survey-level outputs.
Can be run together with other analysis_drp/analysis_tools subsets, e.g.
'pipeline.yaml#step8,analysis_coadd_plots,imsim_analysis_coadd_plots'
19 changes: 0 additions & 19 deletions pipelines/HSC/DRP-RC2_subset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ tasks:
matchedVisitCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "matchedVisitCore_metricsTable"
connections.outputName: "matchedVisitCore_wholeSky"
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["g", "r", "i", "z", "y"]
atools.wholeSkyMetric.plotKeys: []
atools.wholeSkyMetric.keysWithBand: parameters.matchedVisitCoreKeysWithBand
python: |
from lsst.analysis.tools.atools import *
modelPhotRepGal1:
class: lsst.faro.measurement.TractMatchedMeasurementTask
config:
Expand Down Expand Up @@ -149,23 +142,11 @@ tasks:
objectTableCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["g", "r", "i", "z", "y"]
atools.wholeSkyMetric.plotKeys: parameters.objectTableCorePlotKeys
atools.wholeSkyMetric.keysWithBand: parameters.objectTableCoreKeysWithBand
python: |
from lsst.analysis.tools.atools import *
objectTableCoreRefCatMatchWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "objectTable_tract_gaia_dr3_20230707_match_metricsTable"
connections.outputName: "objectTableCoreRefCatMatch_wholeSky"
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["g", "r", "i", "z", "y"]
atools.wholeSkyMetric.plotKeys: []
atools.wholeSkyMetric.keysWithBand: parameters.objectTableCoreRefCatMatchKeysWithBand
python: |
from lsst.analysis.tools.atools import *
psfPhotRepStar1:
class: lsst.faro.measurement.TractMatchedMeasurementTask
config:
Expand Down
23 changes: 0 additions & 23 deletions pipelines/HSC/DRP-ci_hsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,41 +50,18 @@ tasks:
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
band_order: ['i', 'r']
makeMetricTableObjectTableCoreRefCatMatch:
class: lsst.analysis.tools.tasks.MakeMetricTableTask
config:
connections.metricBundleName: "objectTable_tract_gaia_dr3_20230707_match_astrom_metrics"
python: |
from lsst.analysis.tools.atools import *
matchedVisitCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "matchedVisitCore_metricsTable"
connections.outputName: "matchedVisitCore_wholeSky"
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["r", "i"]
atools.wholeSkyMetric.plotKeys: []
atools.wholeSkyMetric.keysWithBand: parameters.matchedVisitCoreKeysWithBand
python: |
from lsst.analysis.tools.atools import *
objectTableCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["r", "i"]
atools.wholeSkyMetric.plotKeys: parameters.objectTableCorePlotKeys
atools.wholeSkyMetric.keysWithBand: parameters.objectTableCoreKeysWithBand
python: |
from lsst.analysis.tools.atools import *
objectTableCoreRefCatMatchWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
connections.inputName: "objectTable_tract_gaia_dr3_20230707_match_astrom_metricsTable"
connections.outputName: "objectTableCoreRefCatMatch_wholeSky"
atools.wholeSkyMetric: WholeSkyPlotTool
atools.wholeSkyMetric.bands: ["r", "i"]
atools.wholeSkyMetric.plotKeys: []
atools.wholeSkyMetric.keysWithBand: parameters.objectTableCoreRefCatMatchKeysWithBand
python: |
from lsst.analysis.tools.atools import *
Expand Down
Loading

0 comments on commit 4f72e6c

Please sign in to comment.