Source code for jwst.datamodels.gain
from .reference import ReferenceFileModel
__all__ = ['GainModel']
[docs]class GainModel(ReferenceFileModel):
"""
A data model for 2D gain.
Parameters
----------
init : any
Any of the initializers supported by `~jwst.datamodels.DataModel`.
data : numpy array
The 2-D gain array
"""
schema_url = "gain.schema.yaml"
def __init__(self, init=None, data=None, **kwargs):
super(GainModel, self).__init__(init=init, **kwargs)
if data is not None:
self.data = data