NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


healpix.core.test
Class HealpixTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by healpix.core.test.HealpixTest
All Implemented Interfaces:
junit.framework.Test

public class HealpixTest
extends junit.framework.TestCase

Test suite for Healpix

Author:
ejoliet

Field Summary
static double RADIAN_ARCSECOND
           
 
Constructor Summary
HealpixTest()
           
 
Method Summary
 void printVec(double[] vec)
          Prints the vec.
 double radToAm(double rad)
          Converts radians to arcmin.
 double radToAs(double rad)
          Converts radians to arcsecs.
 void test64to32Conversions()
          Higher resolution to lesser conversions test
 void testAng2Pix()
          Test ang2 pix.
 void testAng2Vect()
          Test ang2 vect.
 void testAngDist()
          Test ang dist.
 void testGetChildrenAt()
           
 void testGetNside()
          Test get nside.
 void testGetParentAt()
           
 void testGetParentAt(int childnside, int requirednside)
          public void testAllAngVec() throws Exception { HealpixIndex heal = new HealpixIndex(512); for (double theta=0; theta < constants.pi; theta+=0.1) { for (double phi=0; phi < 2*constants.pi; phi+=0.1) { angularposition pos = new angularposition(theta,phi); // spatialvector vec2 = heal.vector(theta, phi); spatialvector vec = (spatialvector)heal.ang2vec(theta, phi); double[] ang = heal.vect2ang(vec); "Ang theta is incorrect" ,theta,ang[0] ); "Ang phi is incorrect" ,phi,ang[1] ); } } }
 void testinRing()
          Test in ring.
 void testinRingCxx()
          Test in ring cxx.
 void testIntrs_Intrv()
          Test intrs_ intrv.
 void testIssue3983()
           
 void testKeithCover()
          Test keith cover.
 void testMaxResolution()
          Test max resolution.
 void testMODULO()
          Test modulo.
 void testNeighbours_Nest()
          tests Neighbour's method for nest schema of the pixelization
 void testNest2Ring()
          Test nest2 ring.
 void testNext_In_Line_Nest()
          Test next_ in_ line_ nest.
 void testNpix2Nside()
          Test npix2 nside.
 void testNside2Npix()
          Test nside2 npix.
 void testPix2Vect_nest()
          Test pix2 vect_nest.
 void testPix2Vect_ring()
          Test pix2 vect_ring.
 void testQuery_Disc()
          Test query_ disc.
 void testQuery_disk2()
          test Query_disk check for consistency in the query for RING/NESTED
 void testQuery_Polygon()
          Test query_ polygon.
 void testQuery_Strip()
          Test query_ strip.
 void testQuery_Triangle360Nest()
          Test query_ triangle360 nest.
 void testQuery_Triangle360Ring()
          Test query_ triangle360 ring.
 void testQuery_TriangleNotCrossing360Nest()
          Test query_ triangle not crossing360 nest.
 void testQuery_TriangleNotCrossing360Ring()
          Test query_ triangle not crossing360 ring.
 void testRing2Nest()
          Test ring2 nest.
 void testringNum()
          Test ring num.
 void testSurfaceTriangle()
          Test surface triangle.
 void testVec2Ang()
          Test vec2 ang.
 void testVect2Pix_nest()
          Test vect2 pix_nest.
 void testVect2Pix_ring()
          Test vect2 pix_ring.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RADIAN_ARCSECOND

public static final double RADIAN_ARCSECOND
See Also:
Constant Field Values
Constructor Detail

HealpixTest

public HealpixTest()
Method Detail

testMODULO

public void testMODULO()
Test modulo.


testAngDist

public void testAngDist()
                 throws Exception
Test ang dist.

Throws:
Exception - the exception

testSurfaceTriangle

public void testSurfaceTriangle()
                         throws Exception
Test surface triangle.

Throws:
Exception - the exception

testNside2Npix

public void testNside2Npix()
                    throws Exception
Test nside2 npix.

Throws:
Exception - the exception

testNpix2Nside

public void testNpix2Nside()
                    throws Exception
Test npix2 nside.

Throws:
Exception - the exception

testVec2Ang

public void testVec2Ang()
Test vec2 ang.


testAng2Pix

public void testAng2Pix()
                 throws Exception
Test ang2 pix.

Throws:
Exception - the exception

testAng2Vect

public void testAng2Vect()
                  throws Exception
Test ang2 vect.

Throws:
Exception - the exception

testringNum

public void testringNum()
                 throws Exception
Test ring num.

Throws:
Exception - the exception

testNest2Ring

public void testNest2Ring()
                   throws Exception
Test nest2 ring.

Throws:
Exception - the exception

testRing2Nest

public void testRing2Nest()
                   throws Exception
Test ring2 nest.

Throws:
Exception - the exception

testNext_In_Line_Nest

public void testNext_In_Line_Nest()
                           throws Exception
Test next_ in_ line_ nest.

Throws:
Exception - the exception

testinRingCxx

public void testinRingCxx()
                   throws Exception
Test in ring cxx.

Throws:
Exception - the exception

testinRing

public void testinRing()
                throws Exception
Test in ring.

Throws:
Exception - the exception

testIntrs_Intrv

public void testIntrs_Intrv()
                     throws Exception
Test intrs_ intrv.

Throws:
Exception - the exception

testPix2Vect_ring

public void testPix2Vect_ring()
                       throws Exception
Test pix2 vect_ring.

Throws:
Exception - the exception

testPix2Vect_nest

public void testPix2Vect_nest()
                       throws Exception
Test pix2 vect_nest.

Throws:
Exception - the exception

testVect2Pix_ring

public void testVect2Pix_ring()
                       throws Exception
Test vect2 pix_ring.

Throws:
Exception - the exception

testVect2Pix_nest

public void testVect2Pix_nest()
                       throws Exception
Test vect2 pix_nest.

Throws:
Exception - the exception

testQuery_Strip

public void testQuery_Strip()
                     throws Exception
Test query_ strip.

Throws:
Exception - the exception

radToAs

public double radToAs(double rad)
Converts radians to arcsecs.

Parameters:
rad - radians
Returns:
arcseconds

radToAm

public double radToAm(double rad)
Converts radians to arcmin.

Parameters:
rad - radians
Returns:
arcmin

testQuery_disk2

public void testQuery_disk2()
                     throws Exception
test Query_disk check for consistency in the query for RING/NESTED

Throws:
Exception

testQuery_Disc

public void testQuery_Disc()
                    throws Exception
Test query_ disc.

Throws:
Exception - the exception

testIssue3983

public void testIssue3983()
                   throws Exception
Throws:
Exception

testQuery_Triangle360Nest

public void testQuery_Triangle360Nest()
                               throws Exception
Test query_ triangle360 nest.

Throws:
Exception - the exception

testQuery_Triangle360Ring

public void testQuery_Triangle360Ring()
                               throws Exception
Test query_ triangle360 ring.

Throws:
Exception - the exception

testQuery_TriangleNotCrossing360Ring

public void testQuery_TriangleNotCrossing360Ring()
                                          throws Exception
Test query_ triangle not crossing360 ring.

Throws:
Exception - the exception

testQuery_TriangleNotCrossing360Nest

public void testQuery_TriangleNotCrossing360Nest()
                                          throws Exception
Test query_ triangle not crossing360 nest.

Throws:
Exception - the exception

testQuery_Polygon

public void testQuery_Polygon()
                       throws Exception
Test query_ polygon.

Throws:
Exception - the exception

testMaxResolution

public void testMaxResolution()
                       throws Exception
Test max resolution.

Throws:
Exception - the exception

test64to32Conversions

public void test64to32Conversions()
                           throws Exception
Higher resolution to lesser conversions test

Throws:
Exception

testGetNside

public void testGetNside()
Test get nside.


printVec

public void printVec(double[] vec)
Prints the vec.

Parameters:
vec - the vec

testKeithCover

public void testKeithCover()
                    throws Exception
Test keith cover.

Throws:
Exception - the exception

testNeighbours_Nest

public void testNeighbours_Nest()
                         throws Exception
tests Neighbour's method for nest schema of the pixelization

Throws:
Exception

testGetParentAt

public void testGetParentAt(int childnside,
                            int requirednside)
                     throws Exception
public void testAllAngVec() throws Exception { HealpixIndex heal = new HealpixIndex(512); for (double theta=0; theta < constants.pi; theta+=0.1) { for (double phi=0; phi < 2*constants.pi; phi+=0.1) { angularposition pos = new angularposition(theta,phi); // spatialvector vec2 = heal.vector(theta, phi); spatialvector vec = (spatialvector)heal.ang2vec(theta, phi); double[] ang = heal.vect2ang(vec); "Ang theta is incorrect" ,theta,ang[0] ); "Ang phi is incorrect" ,phi,ang[1] ); } } }

Throws:
Exception

testGetParentAt

public void testGetParentAt()
                     throws Exception
Throws:
Exception

testGetChildrenAt

public void testGetChildrenAt()
                       throws Exception
Throws:
Exception

"Built from revision exported"

Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650