|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.SkyPixer
public class SkyPixer
Maps positions on the unit sphere to pixel indices using a given pixel scheme. The current implementation uses the HEALPix nested scheme for a given HEALPix level.
Instances of this class are not in general thread-safe.
Constructor Summary | |
---|---|
SkyPixer(int level)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkyPixer(int level)
level
- HEALPix levelMethod Detail |
---|
public 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 undefined
public boolean isNested()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |