-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |