LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Functions | Variables
lsst.coadd.utils.makeBitMask Namespace Reference

Functions

def makeBitMask
 

Variables

list __all__ = ["makeBitMask"]
 

Function Documentation

def lsst.coadd.utils.makeBitMask.makeBitMask (   maskPlaneNameList,
  doInvert = False 
)
Generate a bit mask consisting of ORed together Mask bit planes

@deprecated use afwImage.MaskU.getPlaneBitMask(maskPlaneNameList) instead.

@input[in] maskPlaneNameList: list of mask plane names
@input[in] doInvert: if True then invert the result

@return a bit mask consisting of the named bit planes ORed together (with the result possibly inverted)

Definition at line 27 of file makeBitMask.py.

27 
28 def makeBitMask(maskPlaneNameList, doInvert=False):
29  """Generate a bit mask consisting of ORed together Mask bit planes
30 
31  @deprecated use afwImage.MaskU.getPlaneBitMask(maskPlaneNameList) instead.
32 
33  @input[in] maskPlaneNameList: list of mask plane names
34  @input[in] doInvert: if True then invert the result
35 
36  @return a bit mask consisting of the named bit planes ORed together (with the result possibly inverted)
37  """
38  bitMask = afwImage.MaskU.getPlaneBitMask(maskPlaneNameList)
39  if doInvert:
40  bitMask = (2**afwImage.MaskU_getNumPlanesMax() - 1) - bitMask
41  return bitMask

Variable Documentation

list lsst.coadd.utils.makeBitMask.__all__ = ["makeBitMask"]

Definition at line 25 of file makeBitMask.py.