Skip to content

Commit

Permalink
Merge pull request #150 from lsst/tickets/DM-32769
Browse files Browse the repository at this point in the history
DM-32769: Implement streak detection and masking in single frame processing
  • Loading branch information
mrawls committed Oct 26, 2023
2 parents ea96745 + c109e37 commit 0432633
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 0 deletions.
72 changes: 72 additions & 0 deletions yml/hsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on g-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: g_pixelFlags_streak
"@id": "#Object.g_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on g-band.
fits:tunit:
- name: g_pixelFlags_streakCenter
"@id": "#Object.g_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on g-band.
fits:tunit:
- name: g_psfFlux
"@id": "#Object.g_psfFlux"
datatype: double
Expand Down Expand Up @@ -2101,6 +2113,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on i-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: i_pixelFlags_streak
"@id": "#Object.i_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on i-band.
fits:tunit:
- name: i_pixelFlags_streakCenter
"@id": "#Object.i_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on i-band.
fits:tunit:
- name: i_psfFlux
"@id": "#Object.i_psfFlux"
datatype: double
Expand Down Expand Up @@ -3074,6 +3098,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on r-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: r_pixelFlags_streak
"@id": "#Object.r_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on r-band.
fits:tunit:
- name: r_pixelFlags_streakCenter
"@id": "#Object.r_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on r-band.
fits:tunit:
- name: r_psfFlux
"@id": "#Object.r_psfFlux"
datatype: double
Expand Down Expand Up @@ -4047,6 +4083,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on y-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: y_pixelFlags_streak
"@id": "#Object.y_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on y-band.
fits:tunit:
- name: y_pixelFlags_streakCenter
"@id": "#Object.y_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on y-band.
fits:tunit:
- name: y_psfFlux
"@id": "#Object.y_psfFlux"
datatype: double
Expand Down Expand Up @@ -5020,6 +5068,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on z-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: z_pixelFlags_streak
"@id": "#Object.z_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on z-band.
fits:tunit:
- name: z_pixelFlags_streakCenter
"@id": "#Object.z_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on z-band.
fits:tunit:
- name: z_psfFlux
"@id": "#Object.z_psfFlux"
datatype: double
Expand Down Expand Up @@ -5730,6 +5790,18 @@ tables:
description: Sources center is close to suspect pixels
mysql:datatype: BOOLEAN
fits:tunit:
- name: pixelFlags_streak
"@id": "#Source.pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint.
fits:tunit:
- name: pixelFlags_streakCenter
"@id": "#Source.pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center.
fits:tunit:
- name: psfFlux_apCorr
"@id": "#Source.psfFlux_apCorr"
datatype: double
Expand Down
120 changes: 120 additions & 0 deletions yml/imsim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on g-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: g_pixelFlags_streak
"@id": "#Object.g_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on g-band.
fits:tunit:
- name: g_pixelFlags_streakCenter
"@id": "#Object.g_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on g-band.
fits:tunit:
- name: g_psfFlux
"@id": "#Object.g_psfFlux"
datatype: double
Expand Down Expand Up @@ -2116,6 +2128,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on i-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: i_pixelFlags_streak
"@id": "#Object.i_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on i-band.
fits:tunit:
- name: i_pixelFlags_streakCenter
"@id": "#Object.i_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on i-band.
fits:tunit:
- name: i_psfFlux
"@id": "#Object.i_psfFlux"
datatype: double
Expand Down Expand Up @@ -3094,6 +3118,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on r-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: r_pixelFlags_streak
"@id": "#Object.r_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on r-band.
fits:tunit:
- name: r_pixelFlags_streakCenter
"@id": "#Object.r_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on r-band.
fits:tunit:
- name: r_psfFlux
"@id": "#Object.r_psfFlux"
datatype: double
Expand Down Expand Up @@ -4072,6 +4108,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on u-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: u_pixelFlags_streak
"@id": "#Object.u_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on u-band.
fits:tunit:
- name: u_pixelFlags_streakCenter
"@id": "#Object.u_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on u-band.
fits:tunit:
- name: u_psfFlux
"@id": "#Object.u_psfFlux"
datatype: double
Expand Down Expand Up @@ -5050,6 +5098,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on y-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: y_pixelFlags_streak
"@id": "#Object.y_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on y-band.
fits:tunit:
- name: y_pixelFlags_streakCenter
"@id": "#Object.y_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on y-band.
fits:tunit:
- name: y_psfFlux
"@id": "#Object.y_psfFlux"
datatype: double
Expand Down Expand Up @@ -6028,6 +6088,18 @@ tables:
description: Sources center is close to suspect pixels. Measured on z-band.
mysql:datatype: BOOLEAN
fits:tunit:
- name: z_pixelFlags_streak
"@id": "#Object.z_pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint. Measured on z-band.
fits:tunit:
- name: z_pixelFlags_streakCenter
"@id": "#Object.z_pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center. Measured on z-band.
fits:tunit:
- name: z_psfFlux
"@id": "#Object.z_psfFlux"
datatype: double
Expand Down Expand Up @@ -6750,6 +6822,18 @@ tables:
description: Sources center is close to suspect pixels
mysql:datatype: BOOLEAN
fits:tunit:
- name: pixelFlags_streak
"@id": "#Source.pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint.
fits:tunit:
- name: pixelFlags_streakCenter
"@id": "#Source.pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center.
fits:tunit:
- name: psfFlux_apCorr
"@id": "#Source.psfFlux_apCorr"
datatype: double
Expand Down Expand Up @@ -7283,6 +7367,18 @@ tables:
mysql:datatype: BOOLEAN
description: Sources footprint includes suspect pixels
fits:tunit:
- name: pixelFlags_streak
"@id": "#ForcedSource.pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint.
fits:tunit:
- name: pixelFlags_streakCenter
"@id": "#ForcedSource.pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center.
fits:tunit:
- name: psfDiffFluxErr
"@id": "#ForcedSource.psfDiffFluxErr"
datatype: double
Expand Down Expand Up @@ -8317,6 +8413,18 @@ tables:
mysql:datatype: BOOLEAN
description: Sources center is close to suspect pixels.
fits:tunit:
- name: pixelFlags_streak
"@id": "#DiaSource.pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint.
fits:tunit:
- name: pixelFlags_streakCenter
"@id": "#DiaSource.pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center.
fits:tunit:
- name: psfFlux
"@id": "#DiaSource.psfFlux"
datatype: double
Expand Down Expand Up @@ -8672,6 +8780,18 @@ tables:
mysql:datatype: BOOLEAN
description: Sources center is close to suspect pixels
fits:tunit:
- name: pixelFlags_streak
"@id": "#ForcedSourceOnDiaObject.pixelFlags_streak"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source footprint.
fits:tunit:
- name: pixelFlags_streakCenter
"@id": "#ForcedSourceOnDiaObject.pixelFlags_streakCenter"
datatype: boolean
mysql:datatype: BOOLEAN
description: Streak in the Source center.
fits:tunit:
- name: psfDiffFlux
"@id": "#ForcedSourceOnDiaObject.psfDiffFlux"
datatype: double
Expand Down

0 comments on commit 0432633

Please sign in to comment.