Package cds.healpix
Class Range
- java.lang.Object
-
- cds.healpix.Range
-
public class Range extends java.lang.ObjectDefines an Hash Range at the deeper depth.- Author:
- F.-X. Pineau
-
-
Constructor Summary
Constructors Constructor Description Range(long from, long to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtoCells(CellSink sink)Transforms this range in a list of HEALPix cells that are added to the givensink.voidtoCellsGeneralized(int dim, int absoluteDepthMax, CellSink sink)Transforms this range in a list of cells that are added to the givensink.voidtoCellsWithKnowledge(CellSink sink, int depthMax, int twiceDD, long rangeLenMin, long mask)Same astoCellsbut with additional informations which are (see parameter list).
-
-
-
Method Detail
-
toCells
public void toCells(CellSink sink)
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
public void toCellsGeneralized(int dim, int absoluteDepthMax, CellSink sink)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 astoCellsbut 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
-
-