Skip to content
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

PSF data model #336

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/336.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
added MIRI LTS FIXED SLIT PSF reference model
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
added MIRI LTS FIXED SLIT PSF reference model
added MIRI LRS FIXED SLIT PSF reference model

2 changes: 2 additions & 0 deletions src/stdatamodels/jwst/datamodels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
from .photom import NisImgPhotomModel, NisSossPhotomModel, NisWfssPhotomModel
from .photom import NrsFsPhotomModel, NrsMosPhotomModel
from .pixelarea import PixelAreaModel, NirspecSlitAreaModel, NirspecMosAreaModel, NirspecIfuAreaModel
from .psf import MiriLrsPsfModel
from .psfmask import PsfMaskModel
from .quad import QuadModel
from .ramp import RampModel
Expand Down Expand Up @@ -134,6 +135,7 @@
'NisImgPhotomModel', 'NisSossPhotomModel', 'NisWfssPhotomModel',
'NrsFsPhotomModel', 'NrsMosPhotomModel',
'PastasossModel',
'MiriLrsPsfModel',
'PsfMaskModel',
'QuadModel', 'RampModel',
'RampFitOutputModel', 'ReadnoiseModel',
Expand Down
23 changes: 23 additions & 0 deletions src/stdatamodels/jwst/datamodels/psf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from .reference import ReferenceFileModel


__all__ = ['MiriLrsPsfModel']


class MiriLrsPsfModel(ReferenceFileModel):
"""
A data model for 2-D PSF reference images

Parameters
__________
data : numpy float32 array
The PSF image

wave : numpy float32 array
Wavelength image

"""
schema_url = "http://stsci.edu/schemas/jwst_datamodel/miri_lrs_psf.schema"

def __init__(self, init=None, **kwargs):
super(MiriLrsPsfModel, self).__init__(init=init, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/fits-schema/fits-schema"
id: "http://stsci.edu/schemas/jwst_datamodel/miri_lrs_psf.schema"
allOf:
- $ref: referencefile.schema
- $ref: keyword_exptype.schema
- $ref: keyword_readpatt.schema
- $ref: keyword_psubarray.schema
- $ref: keyword_filter.schema
- $ref: subarray.schema

- type: object
properties:
meta:
type: object
properties:
psf:
title: PSF parameters
type: object
properties:
subpix:
title: oversampling factor
type: number
fits_keyword: SUBPIX
center_col:
title: column ePSF shifted to
type: number
fits_keyword: CENTCOL
- type: object
properties:
data:
title: The PSF image
fits_hdu: PSF
default: 0.0
ndim: 2
datatype: float32
wave:
title: Wavelength image
fits_hdu: WAVE
default: 0
ndim: 1
datatype: float32

Loading