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

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • ang2pix

        long ang2pix​(int order,
                     double lon,
                     double lat)
              throws java.lang.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:
        java.lang.Exception
      • pix2ang

        double[] pix2ang​(int order,
                         long npix)
                  throws java.lang.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:
        java.lang.Exception
      • queryDisc

        long[] queryDisc​(int order,
                         double lon,
                         double lat,
                         double radius)
                  throws java.lang.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:
        java.lang.Exception