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 17adced commit f9ee99f
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/transformForcedSourceTable.py
@@ -0,0 +1,5 @@
import os

# Use the environment variable to prevent hardcoding of paths
# into quantum graphs.
config.functorFile = os.path.join('$OBS_SUBARU_DIR', 'policy', 'ForcedSource.yaml')
84 changes: 84 additions & 0 deletions policy/ForcedSource.yaml
@@ -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 f9ee99f

Please sign in to comment.