Examples of ang2pix_ring()


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

    double theta = PI / 2. - 0.2;
    double phi = PI / 2. ;
    long nside = 4;
    PixTools pt = new PixTools();
    try {
      pix =  pt.ang2pix_ring(nside,theta, phi);
    } catch (Exception e) {
      e.printStackTrace();
    }
    Vector3d v = pt.Ang2Vec(theta,phi);
    long pix1 =  pt.vect2pix_ring(nside,v);
View Full Code Here

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

        double theta= Math.PI;
        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();
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.