Package cds.moc
Class Healpix
java.lang.Object
cds.moc.Healpix
- All Implemented Interfaces:
HealpixImpl
HEALPix CDS wrapper
Encapsulate the usage of the HEALpix lib
The HEALPix ordering is always NESTED
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
ang2pix
(int order, double lon, double lat) Provide the HEALPix number associated to a coord, for a given orderstatic double
getPixelArea
(int order) Pixel area (in square degrees) for a given HEALPix orderdouble[]
pix2ang
(int order, long npix) Provide the spherical coord associated to an HEALPix number, for a given orderstatic final long
pow2
(long order) long[]
queryDisc
(int order, double lon, double lat, double radius) Provide the list of HEALPix numbers fully covering a circle (for a specified order)
-
Field Details
-
SKYAREA
public static final double SKYAREAHealpix Utilities
-
-
Constructor Details
-
Healpix
public Healpix()
-
-
Method Details
-
ang2pix
Provide the HEALPix number associated to a coord, for a given order- Specified by:
ang2pix
in interfaceHealpixImpl
- Parameters:
order
- HEALPix order [0..MAXORDER]lon
- longitude (expressed in the Healpix frame)lat
- latitude (expressed in the Healpix frame)- Returns:
- HEALPix number
- Throws:
Exception
-
pix2ang
Provide the spherical coord associated to an HEALPix number, for a given order- Specified by:
pix2ang
in interfaceHealpixImpl
- Parameters:
order
- HEALPix order [0..MAXORDER]npix
- HEALPix number- Returns:
- coord (lon,lat) (expressed in the Healpix frame)
- Throws:
Exception
-
queryDisc
Provide the list of HEALPix numbers fully covering a circle (for a specified order)- Specified by:
queryDisc
in interfaceHealpixImpl
- Parameters:
order
- Healpix orderlon
- center longitude (expressed in the Healpix frame)lat
- center latitude (expressed in the Healpix frame)radius
- circle radius (in degrees)- Returns:
- Throws:
Exception
-
pow2
public static final long pow2(long order) -
getPixelArea
public static double getPixelArea(int order) Pixel area (in square degrees) for a given HEALPix order
-