Examples of GetNSide()


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

        int inclusive = 0;
        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);
View Full Code Here

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

    public void testGetNside() {
        System.out.println(" Start test GetNside !!!!!!!!!!!!!!!!!!!!!");

        double pixsize = 0.3;
        PixTools pt = new PixTools();
        long nside = pt.GetNSide(pixsize);
        System.out.println("Requared nside is "+nside);
        assertEquals("nside = " + nside, 1048576, nside, 1e-1);
        System.out.println(" End of GetNSide test _______________________");
    }
}
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.