Source code for jwst.datamodels.darkMIRI

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


__all__ = ['DarkMIRIModel']


[docs]class DarkMIRIModel(ReferenceFileModel): """ A data model for dark MIRI reference files. Parameters __________ data : numpy float32 array Dark current array dq : numpy uint16 array 2-D data quality array for all planes err : numpy float32 array Error array dq_def : numpy table DQ flag definitions """ schema_url = "http://stsci.edu/schemas/jwst_datamodel/darkMIRI.schema" def __init__(self, init=None, **kwargs): super(DarkMIRIModel, self).__init__(init=init, **kwargs) self.dq = dynamic_mask(self, pixel) # Implicitly create arrays self.dq = self.dq self.err = self.err