Package gov.fnal.eag.healpix

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


  public void testNext_In_Line_Nest() throws Exception {
    PixTools pt = new PixTools();
    int ipix = 0;
    int nside = 2;
    int ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 23, ipnext, 1e-10);
    ipix = 1;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 6, ipnext, 1e-10);
View Full Code Here


    int nside = 2;
    int ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 23, ipnext, 1e-10);
    ipix = 1;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 6, ipnext, 1e-10);
    ipix = 4;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 27, ipnext, 1e-10);
View Full Code Here

    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 6, ipnext, 1e-10);
    ipix = 4;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 27, ipnext, 1e-10);
    ipix = 27;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 8, ipnext, 1e-10);
View Full Code Here

    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 27, ipnext, 1e-10);
    ipix = 27;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 8, ipnext, 1e-10);
    ipix = 12;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 19, ipnext, 1e-10);
View Full Code Here

    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 8, ipnext, 1e-10);
    ipix = 12;
    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 19, ipnext, 1e-10);
    ipix = 118;
    nside = 4;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext = " + ipnext, 117, ipnext, 1e-10);
View Full Code Here

    nside = 2;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext=" + ipnext, 19, ipnext, 1e-10);
    ipix = 118;
    nside = 4;
    ipnext = (int) pt.next_in_line_nest(nside, ipix);
    assertEquals("ipnext = " + ipnext, 117, ipnext, 1e-10);
    System.out.println(" test next_in_line_nest is done");
  }

  public void testInRing() throws Exception {
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.