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
|
Chunker
subdivides the unit sphere into longitude-latitude boxes.
More...
#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 |
getNumStripes returns the number of fixed-height latitude intervals in the sky subdivision. | |
int32_t | getNumSubStripesPerStripe () const |
getNumSubStripesPerStripe returns the number of fixed-height latitude sub-intervals in each stripe. | |
std::vector< int32_t > | getChunksIntersecting (Region const &r) const |
getChunksIntersecting returns all the chunks that potentially intersect the given region. | |
std::vector< SubChunks > | getSubChunksIntersecting (Region const &r) const |
getSubChunksIntersecting returns all the sub-chunks that potentially intersect the given region. | |
std::vector< int32_t > | getAllChunks () const |
getAllChunks returns the complete set of chunk IDs for the unit sphere. | |
std::vector< int32_t > | getAllSubChunks (int32_t chunkId) const |
getAllSubChunks returns the complete set of sub-chunk IDs for the given chunk. | |
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.
lsst::sphgeom::Chunker::Chunker | ( | int32_t | numStripes, |
int32_t | numSubStripesPerStripe ) |
Definition at line 64 of file Chunker.cc.
std::vector< int32_t > lsst::sphgeom::Chunker::getAllChunks | ( | ) | const |
getAllChunks
returns the complete set of chunk IDs for the unit sphere.
Definition at line 265 of file Chunker.cc.
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.
Definition at line 276 of file Chunker.cc.
|
inline |
Box lsst::sphgeom::Chunker::getChunkBoundingBox | ( | int32_t | stripe, |
int32_t | chunk ) const |
Definition at line 298 of file Chunker.cc.
std::vector< int32_t > lsst::sphgeom::Chunker::getChunksIntersecting | ( | Region const & | r | ) | const |
getChunksIntersecting
returns all the chunks that potentially intersect the given region.
Definition at line 110 of file Chunker.cc.
|
inline |
|
inline |
|
inline |
Box lsst::sphgeom::Chunker::getSubChunkBoundingBox | ( | int32_t | subStripe, |
int32_t | subChunk ) const |
Definition at line 309 of file Chunker.cc.
std::vector< SubChunks > lsst::sphgeom::Chunker::getSubChunksIntersecting | ( | Region const & | r | ) | const |
getSubChunksIntersecting
returns all the sub-chunks that potentially intersect the given region.
Definition at line 155 of file Chunker.cc.
|
inline |
|
inline |
bool lsst::sphgeom::Chunker::valid | ( | int32_t | chunkId | ) | const |
Return 'true' if the specified chunk number is valid.
Definition at line 292 of file Chunker.cc.