lsst.dax.apdb gbebdf9febd+5cb2473566
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lsst.dax.apdb.pixelization.Pixelization Class Reference

Public Member Functions

def __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
 

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: