MaskModel

class jwst.datamodels.MaskModel(init=None, dq=None, dq_def=None, **kwargs)[source]

Bases: jwst.datamodels.DataModel

A data model for 2D masks.

Parameters:
  • init (any) – Any of the initializers supported by DataModel.
  • dq (numpy array) – The data quality array.
  • dq_def (numpy array) – The data quality definitions table.

Attributes Summary

schema_url

Methods Summary

get_primary_array_name() Returns the name “primary” array for this model, which controls the size of other arrays that are implicitly created.

Attributes Documentation

schema_url = 'mask.schema.yaml'

Methods Documentation

get_primary_array_name()[source]

Returns the name “primary” array for this model, which controls the size of other arrays that are implicitly created. This is intended to be overridden in the subclasses if the primary array’s name is not “data”.