Skip to content

Commit

Permalink
Add specification for ForcedSource Table
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsayyad committed Sep 9, 2021
1 parent e5ac33f commit 5ada575
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/imsim/transformForcedSourceTable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import os

# Use the environment variable to prevent hardcoding of paths
# into quantum graphs.
config.functorFile = os.path.join('$OBS_LSST_DIR', 'policy', 'imsim', 'ForcedSource.yaml')
3 changes: 3 additions & 0 deletions pipelines/imsim/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ subsets:
- getTemplate
- imageDifference
- transformDiaSourceCat
- writeForcedSourceTable
description: >
Tasks that can be run together, but only after the 'step1', 'step2'
and 'step3' subsets
Expand All @@ -112,6 +113,7 @@ subsets:
subset:
- drpAssociation
- drpDiaCalculation
- transformForcedSourceTable
description: >
Tasks that can be run together, but only after the 'step1', 'step2',
'step3', and 'step4' subsets
Expand All @@ -123,6 +125,7 @@ subsets:
step6:
subset:
- consolidateDiaSourceTable
- consolidateForcedSourceTable
description: >
Tasks that can be run together, but only after the 'step1', 'step2',
'step3', and 'step4' subsets
Expand Down
84 changes: 84 additions & 0 deletions policy/imsim/ForcedSource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
funcs:
objectId:
functor: Column
args: objectId
dataset: calexp
parentObjectId:
functor: Column
args: parent
dataset: calexp
coord_ra:
# reference position for ObjectId. Required by databse. Not in DPDD
functor: CoordColumn
dataset: calexp
args: coord_ra
coord_dec:
# reference position for ObjectId. Required by databse. Not in DPDD
functor: CoordColumn
dataset: calexp
args: coord_dec
ccdVisitId:
functor: Column
dataset: calexp
args: ccdVisitId
band:
functor: Column
dataset: calexp
args: band
PsFlux:
functor: LocalNanojansky
dataset: calexp
args:
- base_PsfFlux_instFlux
- base_PsfFlux_instFluxErr
- base_LocalPhotoCalib
- base_LocalPhotoCalibErr
PsFluxErr:
functor: LocalNanojanskyErr
dataset: calexp
args:
- base_PsfFlux_instFlux
- base_PsfFlux_instFluxErr
- base_LocalPhotoCalib
- base_LocalPhotoCalibErr
PsFluxFlag:
functor: Column
dataset: calexp
args: base_PsfFlux_flag
psFluxApCorr:
functor: Column
dataset: calexp
args: base_PsfFlux_apCorr
psFluxApCorrErr:
functor: Column
dataset: calexp
args: base_PsfFlux_apCorrErr
PsDiffFlux:
functor: LocalNanojansky
dataset: diff
args:
- base_PsfFlux_instFlux
- base_PsfFlux_instFluxErr
- base_LocalPhotoCalib
- base_LocalPhotoCalibErr
PsDiffFluxErr:
functor: LocalNanojanskyErr
dataset: diff
args:
- base_PsfFlux_instFlux
- base_PsfFlux_instFluxErr
- base_LocalPhotoCalib
- base_LocalPhotoCalibErr
PsDiffFluxFlag:
functor: Column
dataset: diff
args: base_PsfFlux_flag
psDiffFluxApCorr:
functor: Column
dataset: diff
args: base_PsfFlux_apCorr
psDiffFluxApCorrErr:
functor: Column
dataset: diff
args: base_PsfFlux_apCorrErr
# PixelFlags exist in the forced_src and the forced_diff dataset, but they're all False

0 comments on commit 5ada575

Please sign in to comment.