LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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.