Skip to content

Commit 4b3922b

Browse files
committed
Add some diffim metrics
Also tidy up some formatting and add a friendly "how to" header.
1 parent 005f492 commit 4b3922b

File tree

1 file changed

+124
-3
lines changed

1 file changed

+124
-3
lines changed

metricInfo/metricInformation.yaml

Lines changed: 124 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# How to add a metric
2+
#
3+
# myMetricName:
4+
# lowThreshold: # value the metric shouldn't usually go below
5+
# highThreshold: # value the metric shouldn't usually go above
6+
# divergent: # set true if you would use a divergent color map, i.e., above/below zero, to plot the metric
7+
# plot: # if relevant, butler-gettable plot or visualization to click through to (optional)
8+
# debugGroup: # label or tag within this file
9+
# atoolsFile: # analysis_tools/atools file where metric is defined for traceability
10+
# description: |
11+
# What the metric measures and why
12+
#
113
# PSF Metrics
214
# -----------
315
# E1 Metrics
@@ -111,6 +123,8 @@ e2Diff_g_lowSNStars_count:
111123
atoolsFile: shapes.py
112124
description: |
113125
The number of low SN stars used to calculate statistics in the g band
126+
127+
# Shape Size Metrics
114128
shapeSizeFractionalDiff_g_highSNStars_median:
115129
lowThreshold: -0.01
116130
highThreshold: 0.01
@@ -120,8 +134,6 @@ shapeSizeFractionalDiff_g_highSNStars_median:
120134
atoolFile: shapes.py
121135
description: |
122136
The median of the high SN stars for the difference between the e1 calculated from the moments and the psf moments
123-
124-
# Shape Size Metrics
125137
shapeSizeFractionalDiff_g_highSNStars_sigmaMad:
126138
lowThreshold: 0.0
127139
highThreshold: 0.02
@@ -182,7 +194,7 @@ yPerpPSF_yPerp_psfFlux_median:
182194
yPerpPSF_yPerp_psfFlux_sigmaMAD:
183195
lowThreshold: 10
184196
highThreshold: 25
185-
divergent: False
197+
divergent: false
186198
plot: objectTableCore_yPerpPSF_ColorColorFitPlot
187199
debugGroup: stellarLocus
188200
atoolsFile: stellarLocus.py
@@ -224,3 +236,112 @@ xPerpPSF_xPerp_psfFlux_sigmaMAD:
224236
atoolsFile: stellarLocus.py
225237
description: |
226238
Sigma MAD of the x perp stellar locus width for psf fluxes
239+
240+
# Difference Imaging Metrics
241+
# --------------------------
242+
# subtractImageTask metrics
243+
sciencePsfSize:
244+
lowThreshold: 0.4
245+
highThreshold: 3.0
246+
divergent: false
247+
plot:
248+
debugGroup: diffim
249+
atoolsFile: diffimMetadataMetrics.py
250+
description: |
251+
The FWHM of the science image PSF computed at its average position
252+
templatePsfSize:
253+
lowThreshold: 0.4
254+
highThreshold: 2.0
255+
divergent: false
256+
plot:
257+
debugGroup: diffim
258+
atoolsFile: diffimMetadataMetrics.py
259+
description: |
260+
The FWHM of the template image PSF computed at its average position
261+
templateCoveragePercent:
262+
lowThreshold: 0.8
263+
highThreshold: 1.0 # full coverage is ideal
264+
divergent: false
265+
plot:
266+
debugGroup: diffim
267+
atoolsFile: diffimMetadataMetrics.py
268+
description: |
269+
The fraction of the diffim that is covered by a template image
270+
diffimLimitingMagnitude:
271+
lowThreshold: 10.0
272+
highThreshold: 30.0
273+
divergent: false
274+
plot:
275+
debugGroup: diffim
276+
atoolsFile: diffimMetadataMetrics.py
277+
description: |
278+
The limiting magnitude of the difference image based on photometric zeropoint and average PSF FWHM
279+
scaleTemplateVarianceFactor:
280+
lowThreshold: 0.9
281+
highThreshold: 1.1
282+
divergent: false
283+
plot:
284+
debugGroup: diffim
285+
atoolsFile: diffimMetadataMetrics.py
286+
description: |
287+
The factor by which the template image variance plane was scaled
288+
scaleScienceVarianceFactor:
289+
lowThreshold: 0.9
290+
highThreshold: 1.1
291+
divergent: false
292+
plot:
293+
debugGroup: diffim
294+
atoolsFile: diffimMetadataMetrics.py
295+
description: |
296+
The factor by which the science image variance plane was scaled
297+
298+
# detectAndMeasureTask metrics
299+
detected_mask_fraction:
300+
lowThreshold: 0.01
301+
highThreshold: 0.2 # higher is OK for crowded fields
302+
divergent: false
303+
plot:
304+
debugGroup: diffim
305+
atoolsFile: diffimMetadataMetrics.py
306+
description: |
307+
The fraction of the diffim that is masked DETECTED
308+
detected_negative_mask_fraction:
309+
lowThreshold: 0.01
310+
highThreshold: 0.2 # higher is OK for crowded fields
311+
divergent: false
312+
plot:
313+
debugGroup: diffim
314+
atoolsFile: diffimMetadataMetrics.py
315+
description: |
316+
The fraction of the diffim that is masked DETECTED_NEGATIVE
317+
streak_mask_fraction:
318+
lowThreshold: 0 # it is OK if it is 0
319+
highThreshold: 0.2
320+
divergent: false
321+
plot:
322+
debugGroup: diffim
323+
atoolsFile: diffimMetadataMetrics.py
324+
description: |
325+
The fraction of the diffim that is masked STREAK
326+
327+
# general diaSource metrics
328+
ratioGoodToAllDiaSources:
329+
lowThreshold: 0.2
330+
highThreshold: 0.8
331+
divergent: false
332+
plot:
333+
debugGroup: diffim
334+
atoolsFile: diaSourceMetrics.py
335+
description: |
336+
The ratio of numGoodDiaSources/numAllDiaSources, where numGoodDiaSources is the number of diaSources
337+
that do not have known bad/quality flags set true
338+
diaSourcesGoodVsBadRatio:
339+
lowThreshold: 0.2
340+
highThreshold: 0.8
341+
divergent: false
342+
plot:
343+
debugGroup: diffim
344+
atoolsFile: diaSourceMetrics.py
345+
description: |
346+
The ratio of the number of diaSources with high reliability (>0.9)
347+
over the number of diaSources with low reliability (<0.1)

0 commit comments

Comments
 (0)