public class SkyPixer
extends java.lang.Object
Instances of this class are not in general thread-safe.
Constructor | Description |
---|---|
SkyPixer(int level) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
long |
getIndex(double[] v3) |
Returns the sky pixel index corresponding to a given position
on the unit sphere.
|
int |
getLevel() |
Returns the HEALPix level for this pixellisation scheme.
|
long |
getPixelCount() |
Returns the number of pixels used by this pixellisation scheme.
|
boolean |
isNested() |
Indicates whether this object uses the HEALPix NESTED or RING scheme.
|
public SkyPixer(int level)
level
- HEALPix levelpublic int getLevel()
public long getPixelCount()
public long getIndex(double[] v3)
v3
- 3-element vector giving a position on the celestial sphere;
if the modulus of the vector is not close to unity,
the result is undefinedpublic boolean isNested()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.