Package uk.ac.starlink.ttools.cone
Class CdsHealpix
- java.lang.Object
-
- uk.ac.starlink.ttools.cone.CdsHealpix
-
- All Implemented Interfaces:
cds.moc.HealpixImpl
public class CdsHealpix extends java.lang.Object implements cds.moc.HealpixImpl
Healpix implementation for use with the MOC library based on F-X Pineau's cds-healpix-java library.Use
getInstance()
to obtain the singleton instance of this class.- Since:
- 21 May 2020
- Author:
- Mark Taylor
- See Also:
- https://github.com/cds-astro/cds-healpix-java
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
ang2pix(int order, double lonDeg, double latDeg)
static CdsHealpix
getInstance()
Returns the sole instance of this class.double[]
pix2ang(int order, long ipix)
long[]
queryDisc(int order, double lonDeg, double latDeg, double radiusDeg)
-
-
-
Method Detail
-
ang2pix
public long ang2pix(int order, double lonDeg, double latDeg)
- Specified by:
ang2pix
in interfacecds.moc.HealpixImpl
-
pix2ang
public double[] pix2ang(int order, long ipix)
- Specified by:
pix2ang
in interfacecds.moc.HealpixImpl
-
queryDisc
public long[] queryDisc(int order, double lonDeg, double latDeg, double radiusDeg)
- Specified by:
queryDisc
in interfacecds.moc.HealpixImpl
-
getInstance
public static CdsHealpix getInstance()
Returns the sole instance of this class.- Returns:
- singleton instance
-
-