Examples of RingNum()


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

  public void testRingNum() throws Exception {
    double z = 0.25;
    int nside = 1;
    System.out.println("Start test RingNum !!!!!!!!!!!!!!!!!!!!");
    PixTools pt = new PixTools();
    int nring = (int) pt.RingNum(nside, z);
    System.out.println("z=" + z + " ring number =" + nring);
    assertEquals("z=" + z, 2, nring, 1e-10);
    z = -0.25;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 2, nring, 1e-10);
View Full Code Here

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

    PixTools pt = new PixTools();
    int nring = (int) pt.RingNum(nside, z);
    System.out.println("z=" + z + " ring number =" + nring);
    assertEquals("z=" + z, 2, nring, 1e-10);
    z = -0.25;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 2, nring, 1e-10);
    z = 0.8;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 1, nring, 1e-10);
    z = -0.8;
View Full Code Here

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

    assertEquals("z=" + z, 2, nring, 1e-10);
    z = -0.25;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 2, nring, 1e-10);
    z = 0.8;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 1, nring, 1e-10);
    z = -0.8;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 3, nring, 1e-10);
    System.out.println(" test RingNum is done");
View Full Code Here

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

    assertEquals("z=" + z, 2, nring, 1e-10);
    z = 0.8;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 1, nring, 1e-10);
    z = -0.8;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 3, nring, 1e-10);
    System.out.println(" test RingNum is done");
    nside = 4;
    int pix = 3;
    Vector3d v = pt.pix2vect_ring(nside, pix);
View Full Code Here

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

    System.out.println(" test RingNum is done");
    nside = 4;
    int pix = 3;
    Vector3d v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 1, nring, 1e-10);
    pix = 11;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
View Full Code Here

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

    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 1, nring, 1e-10);
    pix = 11;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 2, nring, 1e-10);
    pix = 23;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
View Full Code Here

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

    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 2, nring, 1e-10);
    pix = 23;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 3, nring, 1e-10);
    pix = 39;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
View Full Code Here

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

    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 3, nring, 1e-10);
    pix = 39;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 4, nring, 1e-10);
    pix = 55;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
View Full Code Here

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

    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 4, nring, 1e-10);
    pix = 55;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 5, nring, 1e-10);
    pix = 71;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
View Full Code Here

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

    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 5, nring, 1e-10);
    pix = 71;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
    assertEquals("z=" + z, 6, nring, 1e-10);
    pix = 87;
    v = pt.pix2vect_ring(nside, pix);
    z = v.z;
    nring = (int) pt.RingNum(nside, z);
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.