Examples of pix2vect_nest()


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

    int nside = 2;
    int ipix = 3;
    System.out.println(" Start test Pix2Vect_nest !!!!!!!!!!!!!!");
    PixTools pt = new PixTools();
    Vector3d v1 = new Vector3d(0., 0., 0.);
    v1 = pt.pix2vect_nest(nside, ipix);
    assertEquals("v1.z = " + v1.z, 1.0, v1.z, 1e-1);
    ipix = 17;
    Vector3d v2 = new Vector3d(0., 0., 0.);
    v2 = pt.pix2vect_nest(nside, ipix);
    assertEquals("v2.x = " + v2.x, 1.0, v2.x, 1e-1);
View Full Code Here

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

    Vector3d v1 = new Vector3d(0., 0., 0.);
    v1 = pt.pix2vect_nest(nside, ipix);
    assertEquals("v1.z = " + v1.z, 1.0, v1.z, 1e-1);
    ipix = 17;
    Vector3d v2 = new Vector3d(0., 0., 0.);
    v2 = pt.pix2vect_nest(nside, ipix);
    assertEquals("v2.x = " + v2.x, 1.0, v2.x, 1e-1);
    assertEquals("v2.z = " + v2.z, 0.0, v2.z, 1e-1);

    ipix = 21;
    Vector3d v3 = new Vector3d();
View Full Code Here

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

    assertEquals("v2.x = " + v2.x, 1.0, v2.x, 1e-1);
    assertEquals("v2.z = " + v2.z, 0.0, v2.z, 1e-1);

    ipix = 21;
    Vector3d v3 = new Vector3d();
    v3 = pt.pix2vect_nest(nside, ipix);
    assertEquals("v3.y = " + v3.y, 1.0, v3.y, 1e-1);
    assertEquals("v3.z = " + v3.z, 0.0, v3.z, 1e-1);
    nside = 4;
    ipix = 105;
    v1 = pt.pix2vect_nest(nside, ipix);
View Full Code Here

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

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

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

    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();
    phi1 = Math.atan2(v1.y, v1.x);
    if (phi1 < 0.)
      phi1 += TWOPI;
    tetphi = new double[2];
View Full Code Here

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

            Vector3d v = pt.pix2vect_ring(nside,ipix);
            double dist = pt.AngDist(v,vc);
            assertTrue(dist<=2.*radius);
        }
        cpix = pt.ang2pix_nest(nside,theta,phi);
        Vector3d vc1 = pt.pix2vect_nest(nside, cpix);
        long cpixnest= pt.vect2pix_nest(nside,vc1);
        ArrayList pixlist1;
        nest = 1;
        radius *=4;
        pixlist1 = pt.query_disc(nside, vc1, radius, nest, inclusive);
View Full Code Here

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

        radius *=4;
        pixlist1 = pt.query_disc(nside, vc1, radius, nest, inclusive);
        int nlist1 = pixlist1.size();
        for (int i = 0; i < nlist1; i++) {
            ipix = ((Long) pixlist1.get(i)).longValue();
            Vector3d v = pt.pix2vect_nest(nside,ipix);
            double dist = pt.AngDist(v,vc1);
            assertTrue(dist<=2.*radius);
        }
        System.out.println(" test query disc Hi Res 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.