Package gov.fnal.eag.healpix

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


    int nside = 4;
    int ipix = 83;
    int respix = 0;
    PixTools pt = new PixTools();
    Vector3d v1 = new Vector3d(0., 0., 0.);
    v1 = pt.pix2vect_ring(nside, ipix);
    respix = (int) pt.vect2pix_nest(nside, v1);
    assertEquals("respix = " + respix, 123, respix, 1e-10);

    System.out.println("------------------------------------------");
    System.out.println(" test vect2pix_nest is done");
View Full Code Here


        95, 108, 109, 110, 111, 124, 125, 126, 141, 142 };
    int[] pixel2 = { 24, 19, 93, 18, 17, 92, 87, 16, 107, 89, 86, 85, 106,
        105, 83, 84, 159, 104, 81, 158, 157, 155, 156 };
    int inclusive = 1;
    double radius = Math.PI / 8.0;
    Vector3d v = pt.pix2vect_ring(nside, 93);
    ArrayList pixlist;
    pixlist = pt.query_disc(nside, v, radius, nest, inclusive);

    int nlist = pixlist.size();
View Full Code Here

//      assertEquals("pixel = " + ipix, pixel1[i], ipix, 1e-10);
      System.out.println(" i="+i+" pixel="+ipix);
    }
*/ 
    //
    v = pt.pix2vect_ring(nside, 93);
    nest = 1;
    inclusive = 1;
    pixlist = pt.query_disc(nside, v, radius, nest, inclusive);
    nlist = pixlist.size();

View Full Code Here

    int[] pixel7 = { 53, 68, 69 };
    long pix1 = 62;
    long pix2 = 57;
    long pix3 = 140;
    System.out.println("Start test Query Triangle !!!!!!!!!!!!!!!!!!!!");
    Vector3d v11 = pt.pix2vect_ring(nside, pix1);

    Vector3d v22 = pt.pix2vect_ring(nside, pix2);

    Vector3d v33 = pt.pix2vect_ring(nside, pix3);
View Full Code Here

    long pix2 = 57;
    long pix3 = 140;
    System.out.println("Start test Query Triangle !!!!!!!!!!!!!!!!!!!!");
    Vector3d v11 = pt.pix2vect_ring(nside, pix1);

    Vector3d v22 = pt.pix2vect_ring(nside, pix2);

    Vector3d v33 = pt.pix2vect_ring(nside, pix3);

    //    System.out.println("nside="+nside+" triangle pixels "+pix1+" "+pix2+"
    // "+pix3);
View Full Code Here

    System.out.println("Start test Query Triangle !!!!!!!!!!!!!!!!!!!!");
    Vector3d v11 = pt.pix2vect_ring(nside, pix1);

    Vector3d v22 = pt.pix2vect_ring(nside, pix2);

    Vector3d v33 = pt.pix2vect_ring(nside, pix3);

    //    System.out.println("nside="+nside+" triangle pixels "+pix1+" "+pix2+"
    // "+pix3);
    int inclusive = 0;
View Full Code Here

      assertEquals("pixel = " + ipix, pixel1[i], ipix, 1e-10);
    }
    pix1 = 92;
    pix2 = 88;
    pix3 = 154;
    v11 = pt.pix2vect_ring(nside, pix1);
    v22 = pt.pix2vect_ring(nside, pix2);
    v33 = pt.pix2vect_ring(nside, pix3);

    inclusive = 0;
    ArrayList pixlist1;
View Full Code Here

    }
    pix1 = 92;
    pix2 = 88;
    pix3 = 154;
    v11 = pt.pix2vect_ring(nside, pix1);
    v22 = pt.pix2vect_ring(nside, pix2);
    v33 = pt.pix2vect_ring(nside, pix3);

    inclusive = 0;
    ArrayList pixlist1;
    pixlist1 = pt.query_triangle(nside, v11, v22, v33, nest, inclusive);
View Full Code Here

    pix1 = 92;
    pix2 = 88;
    pix3 = 154;
    v11 = pt.pix2vect_ring(nside, pix1);
    v22 = pt.pix2vect_ring(nside, pix2);
    v33 = pt.pix2vect_ring(nside, pix3);

    inclusive = 0;
    ArrayList pixlist1;
    pixlist1 = pt.query_triangle(nside, v11, v22, v33, nest, inclusive);
View Full Code Here

      assertEquals("pixel = " + ipix, pixel2[i], ipix, 1e-10);
    }
    pix1 = 49;
    pix2 = 142;
    pix3 = 145;
    v11 = pt.pix2vect_ring(nside, pix1);
    v22 = pt.pix2vect_ring(nside, pix2);
    v33 = pt.pix2vect_ring(nside, pix3);

    inclusive = 0;
    ArrayList pixlist2;
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.