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 | |
__init__ (self, int level) | |
nside (self) | |
getLevel (self) | |
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) | |
__eq__ (self, other) | |
__repr__ (self) | |
__reduce__ (self) | |
Static Public Attributes | |
int | MAX_LEVEL = 17 |
Protected Member Functions | |
_interior_pixels_from_region (self, int nside, Region region) | |
Protected Attributes | |
_level | |
_nside | |
_npix | |
_bit_shift | |
_nside_highres | |
Properties | |
level = property(getLevel) | |
HEALPix pixelization class. Parameters ---------- level : `int` Pixelization level. HEALPix nside = 2**level
Definition at line 36 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.__init__ | ( | self, | |
int | level ) |
Definition at line 47 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.__eq__ | ( | self, | |
other ) |
Definition at line 171 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.__reduce__ | ( | self | ) |
Definition at line 178 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.__repr__ | ( | self | ) |
Definition at line 175 of file _healpixPixelization.py.
|
protected |
Get interior pixels from a region. Parameters ---------- nside : `int` Healpix nside to retrieve interior pixels. region : `lsst.sphgeom.Region` Sphgeom region to find interior pixels. Returns ------- pixels : `np.ndarray` Array of pixels at resolution nside, nest ordering.
Definition at line 116 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.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 from lsst.sphgeom.pixelization_abc.PixelizationABC.
Definition at line 84 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.getLevel | ( | self | ) |
Definition at line 64 of file _healpixPixelization.py.
int lsst.sphgeom._healpixPixelization.HealpixPixelization.index | ( | self, | |
UnitVector3d | v ) |
Compute the index of the pixel. Parameters ---------- v : `lsst.sphgeom.UnitVector3d` Returns ------- i : `int` The index of the pixel.
Reimplemented from lsst.sphgeom.pixelization_abc.PixelizationABC.
Definition at line 78 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.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 from lsst.sphgeom.pixelization_abc.PixelizationABC.
Definition at line 98 of file _healpixPixelization.py.
lsst.sphgeom._healpixPixelization.HealpixPixelization.nside | ( | self | ) |
Definition at line 61 of file _healpixPixelization.py.
Region lsst.sphgeom._healpixPixelization.HealpixPixelization.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 from lsst.sphgeom.pixelization_abc.PixelizationABC.
Definition at line 72 of file _healpixPixelization.py.
str lsst.sphgeom._healpixPixelization.HealpixPixelization.toString | ( | self, | |
int | i ) |
Convert the given pixel index to a human-readable string. Parameters ---------- i : `int` Returns ------- s : `str`
Reimplemented from lsst.sphgeom.pixelization_abc.PixelizationABC.
Definition at line 81 of file _healpixPixelization.py.
RangeSet lsst.sphgeom._healpixPixelization.HealpixPixelization.universe | ( | self | ) |
Return the set of all pixel indexes for this pixelization. Returns ------- rangeSet : `lsst.sphgeom.RangeSet`
Reimplemented from lsst.sphgeom.pixelization_abc.PixelizationABC.
Definition at line 69 of file _healpixPixelization.py.
|
protected |
Definition at line 57 of file _healpixPixelization.py.
|
protected |
Definition at line 51 of file _healpixPixelization.py.
|
protected |
Definition at line 54 of file _healpixPixelization.py.
|
protected |
Definition at line 52 of file _healpixPixelization.py.
|
protected |
Definition at line 58 of file _healpixPixelization.py.
|
static |
Definition at line 45 of file _healpixPixelization.py.
|
static |
Definition at line 67 of file _healpixPixelization.py.