Examples of pix2ang_ring()


Examples of gov.fnal.eag.healpix.PixTools.pix2ang_ring()

    long pix3 =  pt.vect2pix_nest(nside,v);
//    assertEquals("pix2=" + pix2, pix3, pix2, 1e-10);
//    assertEquals("pix2=" + pix2, 92, pix2, 1e-10);


    double[] radec = pt.pix2ang_ring(nside,76);
    assertEquals("theta=" + theta, theta, radec[0], 4e-2);
    assertEquals("phi=" + phi, radec[1], phi, 1e-2);
    double[] radec1 = pt.pix2ang_nest(nside,92);
    System.out.println("theta="+radec1[0]+" phi="+radec1[1]);
    assertEquals("theta=" + theta, theta, radec1[0], 4e-2);
View Full Code Here

Examples of gov.fnal.eag.healpix.PixTools.pix2ang_ring()

    nside = 4;
    v1 = pt.pix2vect_ring(nside, ipix);
    v1.normalize();
    double phi1 = Math.atan2(v1.y, v1.x);
    double[] tetphi = new double[2];
    tetphi = pt.pix2ang_ring(nside, ipix);
    assertEquals("phi = " + phi1, 0.0, Math.abs(phi1 - tetphi[1]), 1e-10);
    ipix = 26;
    nside = 4;
    v1 = pt.pix2vect_ring(nside, ipix);
    v1.normalize();
View Full Code Here

Examples of gov.fnal.eag.healpix.PixTools.pix2ang_ring()

    v1.normalize();
    phi1 = Math.atan2(v1.y, v1.x);
    if (phi1 < 0.)
      phi1 += TWOPI;
    tetphi = new double[2];
    tetphi = pt.pix2ang_ring(nside, ipix);
    assertEquals("phi = " + phi1, 0.0, Math.abs(phi1 - tetphi[1]), 1e-10);
    System.out.println("------------------------------------------");
    System.out.println(" test pix2vect_ring is done");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.