Skip to content

Commit 2672c8b

Browse files
authored
DOC: Complete API for firstframe (#10411)
1 parent 167ed25 commit 2672c8b

6 files changed

Lines changed: 32 additions & 9 deletions

File tree

docs/jwst/firstframe/api_ref.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
===
2+
API
3+
===
4+
5+
Public Step API
6+
===============
7+
8+
.. automodapi:: jwst.firstframe.firstframe_step
9+
:no-inheritance-diagram:
10+
11+
Complete Developer API
12+
======================
13+
14+
.. automodapi:: jwst.firstframe.firstframe_sub
15+
:no-inheritance-diagram:

docs/jwst/firstframe/arguments.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Step Arguments
44
The ``firstframe`` step has the following step-specific arguments.
55

66
``--bright_use_group1`` (boolean, default=True)
7-
If True, setting the group 1 groupdq to DO_NOT_USE will not be done
7+
If True, setting the group 1 ``groupdq`` to DO_NOT_USE will not be done
88
for pixels that have the saturation flag set for group 3.
99
This will allow a slope to be determined for pixels that saturate in group 3.
1010
This change in flagging will only impact pixels that saturate in group 3, the behavior
1111
for all other pixels will be unchanged.
1212
The ``bright_use_group1`` flag can be set for all data, only data/pixels that saturate
1313
in group 3 will see a difference in behavior. These pixels will be marked with
14-
the FLUX_ESTIMATED DQ flag in the pixeldq image.
14+
the FLUX_ESTIMATED DQ flag in the ``pixeldq`` image.

docs/jwst/firstframe/description.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
Description
22
===========
33

4-
:Class: `jwst.firstframe.FirstFrameStep`
4+
:Class: `jwst.firstframe.firstframe_step.FirstFrameStep`
55
:Alias: firstframe
66

7-
The ``firstframe`` step has been deprecated and will be removed
8-
in a future release. Flagging the first group has been added to the RSCD step.
7+
.. warning::
8+
The ``firstframe`` step has been deprecated and will be removed
9+
in a future release. Flagging the first group has been added to
10+
the :ref:`RSCD step <rscd_step>`.
911

1012
The MIRI first frame correction step flags the first group in every integration
1113
as bad (the "DO_NOT_USE" data quality flag is added to the GROUPDQ array), but

docs/jwst/firstframe/index.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
First Frame Correction
55
======================
66

7+
.. warning::
8+
The ``firstframe`` step has been deprecated and will be removed
9+
in a future release. Flagging the first group has been added to
10+
the :ref:`RSCD step <rscd_step>`.
11+
712
.. toctree::
813
:maxdepth: 2
914

1015
description.rst
1116
arguments.rst
12-
13-
.. automodapi:: jwst.firstframe
17+
api_ref.rst

jwst/firstframe/firstframe_step.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Set data quality flag of first group in MIRI data."""
2+
13
import logging
24
import warnings
35

jwst/firstframe/firstframe_sub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ def do_correction(output, bright_use_group1=False):
2121
2222
Parameters
2323
----------
24-
output : DataModel
24+
output : `~stdatamodels.jwst.datamodels.JwstDataModel`
2525
Science data to be corrected
2626
bright_use_group1 : bool
2727
If True, setting first group data quality flag to DO_NOT_USE will not be
2828
done for pixels that have the saturation flag set for group 3.
2929
3030
Returns
3131
-------
32-
output : DataModel
32+
output : `~stdatamodels.jwst.datamodels.JwstDataModel`
3333
Firstframe-corrected science data
3434
"""
3535
# Save some data params for easy use later

0 commit comments

Comments
 (0)