lsst.dax.apdb g06e71c497f+d8699861bb
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
lsst.dax.apdb.pixelization.Pixelization Class Reference

Public Member Functions

 __init__ (self, str pixelization, int pix_level, int pix_max_ranges)
 
list[int] pixels (self, sphgeom.Region region)
 
int pixel (self, sphgeom.UnitVector3d direction)
 
list[tuple[int, int]] envelope (self, sphgeom.Region region)
 

Public Attributes

 pixelator
 

Protected Attributes

 _pix_max_ranges
 

Detailed Description

Wrapper for pixelization classes from `sphgeom` with configurable
pixelization type and parameters.

Parameters
----------
pixelization : `str`
    Name of a pixelization type, one of ""htm", "q3c", or "mq3c"
pix_level : `int`
    Pixelization level.
pix_max_ranges : `int`
    Maximum number of ranges returned from `envelope()` method.

Member Function Documentation

◆ envelope()

list[tuple[int, int]] lsst.dax.apdb.pixelization.Pixelization.envelope ( self,
sphgeom.Region region )
Generate a set of HTM indices covering specified region.

Parameters
----------
region: `sphgeom.Region`
    Region that needs to be indexed.

Returns
-------
ranges : `list` of `tuple`
    Sequence of ranges, range is a tuple (minHtmID, maxHtmID).

◆ pixel()

int lsst.dax.apdb.pixelization.Pixelization.pixel ( self,
sphgeom.UnitVector3d direction )
Compute the index of the pixel for given direction.

Parameters
----------
direction : `lsst.sphgeom.UnitVector3d`

◆ pixels()

list[int] lsst.dax.apdb.pixelization.Pixelization.pixels ( self,
sphgeom.Region region )
Compute set of the pixel indices for given region.

Parameters
----------
region : `lsst.sphgeom.Region`

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