Skip to content

Commit 5c86e9b

Browse files
JP-3887: Add support for time dependent photometry corrections (#9736)
2 parents edaf441 + c506bfc commit 5c86e9b

File tree

12 files changed

+890
-315
lines changed

12 files changed

+890
-315
lines changed

changes/9736.photom.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add support for time dependent photometry corrections for all instruments and modes.
2+
Corrections may have linear, exponential, or power law form, or any combination of these.

docs/jwst/photom/Model_summary.png

31.3 KB
Loading

docs/jwst/photom/arguments.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ The ``photom`` step has the following optional arguments.
1111
Force the processing to use the given source type (POINT, EXTENDED),
1212
instead of using the information contained in the input data.
1313

14-
``--mrs_time_correction`` (boolean, default=True)
15-
A flag to indicate whether to turn on the time and wavelength dependent
16-
correction for MIRI MRS data.
14+
``--apply_time_correction`` (boolean, default=True)
15+
A flag to indicate whether to apply time-dependent corrections
16+
if available.

docs/jwst/photom/main.rst

Lines changed: 58 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@ The step also computes the equivalent conversion factor to units of
7676
microJy/square-arcsecond (or microjanskys) and stores it in the header
7777
keyword PHOTUJA2.
7878

79-
MIRI Imaging
80-
^^^^^^^^^^^^
81-
For MIRI imaging mode, the reference file can optionally contain a table of
82-
coefficients that are used to apply time-dependent corrections to the scalar
83-
conversion factor. If the time-dependent coefficients are present in the
84-
reference file, the photom step will apply the correction based on the
85-
observation date of the exposure being processed.
86-
8779
NIRSpec Fixed Slit Primary Slit
8880
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8981
The primary slit in a NIRSpec fixed slit exposure receives special handling.
@@ -164,21 +156,73 @@ from countrate to surface brightness.
164156
Variance arrays are multiplied by the square of the conversion factors.
165157

166158
MIRI MRS data have a time-variable photometric response that is significant at
167-
long wavelengths. A correction has been derived from observations of calibration standard stars.
168-
The form of the correction uses an exponential function that asymptotically approaches a
169-
constant value in each wavelength band. A plot of the count rate loss in each MRS
159+
long wavelengths. A correction has been derived from regular observations of internal
160+
calibration lamps augmented by repeated observations of spectrophotometric standard stars.
161+
The correction uses a power law function of time with coefficients optimized for each
162+
of the twelve spectral bands. A plot of the count rate loss in each MRS
170163
band, as a function of time, is shown in Figure 1.
171164

172165
.. figure:: Model_summary.png
173166
:scale: 50%
174167
:align: center
175168

176169
Figure 1:
177-
Time-dependent decrease in the observed MRS count rate as measured from internal flat-field exposures.
178-
Solid points illustrate measurements at the central wavelength of each of the 12 MRS bands;
179-
curves represent the best fit models used for correction in the pipeline.
170+
Time-dependent decrease in the observed MRS count rate as measured from internal
171+
calibration lamp exposures. Points illustrate measurements at the central wavelength
172+
of each of the 12 MRS bands; curves represent the best fit models used for correction
173+
in the pipeline. See
174+
`JDox <https://jwst-docs.stsci.edu/jwst-calibration-status/miri-calibration-status/miri-mrs-calibration-status>`__
175+
for an updated version of this figure.
180176

181177
The MRS photom reference file contains a table of correction coefficients
182178
for each band in which a correction has been determined. If the time-dependent
183179
coefficients are present in the reference file for a given band, the photom step will
184180
apply the correction to the exposure being processed.
181+
182+
Time-Dependent Corrections
183+
--------------------------
184+
185+
For any mode other than MIRI MRS (described above), the reference file can
186+
optionally contain tables of coefficients that are used to apply time-dependent
187+
corrections to the scalar conversion factor, based on the observation date of
188+
the exposure being processed. Each table present describes a different functional
189+
form for the time-dependent sensitivity loss: exponential, linear, or
190+
power law. If multiple tables are present, the corrections are multiplied together
191+
before being applied. If no tables are present, no time correction is applied.
192+
These coefficient tables also contain the descriptive exposure parameters present in
193+
the photometric data table (e.g. filter, pupil, grating), and the rows present
194+
must match the length and order of the photometric table.
195+
196+
The correction factor described in all cases is defined as the fractional amount
197+
of light recorded now divided by the light recorded on the zero-day MJD (t0).
198+
The scalar conversion factor is divided by the correction factor to account for
199+
the sensitivity loss.
200+
201+
For a linear correction, the correction factor (*corr*) is defined as:
202+
203+
.. math::
204+
corr = 1 - lossperyear * (t-t0) / 365
205+
206+
where *lossperyear* (fractional loss of throughput per year, e.g., 0.1 is 10% in 1 year)
207+
and *t0* (reference day in MJD) are stored as coefficients in the TIMECOEFF_LINEAR
208+
extension of the PHOTOM reference file.
209+
210+
For an exponential correction:
211+
212+
.. math::
213+
corr = amplitude * exp(-(t-t0)/tau) + const
214+
215+
where *amplitude*, *t0* (reference day in MJD), *tau* (e-folding time constant), and
216+
*const* (long-term asymptote) are stored as coefficients in the TIMECOEFF_EXPONENTIAL
217+
extension.
218+
219+
For a power law correction:
220+
221+
.. math::
222+
norm = (365 + tsoft)^{alpha} / year1value
223+
224+
corr = (t - t0 + tsoft)^{alpha} / norm
225+
226+
where *year1value* (relative throughput one year after t0), *t0* (reference day in MJD),
227+
*tsoft* (softening parameter for the initial decline), and *alpha* (loss coefficient)
228+
are stored as coefficients in the TIMECOEFF_POWERLAW extension.

jwst/photom/miri_imager.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

jwst/photom/miri_mrs.py

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)