Skip to content

Commit

Permalink
Add matchObjectToTruth to DC2 pipelines.
Browse files Browse the repository at this point in the history
This was added to obs_lsst on DM-32895, while the move to drp_pipe
was in progress.
  • Loading branch information
TallJimbo committed Dec 21, 2021
1 parent 097c615 commit 922acca
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ingredients/LSST/DC2/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,36 @@ tasks:
match.refObjLoader.ref_dataset_name: 'cal_ref_cat_2_2'
python: >
config.match.refObjLoader.filterMap = {band: 'lsst_%s_smeared' % (band) for band in 'ugrizy'};
matchObjectToTruth:
class: lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask
config:
python: |
# Target settings are likely common to all object tables
from lsst.pipe.tasks.match_tract_catalog_probabilistic import MatchTractCatalogProbabilisticTask
config.match_tract_catalog.retarget(MatchTractCatalogProbabilisticTask)
config.match_tract_catalog.columns_ref_flux = [
'flux_u', 'flux_g', 'flux_r',
'flux_i', 'flux_z', 'flux_y',
]
config.match_tract_catalog.columns_ref_meas = [
'ra', 'dec',
'flux_u', 'flux_g', 'flux_r',
'flux_i', 'flux_z', 'flux_y',
]
config.match_tract_catalog.columns_target_meas = [
'x', 'y',
'u_cModelFlux', 'g_cModelFlux', 'r_cModelFlux',
'i_cModelFlux', 'z_cModelFlux', 'y_cModelFlux',
]
config.match_tract_catalog.columns_target_err = [
'xErr', 'yErr',
'u_cModelFluxErr', 'g_cModelFluxErr', 'r_cModelFluxErr',
'i_cModelFluxErr', 'z_cModelFluxErr', 'y_cModelFluxErr',
]
config.match_tract_catalog.coords_ref_to_convert = {'ra': 'x', 'dec': 'y'}
# Might need adjusting for different survey depths
config.match_tract_catalog.mag_faintest_ref = 27.0;
subsets:
step1:
subset:
Expand Down Expand Up @@ -105,6 +135,7 @@ subsets:
- psfPhotRepStar2
- psfPhotRepStar3
- psfPhotRepStar4
- matchObjectToTruth
description: >
Tasks that can be run together, but only after the 'step1' and 'step2'
subsets.
Expand Down

0 comments on commit 922acca

Please sign in to comment.