Examples of Nside2Npix()


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

  public void testNside2Npix() {
    int nside = 1;
    int npix = 0;
    PixTools pt = new PixTools();
    npix = (int) pt.Nside2Npix(nside);
    assertEquals("Npix=" + npix, 12, npix, 1e-10);
    nside = 2;
    npix = (int) pt.Nside2Npix(nside);
    assertEquals("Npix=" + npix, 48, npix, 1e-10);
  }
View Full Code Here

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

    int npix = 0;
    PixTools pt = new PixTools();
    npix = (int) pt.Nside2Npix(nside);
    assertEquals("Npix=" + npix, 12, npix, 1e-10);
    nside = 2;
    npix = (int) pt.Nside2Npix(nside);
    assertEquals("Npix=" + npix, 48, npix, 1e-10);
  }

  public void testNpix2Nside() {
    int npix = 12;
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.