lsst.sphgeom g0f31348038+ce83317b7e
|
#include <Chunker.h>
Public Member Functions | |
Chunker (int32_t numStripes, int32_t numSubStripesPerStripe) | |
bool | operator== (Chunker const &c) const |
bool | operator!= (Chunker const &c) const |
int32_t | getNumStripes () const |
int32_t | getNumSubStripesPerStripe () const |
std::vector< int32_t > | getChunksIntersecting (Region const &r) const |
std::vector< SubChunks > | getSubChunksIntersecting (Region const &r) const |
std::vector< int32_t > | getAllChunks () const |
std::vector< int32_t > | getAllSubChunks (int32_t chunkId) const |
bool | valid (int32_t chunkId) const |
Return 'true' if the specified chunk number is valid. | |
Box | getChunkBoundingBox (int32_t stripe, int32_t chunk) const |
Box | getSubChunkBoundingBox (int32_t subStripe, int32_t subChunk) const |
int32_t | getStripe (int32_t chunkId) const |
Return the stripe for the specified chunkId. | |
int32_t | getChunk (int32_t chunkId, int32_t stripe) const |
Return the chunk for the given chunkId and stripe. | |
Chunker
subdivides the unit sphere into longitude-latitude boxes.
The unit sphere is divided into latitude angle "stripes" of fixed height H. For each stripe, a width W is computed such that any two points in the stripe with longitude angles separated by at least W have angular separation of at least H. The stripe is then broken into an integral number of chunks of width at least W. The same procedure is used to obtain finer subchunks - each stripe is broken into a configureable number of equal-height "substripes", and each substripe is broken into equal-width subchunks.
std::vector< int32_t > lsst::sphgeom::Chunker::getAllChunks | ( | ) | const |
getAllChunks
returns the complete set of chunk IDs for the unit sphere.
std::vector< int32_t > lsst::sphgeom::Chunker::getAllSubChunks | ( | int32_t | chunkId | ) | const |
getAllSubChunks
returns the complete set of sub-chunk IDs for the given chunk.
std::vector< int32_t > lsst::sphgeom::Chunker::getChunksIntersecting | ( | Region const & | r | ) | const |
getChunksIntersecting
returns all the chunks that potentially intersect the given region.
|
inline |
getNumStripes
returns the number of fixed-height latitude intervals in the sky subdivision.
|
inline |
getNumSubStripesPerStripe
returns the number of fixed-height latitude sub-intervals in each stripe.
getSubChunksIntersecting
returns all the sub-chunks that potentially intersect the given region.