Package gov.fnal.eag.healpix

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


    ArrayList vlist3 = new ArrayList();
    v = pt.pix2vect_ring(nside, 110);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 27);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 105);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 154);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 123);
    vlist3.add((Object) v);
View Full Code Here


    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 27);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 105);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 154);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 123);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 156);
    vlist3.add((Object) v);
View Full Code Here

    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 105);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 154);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 123);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 156);
    vlist3.add((Object) v);
    pixlist = pt.query_polygon(nside, vlist3, nest, inclusive);
View Full Code Here

    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 154);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 123);
    vlist3.add((Object) v);
    v = pt.pix2vect_ring(nside, 156);
    vlist3.add((Object) v);
    pixlist = pt.query_polygon(nside, vlist3, nest, inclusive);

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

        double phi = Math.PI;
        double radius = Math.toRadians(0.2/3600.); //  One arcse
        long nside = pt.GetNSide(radius);
        System.out.println(" calculated nside="+nside);
        long cpix = pt.ang2pix_ring(nside,theta,phi);
        Vector3d vc = pt.pix2vect_ring(nside, cpix);
        ArrayList pixlist;
        pixlist = pt.query_disc(nside, vc, radius, nest, inclusive);

        int nlist = pixlist.size();
        for (int i = 0; i < nlist; i++) {
View Full Code Here

        pixlist = pt.query_disc(nside, vc, radius, nest, inclusive);

        int nlist = pixlist.size();
        for (int i = 0; i < nlist; i++) {
            ipix = ((Long) pixlist.get(i)).longValue();
            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);
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.