Package cds.healpix
Class Range
java.lang.Object
cds.healpix.Range
Defines an Hash Range at the deeper depth.
- Author:
- F.-X. Pineau
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Transforms this range in a list of HEALPix cells that are added to the givensink
.void
toCellsGeneralized
(int dim, int absoluteDepthMax, CellSink sink) Transforms this range in a list of cells that are added to the givensink
.void
toCellsWithKnowledge
(CellSink sink, int depthMax, int twiceDD, long rangeLenMin, long mask) Same astoCells
but with additional informations which are (see parameter list).
-
Field Details
-
from
public final long fromRange lower bound (inclusive). -
to
public long toRange lower bound (exclusive).
-
-
Constructor Details
-
Range
public Range(long from, long to)
-
-
Method Details
-
toCells
Transforms this range in a list of HEALPix cells that are added to the givensink
. IMPORTANT: the order in which the cells are added follows the natural Z-order curve order!- Parameters:
sink
- object receiving each cell
-
toCellsGeneralized
Transforms this range in a list of cells that are added to the givensink
. IMPORTANT: the order in which the cells are added follows the natural Z-order curve order!- Parameters:
dim
- the z-order curve dimension (2 for HEALPix, 1 for time, ...)absoluteDepthMax
- max depth (29 for HEALPIX, ...)sink
- object receiving each cell
-
toCellsWithKnowledge
public void toCellsWithKnowledge(CellSink sink, int depthMax, int twiceDD, long rangeLenMin, long mask) Same astoCells
but with additional informations which are (see parameter list). This version may have better performances since a large part of the cells in a MOC are at the deepest MOC order.- Parameters:
sink
- object receiving each celldepthMax
- the depth of the lower possible cell order in the Range (i.e. the MOC order)twiceDD
-(29 - depthMax) << 1
, provided not ot have to recompute itrangeLenMin
-1L << twiceDD
, provided not to have to recompute itmask
-3L << twiceDD
, provided not to have to recompute it
-