|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cone.PixtoolsHealpix
public class PixtoolsHealpix
Healpix implementation for use with MOC library based on Kuropatkin's
PixTools library.
Use getInstance()
to obtain the singleton instance of this class.
Method Summary | |
---|---|
long |
ang2pix(int order,
double lonDeg,
double latDeg)
|
static PixtoolsHealpix |
getInstance()
Returns the sole instance of this singleton class. |
static int |
nsideToOrder(long nside)
Turns the HEALPix Nside parameter into the MOC "order" parameter. |
static long |
orderToNside(int order)
Turns the MOC "order" parameter into the HEALPix Nside parameter. |
double[] |
pix2ang(int order,
long ipix)
|
long[] |
queryDisc(int order,
double lonDeg,
double latDeg,
double radiusDeg)
|
int |
sizeToNside(double sizeDeg)
Returns an Nside value corresponding to a given angular size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long ang2pix(int order, double lonDeg, double latDeg)
ang2pix
in interface cds.moc.HealpixImpl
public double[] pix2ang(int order, long ipix)
pix2ang
in interface cds.moc.HealpixImpl
public long[] queryDisc(int order, double lonDeg, double latDeg, double radiusDeg)
queryDisc
in interface cds.moc.HealpixImpl
public int sizeToNside(double sizeDeg)
sizeDeg
- size in degrees
public static long orderToNside(int order)
order
-
public static int nsideToOrder(long nside)
nside
- Nside
IllegalArgumentException
- if nside is not suitablepublic static PixtoolsHealpix getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |