Skip to content

Commit

Permalink
RCAL-351 Update flat field documentation (#564)
Browse files Browse the repository at this point in the history
RCAL-352 Update flat field documentation
  • Loading branch information
ddavis-stsci authored Aug 29, 2022
1 parent 6f1871a commit e65e8b3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/roman/flatfield/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,27 @@ are divided by the square of the flat-field value for each pixel.
A flat-field variance array, VAR_FLAT, is created from the science exposure
and flat-field reference file data using the following formula:

The flat-field is applied to the science data, in-place, according to:

.. math::
SCI_{science} = SCI_{science} / SCI_{flat}
SCI^{\prime}_{science} = SCI_{science} / SCI_{flat}
The flat-field data is also applied to the VAR_POISSON and VAR_RNOISE
variance arrays,

.. math::
VAR\_POISSON_{science} = VAR\_POISSON_{science} / SCI_{flat}^2
.. math::
VAR\_RNOISE_{science} = VAR\_RNOISE_{science} / SCI_{flat}^2
The variance for the flat-fielded data associated with the science
data is determined using,

.. math::
VAR\_FLAT_{science} = ( SCI_{science}^{2} / SCI_{flat}^{2} ) * ERR_{flat}^{2}
VAR\_FLAT_{science} = ( (SCI^{\prime}_{science})^{2} / SCI_{flat}^{2} ) * ERR_{flat}^{2}
and finally the error that is associated with the science data is given by,

.. math::
ERR_{science} = \sqrt{VAR\_POISSON + VAR\_RNOISE + VAR\_FLAT}
Expand Down

0 comments on commit e65e8b3

Please sign in to comment.