-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from PaulHuwe/RCAL-134_MaskDocs
Added RTD for masks.
- Loading branch information
Showing
5 changed files
with
80 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. _mask_reffile: | ||
|
||
MASK Reference File | ||
------------------- | ||
|
||
:reftype: MASK | ||
:Data model: `~romancal.datamodels.MaskModel` | ||
|
||
The MASK reference file contains pixel-by-pixel DQ flag values that indicate | ||
problem conditions. | ||
|
||
.. include:: ../references_general/mask_selection.inc | ||
|
||
.. include:: ../includes/standard_keywords.inc | ||
|
||
Type Specific Keywords for MASK | ||
+++++++++++++++++++++++++++++++ | ||
In addition to the standard reference file keywords listed above, | ||
the following keywords are *required* in MASK reference files, | ||
because they are used as CRDS selectors | ||
(see :ref:`mask_selectors`): | ||
|
||
=============== ====================================== ============== | ||
Attribute Fully qualified path Instruments | ||
=============== ====================================== ============== | ||
detector model.meta.instrument.detector WFI | ||
=============== ====================================== ============== | ||
|
||
|
||
Reference File Format | ||
+++++++++++++++++++++ | ||
MASK reference files are ASDF format, with 2 data objects. | ||
The format and content of the file is as follows: | ||
|
||
======= ============ ============== ============= | ||
Data Object Type Dimensions Data type | ||
======= ============ ============== ============= | ||
dq NDArray 4096 x 4096 uint32 | ||
dq_def Table TBD | ||
======= ============ ============== ============= | ||
|
||
The values in the ``dq`` array give the per-pixel flag conditions that are | ||
to be propagated into the science exposure's ``pixeldq`` array. | ||
The dimensions of the ``dq`` array should be equal to the number of columns | ||
and rows in a full-frame readout of a given detector, including reference | ||
pixels. | ||
The ASDF file contains a single dq array and dq flag definition table. | ||
.. include:: ../includes/dq_def.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _mask_selectors: | ||
|
||
Reference Selection Keywords for MASK | ||
+++++++++++++++++++++++++++++++++++++ | ||
CRDS selects appropriate MASK references based on the following keywords. | ||
MASK is not applicable for instruments not in the table. | ||
|
||
============ ========================================================== | ||
Instrument Metadata | ||
============ ========================================================== | ||
WFI instrument, detector, date, time | ||
============ ========================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters