diff --git a/pipelines/HSC/DRP-ci_hsc-post-injected.yaml b/pipelines/HSC/DRP-ci_hsc-post-injected.yaml new file mode 100644 index 00000000..09d25c89 --- /dev/null +++ b/pipelines/HSC/DRP-ci_hsc-post-injected.yaml @@ -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, + )