Skip to content

Commit

Permalink
Add DRP-ci_hsc-post-injected.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Sep 23, 2024
1 parent 726bec0 commit 7b1ed0f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pipelines/HSC/DRP-ci_hsc-post-injected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
description: Match tract-level injected_deepCoadd_catalog datasets to injected_objectTable_tract datasets.
instrument: lsst.obs.subaru.HyperSuprimeCam
imports:
- location: $SOURCE_INJECTION_DIR/pipelines/match_injected_tract_catalog.yaml
- location: $ANALYSIS_TOOLS_DIR/pipelines/coaddDiffMatchedInjectedCore.yaml
tasks:
compare_object_to_injected:
class: lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogTask
config:
connections.name_input_cat_ref: injected_deepCoadd_catalog_tract
connections.name_input_cat_target: injected_objectTable_tract

# TODO: Remove as part of DM-44139
columns_ref_mag_to_nJy: {r_mag: "r_flux", i_mag: "i_flux"}
columns_ref_copy: [
"injected_id", "source_type",
"r_mag", "i_mag",
"injection_flag", "injected_isPatchInner",
]
columns_target_coord_err: ["coord_raErr", "coord_decErr"]
columns_target_copy: [
"r_psfFlux", "i_psfFlux",
"r_psfFluxErr", "i_psfFluxErr",
"r_psfFlux_flag", "i_psfFlux_flag",
"patch", "detect_isDeblendedSource", "detect_isPatchInner", "detect_isPrimary", "merge_peak_sky",
"refExtendedness", "refSizeExtendedness",
]
diff_matched_analysis:
class: lsst.analysis.tools.tasks.DiffMatchedAnalysisTask
config:
connections.inputName: matched_injected_deepCoadd_catalog_tract_injected_objectTable_tract
connections.outputName: matched_injected_deepCoadd_catalog_tract_injected_objectTable_tract

bands: ["r", "i"]
python: |
from lsst.analysis.tools.atools.diffMatched import reconfigure_diff_matched_defaults
reconfigure_diff_matched_defaults(
config=config,
context="injection",
key_flux_meas="psf",
bands_color = {"r": "i"},
use_any=False,
use_galaxies=False,
)

0 comments on commit 7b1ed0f

Please sign in to comment.