LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Member Functions | |
RangeSet | universe (self) |
Region | pixel (self, i) |
int | index (self, UnitVector3d v) |
str | toString (self, int i) |
envelope (self, Region region, int maxRanges=0) | |
interior (self, Region region, int maxRanges=0) | |
Pixelization ABC class that should be a base for Python implementations of pixelization.
Definition at line 34 of file pixelization_abc.py.
lsst.sphgeom.pixelization_abc.PixelizationABC.envelope | ( | self, | |
Region | region, | ||
int | maxRanges = 0 ) |
Return the indexes of the pixels intersecting the spherical region. The ``maxRanges`` parameter can be used to limit both these costs - setting it to a non-zero value sets a cap on the number of ranges returned by this method. To meet this constraint, implementations are allowed to return pixels that do not intersect the region along with those, that do. This allows two ranges [a, b) and [c, d), a < b < c < d, to be merged into one range [a, d) (by adding in the pixels [b, c)). Since simplification proceeds by adding pixels, the return value will always be a superset of the intersecting pixels. Parameters ---------- region : `lsst.sphgeom.Region` maxRanges : `int` Returns ------- rangeSet : `lsst.sphgeom.RangeSet`
Reimplemented in lsst.sphgeom._healpixPixelization.HealpixPixelization.
Definition at line 106 of file pixelization_abc.py.
int lsst.sphgeom.pixelization_abc.PixelizationABC.index | ( | self, | |
UnitVector3d | v ) |
Compute the index of the pixel. Parameters ---------- v : `lsst.sphgeom.UnitVector3d` Returns ------- i : `int` The index of the pixel.
Reimplemented in lsst.sphgeom._healpixPixelization.HealpixPixelization.
Definition at line 77 of file pixelization_abc.py.
lsst.sphgeom.pixelization_abc.PixelizationABC.interior | ( | self, | |
Region | region, | ||
int | maxRanges = 0 ) |
Return the indexes of the pixels within the spherical region. The ``maxRanges`` argument is analogous to the identically named envelope() argument. The only difference is that implementations must remove interior pixels to keep the number of ranges at or below the maximum. The return value is therefore always a subset of the interior pixels. Parameters ---------- region : `lsst.sphgeom.Region` maxRanges : `int` Returns ------- rangeSet : `lsst.sphgeom.RangeSet`
Reimplemented in lsst.sphgeom._healpixPixelization.HealpixPixelization.
Definition at line 131 of file pixelization_abc.py.
Region lsst.sphgeom.pixelization_abc.PixelizationABC.pixel | ( | self, | |
i ) |
Return the spherical region corresponding to the pixel index ``i``. This region will contain all unit vectors v with ``index(v) == i``. But it may also contain points with index not equal to ``i``. To see why, consider a point that lies on the edge of a polygonal pixel - it is inside the polygons for both pixels sharing the edge, but must be assigned to exactly one pixel by the pixelization. Parameters ---------- i : `int` Pixel index. Returns ------- region : `lsst.sphgeom.Region` The spherical region corresponding to the pixel with index ``i`` Raises ------ `InvalidArgumentException` Raised if ``i`` is not a valid pixel index.
Reimplemented in lsst.sphgeom._healpixPixelization.HealpixPixelization.
Definition at line 50 of file pixelization_abc.py.
str lsst.sphgeom.pixelization_abc.PixelizationABC.toString | ( | self, | |
int | i ) |
Convert the given pixel index to a human-readable string. Parameters ---------- i : `int` Returns ------- s : `str`
Reimplemented in lsst.sphgeom._healpixPixelization.HealpixPixelization.
Definition at line 92 of file pixelization_abc.py.
RangeSet lsst.sphgeom.pixelization_abc.PixelizationABC.universe | ( | self | ) |
Return the set of all pixel indexes for this pixelization. Returns ------- rangeSet : `lsst.sphgeom.RangeSet`
Reimplemented in lsst.sphgeom._healpixPixelization.HealpixPixelization.
Definition at line 40 of file pixelization_abc.py.