Source code for jwst.datamodels.flat

from stcal.dynamicdq import dynamic_mask
from .dqflags import pixel
from .reference import ReferenceFileModel


__all__ = ['FlatModel']


[docs]class FlatModel(ReferenceFileModel): """ A data model for 2D flat-field images. Parameters __________ data : numpy float32 array The science data dq : numpy uint32 array Data quality array err : numpy float32 array Error array dq_def : numpy table DQ flag definitions """ schema_url = "http://stsci.edu/schemas/jwst_datamodel/flat.schema" def __init__(self, init=None, **kwargs): super(FlatModel, self).__init__(init=init, **kwargs) self.dq = dynamic_mask(self, pixel) # Implicitly create arrays self.err = self.err