|
lsst.afw
14.0-60-ga423a1d65+1
|
Divide a box into nx by ny sub-boxes that tile the region. More...
Public Member Functions | |
| def | __init__ (self, box, numColRow) |
| Construct a BoxGrid. More... | |
| def | numColRow (self) |
| def | __getitem__ (self, indXY) |
| Return the box at the specified x,y index (a pair of ints) More... | |
| def | __len__ (self) |
| def | __iter__ (self) |
| Return an iterator over all boxes, where column varies most quickly. More... | |
Public Attributes | |
| boxClass | |
| stopDelta | |
| pointClass | |
Divide a box into nx by ny sub-boxes that tile the region.
Definition at line 47 of file testUtils.py.
| def lsst.afw.geom.testUtils.BoxGrid.__init__ | ( | self, | |
| box, | |||
| numColRow | |||
| ) |
Construct a BoxGrid.
The sub-boxes will be of the same type as box and will exactly tile box; they will also all be the same size, to the extent possible (some variation is inevitable for integer boxes that cannot be evenly divided.
| [in] | box | box (an lsst.afw.geom.Box2I or Box2D); the boxes in the grid will be of the same type |
| [in] | numColRow | number of columns and rows (a pair of ints) |
Definition at line 51 of file testUtils.py.
| def lsst.afw.geom.testUtils.BoxGrid.__getitem__ | ( | self, | |
| indXY | |||
| ) |
Return the box at the specified x,y index (a pair of ints)
Definition at line 90 of file testUtils.py.
| def lsst.afw.geom.testUtils.BoxGrid.__iter__ | ( | self | ) |
Return an iterator over all boxes, where column varies most quickly.
Definition at line 101 of file testUtils.py.
| def lsst.afw.geom.testUtils.BoxGrid.__len__ | ( | self | ) |
Definition at line 98 of file testUtils.py.
| def lsst.afw.geom.testUtils.BoxGrid.numColRow | ( | self | ) |
Definition at line 87 of file testUtils.py.
| lsst.afw.geom.testUtils.BoxGrid.boxClass |
Definition at line 73 of file testUtils.py.
| lsst.afw.geom.testUtils.BoxGrid.pointClass |
Definition at line 77 of file testUtils.py.
| lsst.afw.geom.testUtils.BoxGrid.stopDelta |
Definition at line 74 of file testUtils.py.
1.8.13