Examples of vect2pix_ring()


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

      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);
    assertEquals("pix=" + pix, pix1, pix, 1e-10);
    assertEquals("pix=" + pix, 76, pix, 1e-10);

    long pix2 =  pt.ang2pix_nest(nside,theta,phi);
    long pix3 =  pt.vect2pix_nest(nside,v);
View Full Code Here

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

    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_ring(nside, v1);
    assertEquals("respix = " + respix, 83, respix, 1e-10);

    System.out.println("------------------------------------------");
    System.out.println(" test vect2pix_ring 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.