Examples of InRing()


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

    int nside = 2;
    boolean nest = false;
    int iz = 3;
    double phi = PI;
    double dphi = PI;
    ArrayList ring = pt.InRing(nside, iz, phi, dphi, nest);
    for (int i = 0; i < ring.size(); i++) {
      assertEquals("ipnext = " + ((Long) ring.get(i)).longValue(),
          i + 12, ((Long) ring.get(i)).longValue(), 1e-10);
    }
    nest = true;
View Full Code Here

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

    for (int i = 0; i < ring.size(); i++) {
      assertEquals("ipnext = " + ((Long) ring.get(i)).longValue(),
          i + 12, ((Long) ring.get(i)).longValue(), 1e-10);
    }
    nest = true;
    ring = pt.InRing(nside, iz, phi, dphi, nest);
    for (int i = 0; i < ring.size(); i++) {
      assertEquals("ipnext = " + ((Long) ring.get(i)).longValue(),
          nestComp[i], ((Long) ring.get(i)).longValue(), 1e-10);
    }
    nest = false;
View Full Code Here

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

    nside = 4;
    phi = 2.1598449493429825;
    iz = 8;
    dphi = 0.5890486225480867;
    //    System.out.println(" iz="+iz+" phi="+phi+" dphi="+dphi);
    ring = pt.InRing(nside, iz, phi, dphi, nest);
    //    for (int i = 0; i<ring.size(); i++) {
    //      System.out.println("ipnext = "+ ((Integer)ring.get(i)).intValue());
    //    }
    nest = false;
    nside = 4;
View Full Code Here

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

    nside = 4;
    dphi = 0. * PI;
    iz = 8;
    phi = 2.1598449493429825;
    //    System.out.println(" iz="+iz+" phi="+phi+" dphi="+dphi);
    ring = pt.InRing(nside, iz, phi, dphi, nest);
    //    for (int i = 0; i<ring.size(); i++) {
    //      System.out.println("ipnext = "+ ((Integer)ring.get(i)).intValue());
    //    }
    System.out.println(" test InRing 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.