-
Notifications
You must be signed in to change notification settings - Fork 181
JP-3864: Move to unified bkg reftype for wfss #9584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4573602
move to unified bkg reftype for wfss
tapastro 90ec0ff
fragment
tapastro 922996b
catch missing bkg ref
tapastro 0c2d1d7
clean docs of WFSSBKG reftype
tapastro 3c94998
formatting
tapastro 52947bb
Merge branch 'main' into jp-3864-bkg-reftype
tapastro f37a218
Merge branch 'main' into jp-3864-bkg-reftype
tapastro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| Change the background reference filetype for WFSS processing from ``wfssbkg`` to ``bkg``. |
This file contains hidden or 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 hidden or 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,66 @@ | ||
| .. _bkg_reffile: | ||
|
|
||
| Background reference file | ||
| ------------------------- | ||
|
|
||
| :REFTYPE: BKG | ||
|
|
||
| The WFSS background reference file contains a "master" image of the | ||
| dispersed background produced by a particular filter+grism combination. | ||
|
|
||
| .. include:: ../references_general/bkg_selection.inc | ||
|
|
||
| .. include:: ../includes/standard_keywords.inc | ||
|
|
||
| Type Specific Keywords for BKG | ||
| ++++++++++++++++++++++++++++++ | ||
| In addition to the standard reference file keywords listed above, | ||
| the following keywords are *required* in BKG reference files, | ||
| because they are used as CRDS selectors. | ||
| (see :ref:`bkg_selectors`): | ||
|
|
||
| ========= ============================== | ||
| Keyword Data Model Name | ||
| ========= ============================== | ||
| DETECTOR model.meta.instrument.detector | ||
| EXP_TYPE model.meta.exposure.type | ||
| FILTER model.meta.instrument.filter | ||
| PUPIL model.meta.instrument.pupil | ||
| ========= ============================== | ||
|
|
||
| Reference File Format | ||
| +++++++++++++++++++++ | ||
| BKG reference files are in FITS format. The content of the background references differ | ||
| based on exposure type: | ||
|
|
||
| :Data model: `~jwst.datamodels.WfssBkgModel` | ||
|
|
||
| Wide-field slitless spectroscopy (WFSS) background files contain 3 IMAGE extensions and | ||
| 1 BINTABLE extension. The FITS primary HDU does not contain a data array. | ||
| The characteristics of the FITS extensions are as follows: | ||
|
|
||
| ======= ======== ===== ============== ========= | ||
| EXTNAME XTENSION NAXIS Dimensions Data type | ||
| ======= ======== ===== ============== ========= | ||
| SCI IMAGE 2 ncols x nrows float | ||
| ERR IMAGE 2 ncols x nrows float | ||
| DQ IMAGE 2 ncols x nrows integer | ||
| DQ_DEF BINTABLE 2 TFIELDS = 4 N/A | ||
| ======= ======== ===== ============== ========= | ||
|
|
||
| .. include:: ../includes/dq_def.inc | ||
|
|
||
| :Data model: `~jwst.datamodels.SossBkgModel` | ||
|
|
||
| Background reference files supporting NIRISS SOSS exposures contain three | ||
| image extensions, each with three dimensions. The extensions contain templates | ||
| of reference backgrounds. The FITS primary HDU does not contain a data array. | ||
| The characteristics of the FITS extensions are as follows: | ||
|
|
||
| ======= ======== ===== ========================== ========= | ||
| EXTNAME XTENSION NAXIS Dimensions Data type | ||
| ======= ======== ===== ========================== ========= | ||
| SCI IMAGE 3 ncols x nrows x ntemplates float | ||
| ERR IMAGE 3 ncols x nrows x ntemplates float | ||
| DQ IMAGE 3 ncols x nrows x ntemplates integer | ||
| ======= ======== ===== ========================== ========= |
10 changes: 5 additions & 5 deletions
10
.../references_general/wfssbkg_selection.inc → ...jwst/references_general/bkg_selection.inc
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.