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
Public Member Functions | Private Attributes | List of all members
lsst.skymap.patchInfo.PatchInfo Class Reference
Inheritance diagram for lsst.skymap.patchInfo.PatchInfo:

Public Member Functions

def __init__
 
def getIndex
 
def getInnerBBox
 
def getOuterBBox
 
def __eq__
 
def __ne__
 
def __str__
 
def __repr__
 

Private Attributes

 _index
 
 _innerBBox
 
 _outerBBox
 

Detailed Description

Information about a patch within a tract of a sky map

See TractInfo for more information.

Definition at line 24 of file patchInfo.py.

Constructor & Destructor Documentation

def lsst.skymap.patchInfo.PatchInfo.__init__ (   self,
  index,
  innerBBox,
  outerBBox 
)
Construct a PatchInfo

@param[in] index: x,y index of patch (a pair of ints)
@param[in] innerBBox: inner bounding box (an afwGeom.Box2I)
@param[in] outerBBox: inner bounding box (an afwGeom.Box2I)

Definition at line 29 of file patchInfo.py.

29 
30  def __init__(self, index, innerBBox, outerBBox):
31  """Construct a PatchInfo
32 
33  @param[in] index: x,y index of patch (a pair of ints)
34  @param[in] innerBBox: inner bounding box (an afwGeom.Box2I)
35  @param[in] outerBBox: inner bounding box (an afwGeom.Box2I)
36  """
37  self._index = index
38  self._innerBBox = innerBBox
39  self._outerBBox = outerBBox
40  if not outerBBox.contains(innerBBox):
41  raise RuntimeError("outerBBox=%s does not contain innerBBox=%s" % (outerBBox, innerBBox))
42 

Member Function Documentation

def lsst.skymap.patchInfo.PatchInfo.__eq__ (   self,
  rhs 
)
Support ==

Definition at line 58 of file patchInfo.py.

58 
59  def __eq__(self, rhs):
60  """Support ==
61  """
62  return (self.getIndex() == rhs.getIndex()) \
63  and (self.getInnerBBox() == rhs.getInnerBBox()) \
64  and (self.getOuterBBox() == rhs.getOuterBBox())
def lsst.skymap.patchInfo.PatchInfo.__ne__ (   self,
  rhs 
)
Support !=

Definition at line 65 of file patchInfo.py.

65 
66  def __ne__(self, rhs):
67  """Support !=
68  """
69  return not self.__eq__(rhs)
def lsst.skymap.patchInfo.PatchInfo.__repr__ (   self)
Return a detailed string representation

Definition at line 75 of file patchInfo.py.

75 
76  def __repr__(self):
77  """Return a detailed string representation
78  """
79  return "PatchInfo(index=%s, innerBBox=%s, outerBBox=%s)" % \
80  (self.getIndex(), self.getInnerBBox(), self.getOuterBBox())
def lsst.skymap.patchInfo.PatchInfo.__str__ (   self)
Return a brief string representation

Definition at line 70 of file patchInfo.py.

70 
71  def __str__(self):
72  """Return a brief string representation
73  """
74  return "PatchInfo(index=%s)" % (self.getIndex(),)
def lsst.skymap.patchInfo.PatchInfo.getIndex (   self)
Get patch index

Definition at line 43 of file patchInfo.py.

43 
44  def getIndex(self):
45  """Get patch index
46  """
47  return self._index
def lsst.skymap.patchInfo.PatchInfo.getInnerBBox (   self)
Get inner bounding box

Definition at line 48 of file patchInfo.py.

48 
49  def getInnerBBox(self):
50  """Get inner bounding box
51  """
52  return self._innerBBox
def lsst.skymap.patchInfo.PatchInfo.getOuterBBox (   self)
Get outer bounding box

Definition at line 53 of file patchInfo.py.

53 
54  def getOuterBBox(self):
55  """Get outer bounding box
56  """
57  return self._outerBBox

Member Data Documentation

lsst.skymap.patchInfo.PatchInfo._index
private

Definition at line 36 of file patchInfo.py.

lsst.skymap.patchInfo.PatchInfo._innerBBox
private

Definition at line 37 of file patchInfo.py.

lsst.skymap.patchInfo.PatchInfo._outerBBox
private

Definition at line 38 of file patchInfo.py.


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