File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
docs/jwst/clean_flicker_noise Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ the behavior of the processing.
31
31
affected by failed-open MSA shutters. For MIRI imaging, mask
32
32
regions of the detector not used for science.
33
33
34
+ ``--apply_flat_field `` (boolean, default=False)
35
+ If set, images are flat-corrected prior to fitting background
36
+ and noise levels. A full-frame flat field image
37
+ (reference type FLAT) is required. For modes that do not provide
38
+ FLAT files via CRDS, including all NIRSpec modes, a manually
39
+ generated override flat is required to enable this option.
40
+ Use the `override_flat ` parameter to provide an alternate flat image
41
+ as needed.
42
+
34
43
``--n_sigma `` (float, default=2.0)
35
44
The sigma-clipping threshold to use when searching for outliers
36
45
and illuminated pixels to be excluded from use in the background
Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ information on all referenced parameters.
184
184
This will mask out regions of the detector under the metering
185
185
structure.
186
186
187
+ #. If `apply_flat_field ` is set and a flat file is available, divide the
188
+ draft rate data by the flat image.
189
+
187
190
#. Iteratively sigma clip the data to get a center value (mean or median)
188
191
and sigma value (standard deviation).
189
192
@@ -200,6 +203,9 @@ information on all referenced parameters.
200
203
201
204
#. Make a diff image (current group – previous group) to correct.
202
205
206
+ #. If `apply_flat_field ` is set and a flat file is available, divide the
207
+ diff image by the flat image.
208
+
203
209
#. Fit and remove a background level, using the scene mask to identify
204
210
background pixels.
205
211
@@ -231,7 +237,8 @@ information on all referenced parameters.
231
237
detector channel.
232
238
233
239
#. Restore the background level to the cleaned, background-subtracted
234
- diff image.
240
+ diff image. Also restore the flat structure if needed by multiplying the
241
+ cleaned diff by the flat image.
235
242
236
243
#. Add the cleaned diff back to a cleaned version of the previous
237
244
group image.
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def process(self, input):
83
83
(reference type FLAT) is required. For modes that do not provide
84
84
FLAT files via CRDS, including all NIRSpec modes, a manually
85
85
generated override flat is required to enable this option.
86
- Use the `override_flat` parameter to provide alternate flat images
86
+ Use the `override_flat` parameter to provide an alternate flat image
87
87
as needed.
88
88
89
89
n_sigma : float, optional
You can’t perform that action at this time.
0 commit comments