Examples of neighbours_nest()


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

    long[] test32 = { 40, 44, 45, 34, 35, 33, 38, 36 };
    long[] test3 = { 0, 2, 13, 15, 11, 7, 6, 1 };
    long[] test25 = { 42, 24, 26, 27, 10, 8, 30, 43 };
    //
    ArrayList npixList = new ArrayList();
    npixList = pt.neighbours_nest(nside, ipix);
    for (int i = 0; i < npixList.size(); i++) {
      assertEquals("ip = " + ((Long) npixList.get( i)).longValue(),
          test25[ i], ((Long) npixList.geti)).longValue(), 1e-10);
    }
    ipix = 17;
View Full Code Here

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

      assertEquals("ip = " + ((Long) npixList.get( i)).longValue(),
          test25[ i], ((Long) npixList.geti)).longValue(), 1e-10);
    }
    ipix = 17;

    npixList = pt.neighbours_nest(nside, ipix);
    for (int i = 0; i < npixList.size(); i++) {
      assertEquals("ip = " + ((Long) npixList.get(i)).longValue(),
          test17[i], ((Long) npixList.get(i)).longValue(), 1e-10);
    }
    ipix = 32;
View Full Code Here

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

      assertEquals("ip = " + ((Long) npixList.get(i)).longValue(),
          test17[i], ((Long) npixList.get(i)).longValue(), 1e-10);
    }
    ipix = 32;

    npixList = pt.neighbours_nest(nside, ipix);
    for (int i = 0; i < npixList.size(); i++) {
      assertEquals("ip = " + ((Long) npixList.get(i)).longValue(),
          test32[i], ((Long) npixList.get(i)).longValue(), 1e-10);
    }
    ipix = 3;
View Full Code Here

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

      assertEquals("ip = " + ((Long) npixList.get(i)).longValue(),
          test32[i], ((Long) npixList.get(i)).longValue(), 1e-10);
    }
    ipix = 3;

    npixList = pt.neighbours_nest(nside, ipix);
    for (int i = 0; i < npixList.size(); i++) {
      assertEquals("ip = " + ((Long) npixList.get(i)).longValue(),
          test3[i], ((Long) npixList.get(i)).longValue(), 1e-10);
    }
    System.out.println(" test NeighboursNest 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.