LSST Applications g0da5cf3356+25b44625d0,g17e5ecfddb+50a5ac4092,g1c76d35bf8+585f0f68a2,g295839609d+8ef6456700,g2e2c1a68ba+cc1f6f037e,g38293774b4+62d12e78cb,g3b44f30a73+2891c76795,g48ccf36440+885b902d19,g4b2f1765b6+0c565e8f25,g5320a0a9f6+bd4bf1dc76,g56364267ca+403c24672b,g56b687f8c9+585f0f68a2,g5c4744a4d9+78cd207961,g5ffd174ac0+bd4bf1dc76,g6075d09f38+3075de592a,g667d525e37+cacede5508,g6f3e93b5a3+da81c812ee,g71f27ac40c+cacede5508,g7212e027e3+eb621d73aa,g774830318a+18d2b9fa6c,g7985c39107+62d12e78cb,g79ca90bc5c+fa2cc03294,g881bdbfe6c+cacede5508,g91fc1fa0cf+82a115f028,g961520b1fb+2534687f64,g96f01af41f+f2060f23b6,g9ca82378b8+cacede5508,g9d27549199+78cd207961,gb065e2a02a+ad48cbcda4,gb1df4690d6+585f0f68a2,gb35d6563ee+62d12e78cb,gbc3249ced9+bd4bf1dc76,gbec6a3398f+bd4bf1dc76,gd01420fc67+bd4bf1dc76,gd59336e7c4+c7bb92e648,gf46e8334de+81c9a61069,gfed783d017+bd4bf1dc76,v25.0.1.rc3
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
lsst.afw.image.image._mask.Mask Class Reference
Inheritance diagram for lsst.afw.image.image._mask.Mask:

Public Member Functions

def __reduce__ (self)
 
def __str__ (self)
 
def __repr__ (self)
 
def writeFitsWithOptions (self, dest, options, item=None)
 

Static Public Attributes

tuple TEMPLATE_PARAMS = ("dtype",)
 
tuple TEMPLATE_DEFAULTS = (MaskPixel,)
 
 readFitsWithOptions = classmethod(imageReadFitsWithOptions)
 

Detailed Description

Definition at line 35 of file _mask.py.

Member Function Documentation

◆ __reduce__()

def lsst.afw.image.image._mask.Mask.__reduce__ (   self)

Definition at line 39 of file _mask.py.

39 def __reduce__(self):
40 from lsst.afw.fits import reduceToFits
41 return reduceToFits(self)
42

◆ __repr__()

def lsst.afw.image.image._mask.Mask.__repr__ (   self)

Definition at line 46 of file _mask.py.

46 def __repr__(self):
47 return "{}.{}={}".format(self.__module__, self.__class__.__name__, str(self))
48

◆ __str__()

def lsst.afw.image.image._mask.Mask.__str__ (   self)

Definition at line 43 of file _mask.py.

43 def __str__(self):
44 return "{}, bbox={}, maskPlaneDict={}".format(self.array, self.getBBox(), self.getMaskPlaneDict())
45

◆ writeFitsWithOptions()

def lsst.afw.image.image._mask.Mask.writeFitsWithOptions (   self,
  dest,
  options,
  item = None 
)
Write an Mask to FITS, with options

Parameters
----------
dest : `str`
    Fits file path to which to write the mask.
options : `lsst.daf.base.PropertySet`
    Write options. The item ``item`` is read.
    It must contain an `lsst.daf.base.PropertySet` with data for
    ``lsst.afw.fits.ImageWriteOptions``.
item : `str`, optional
    Item to read from the ``options`` parameter.
    If not specified it will default to "mask" if present, else
    will fallback to the generic "image" options.

Definition at line 51 of file _mask.py.

51 def writeFitsWithOptions(self, dest, options, item=None):
52 """Write an Mask to FITS, with options
53
54 Parameters
55 ----------
56 dest : `str`
57 Fits file path to which to write the mask.
59 Write options. The item ``item`` is read.
60 It must contain an `lsst.daf.base.PropertySet` with data for
62 item : `str`, optional
63 Item to read from the ``options`` parameter.
64 If not specified it will default to "mask" if present, else
65 will fallback to the generic "image" options.
66 """
67 if item is None:
68 # Fallback to "image" if "mask" is missing. This allows older
69 # code that assumed "image" to still function.
70 item = "mask" if "mask" in options else "image"
71 return imageWriteFitsWithOptions(self, dest, options, item=item)
72
73
Class for storing generic metadata.
Definition: PropertySet.h:66
Options for writing an image to FITS.
Definition: fits.h:223

Member Data Documentation

◆ readFitsWithOptions

lsst.afw.image.image._mask.Mask.readFitsWithOptions = classmethod(imageReadFitsWithOptions)
static

Definition at line 49 of file _mask.py.

◆ TEMPLATE_DEFAULTS

tuple lsst.afw.image.image._mask.Mask.TEMPLATE_DEFAULTS = (MaskPixel,)
static

Definition at line 37 of file _mask.py.

◆ TEMPLATE_PARAMS

tuple lsst.afw.image.image._mask.Mask.TEMPLATE_PARAMS = ("dtype",)
static

Definition at line 36 of file _mask.py.


The documentation for this class was generated from the following file: