-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JP-3588: Implement new reference file datamodel for PASTASOSS transfo…
…rmations (#320)
- Loading branch information
Showing
6 changed files
with
117 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add datamodel and schema for ``PastasossModel``, a new reference file type for JWST NIRISS SOSS exposures. |
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,18 @@ | ||
from .reference import ReferenceFileModel | ||
|
||
|
||
__all__ = ['PastasossModel'] | ||
|
||
|
||
class PastasossModel(ReferenceFileModel): | ||
""" | ||
A data model to hold NIRISS SOSS wavelength grids. | ||
This 1-D array of wavelengths can be saved from a processing run | ||
and applied to future input products. | ||
Parameters | ||
__________ | ||
wavegrid : numpy float32 array | ||
1-D array of the wavelengths corresponding to the ATOCA fit. | ||
""" | ||
schema_url = "http://stsci.edu/schemas/jwst_datamodel/pastasossmodel.schema" |
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
86 changes: 86 additions & 0 deletions
86
src/stdatamodels/jwst/datamodels/schemas/pastasossmodel.schema.yaml
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,86 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: "http://stsci.edu/schemas/fits-schema/fits-schema" | ||
id: "http://stsci.edu/schemas/jwst_datamodel/pastasossmodel.schema" | ||
allOf: | ||
- $ref: referencefile.schema | ||
- $ref: keyword_exptype.schema | ||
- $ref: keyword_filter.schema | ||
- type: object | ||
properties: | ||
meta: | ||
type: object | ||
properties: | ||
pwcpos_cmd: | ||
title: Commanded position | ||
type: number | ||
traces: | ||
type: array | ||
title: An array of trace models by order | ||
items: | ||
type: object | ||
properties: | ||
spectral_order: | ||
title: Spectral order | ||
type: integer | ||
minimum: 1 | ||
pivot_x: | ||
title: Pixel rotation point | ||
type: number | ||
pivot_y: | ||
title: Pixel rotation point | ||
type: number | ||
trace: | ||
title: The trace position | ||
ndim: 2 | ||
datatype: float64 | ||
oversampling: | ||
title: Pixel oversampling | ||
type: integer | ||
default: 1 | ||
padding: | ||
title: Native pixel-size padding around the image | ||
type: integer | ||
default: 0 | ||
wavecal_models: | ||
type: array | ||
title: Polynomial regression model fitting wavelength to x, offset | ||
items: | ||
type: object | ||
properties: | ||
spectral_order: | ||
title: Spectral order | ||
type: integer | ||
minimum: 1 | ||
polynomial_degree: | ||
title: Polynomial degree of model | ||
type: integer | ||
coefficients: | ||
title: List of polynomial coefficients | ||
ndim: 1 | ||
datatype: float64 | ||
coefficient_labels: | ||
title: Coefficient order specification | ||
type: string | ||
scale_extents: | ||
title: Range of values for normalization | ||
ndim: 2 | ||
datatype: float64 | ||
throughputs: | ||
type: array | ||
title: An array of GR700XD throughputs by order | ||
items: | ||
type: object | ||
properties: | ||
spectral_order: | ||
title: Spectral order | ||
type: integer | ||
minimum: 1 | ||
throughput: | ||
title: The throughput array | ||
ndim: 1 | ||
datatype: float64 | ||
wavelength: | ||
title: The wavelength array | ||
ndim: 1 | ||
datatype: float64 |
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