Package cds.moc
Interface HealpixImpl
- All Known Implementing Classes:
Healpix
public interface HealpixImpl
HEALPix Interface wrapper for Moc usage
Encapsulate the usage HEALPix
The HEALPix ordering is always NESTED
-
Method Summary
Modifier and TypeMethodDescriptionlong
ang2pix
(int order, double lon, double lat) Provide the HEALPix number associated to a coord, for a given orderdouble[]
pix2ang
(int order, long npix) Provide the galactic coord associated to an HEALPix number, for a given orderlong[]
queryDisc
(int order, double lon, double lat, double radius) Provide the list of HEALPix numbers fully covering a circle (for a specified order)
-
Method Details
-
ang2pix
Provide the HEALPix number associated to a coord, for a given order- 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 galactic coord associated to an HEALPix number, for a given order- Parameters:
order
- HEALPix order [0..MAXORDER]npix
- HEALPix number- Returns:
- spherical 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)- 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
-