public final class Healpix extends Object implements HealpixImpl
Modifier and Type | Field and Description |
---|---|
static int |
MAXORDER
Maximal HEALPix order supported by the library
|
Constructor and Description |
---|
Healpix() |
Modifier and Type | Method and Description |
---|---|
long |
ang2pix(int order,
double lon,
double lat)
Provide the HEALPix number associated to a coord, for a given order
|
static long |
log2(long nside) |
double[] |
pix2ang(int order,
long npix)
Provide the spherical coord associated to an HEALPix number, for a given order
|
static 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)
|
public static final int MAXORDER
public long ang2pix(int order, double lon, double lat) throws Exception
ang2pix
in interface HealpixImpl
order
- HEALPix order [0..MAXORDER]lon
- longitude (expressed in the Healpix frame)lat
- latitude (expressed in the Healpix frame)Exception
public double[] pix2ang(int order, long npix) throws Exception
pix2ang
in interface HealpixImpl
order
- HEALPix order [0..MAXORDER]npix
- HEALPix numberException
public long[] queryDisc(int order, double lon, double lat, double radius) throws Exception
queryDisc
in interface HealpixImpl
order
- Healpix orderlon
- center longitude (expressed in the Healpix frame)lat
- center latitude (expressed in the Healpix frame)radius
- circle radius (in degrees)Exception
public static final long pow2(long order)
public static final long log2(long nside)