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 Type
    Method
    Description
    long
    ang2pix(int order, double lon, double lat)
    Provide the HEALPix number associated to a coord, for a given order
    double[]
    pix2ang(int order, long npix)
    Provide the galactic coord associated to an HEALPix number, for a given 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)
  • Method Details

    • ang2pix

      long ang2pix(int order, double lon, double lat) throws Exception
      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

      double[] pix2ang(int order, long npix) throws Exception
      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

      long[] queryDisc(int order, double lon, double lat, double radius) throws Exception
      Provide the list of HEALPix numbers fully covering a circle (for a specified order)
      Parameters:
      order - Healpix order
      lon - center longitude (expressed in the Healpix frame)
      lat - center latitude (expressed in the Healpix frame)
      radius - circle radius (in degrees)
      Returns:
      Throws:
      Exception