Examples of pix2ang_nest()


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


    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);
    assertEquals("phi=" + phi, radec1[1], phi, 1e-2)
    System.out.println(" test Ang2Pix is done");
  }
View Full Code Here

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

    v1.normalize();
    double phi1 = Math.atan2(v1.y, v1.x);
    if (phi1 < 0.)
      phi1 += TWOPI;
    double[] tetphi = new double[2];
    tetphi = pt.pix2ang_nest(nside, ipix);
    assertEquals("phi = " + phi1, 0.0, Math.abs(phi1 - tetphi[1]), 1e-10);
    nside = 4;
    ipix = 74;
    v1 = pt.pix2vect_nest(nside, ipix);
    v1.normalize();
View Full Code Here

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

    v1.normalize();
    phi1 = Math.atan2(v1.y, v1.x);
    if (phi1 < 0.)
      phi1 += TWOPI;
    tetphi = new double[2];
    tetphi = pt.pix2ang_nest(nside, ipix);
    assertEquals("phi = " + phi1, 0.0, Math.abs(phi1 - tetphi[1]), 1e-10);

    System.out.println(" test pix2vect_nest is done");
    System.out.println("-------------------------------------------");
  }
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.