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

Deprecated.

public class HealpixTest
extends junit.framework.TestCase

Test suite for Healpix

Author:
ejoliet

Field Summary
static double RADIAN_ARCSECOND
          Deprecated.  
 
Constructor Summary
HealpixTest()
          Deprecated.  
 
Method Summary
 void DISABLEDtestQuery_Disc()
          Deprecated. Test query_ disc.
 void printVec(double[] vec)
          Deprecated. Prints the vec.
 double radToAm(double rad)
          Deprecated. Converts radians to arcmin.
 double radToAs(double rad)
          Deprecated. Converts radians to arcsecs.
 void test64to32Conversions()
          Deprecated. Higher resolution to lesser conversions test
 void testAng2Pix()
          Deprecated. Test ang2 pix.
 void testAng2Vect()
          Deprecated. Test ang2 vect.
 void testAngDist()
          Deprecated. Test ang dist.
 void testDroegeBigSmall()
          Deprecated.  
 void testGetChildrenAt()
          Deprecated.  
 void testGetNside()
          Deprecated. Test get nside.
 void testGetParentAt()
          Deprecated.  
 void testGetParentAt(int childnside, int requirednside)
          Deprecated. 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); assertEquals("Ang theta is incorrect",theta,ang[0] ); assertEquals("Ang phi is incorrect",phi,ang[1] ); } } }
 void testIssue3983()
          Deprecated.  
 void testKeithCover()
          Deprecated. Test keith cover.
 void testMaxResolution()
          Deprecated. Test max resolution.
 void testMODULO()
          Deprecated. Test modulo.
 void testNeighbours_Nest()
          Deprecated. tests Neighbour's method for nest schema of the pixelization
 void testNest2Ring()
          Deprecated. Test nest2 ring.
 void testNpix2Nside()
          Deprecated. Test npix2 nside.
 void testNside2Npix()
          Deprecated. Test nside2 npix.
 void testPix2Vect_nest()
          Deprecated. Test pix2 vect_nest.
 void testPix2Vect_ring()
          Deprecated. Test pix2 vect_ring.
 void testQuery_DiscFernique()
          Deprecated.  
 void testQuery_DiscFernique2()
          Deprecated. still a problem in the poles ..
 void testQuery_disk2()
          Deprecated. test Query_disk check for consistency in the query for RING/NESTED
 void testQuery_Polygon()
          Deprecated. Test query_ polygon.
 void testQuery_Strip()
          Deprecated. Test query_ strip.
 void testQuery_Triangle360Nest()
          Deprecated. Test query_ triangle360 nest.
 void testQuery_Triangle360Ring()
          Deprecated. Test query_ triangle360 ring.
 void testQuery_TriangleNotCrossing360Nest()
          Deprecated. Test query_ triangle not crossing360 nest.
 void testQuery_TriangleNotCrossing360Ring()
          Deprecated. Test query_ triangle not crossing360 ring.
 void testQueryDisck15()
          Deprecated. specific problem
 void testRing2Nest()
          Deprecated. Test ring2 nest.
 void testringNum()
          Deprecated. Test ring num.
 void testSpecificSmallLarge()
          Deprecated.  
 void testSurfaceTriangle()
          Deprecated. Test surface triangle.
 void testVec2Ang()
          Deprecated. Test vec2 ang.
 void testVect2Pix_nest()
          Deprecated. Test vect2 pix_nest.
 void testVect2Pix_ring()
          Deprecated. 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, failNotEquals, failNotSame, failSame, format
 
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
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

HealpixTest

public HealpixTest()
Deprecated. 
Method Detail

testMODULO

public void testMODULO()
Deprecated. 
Test modulo.


testAngDist

public void testAngDist()
                 throws Exception
Deprecated. 
Test ang dist.

Throws:
Exception - the exception

testSurfaceTriangle

public void testSurfaceTriangle()
                         throws Exception
Deprecated. 
Test surface triangle.

Throws:
Exception - the exception

testNside2Npix

public void testNside2Npix()
                    throws Exception
Deprecated. 
Test nside2 npix.

Throws:
Exception - the exception

testNpix2Nside

public void testNpix2Nside()
                    throws Exception
Deprecated. 
Test npix2 nside.

Throws:
Exception - the exception

testVec2Ang

public void testVec2Ang()
Deprecated. 
Test vec2 ang.


testAng2Pix

public void testAng2Pix()
                 throws Exception
Deprecated. 
Test ang2 pix.

Throws:
Exception - the exception

testAng2Vect

public void testAng2Vect()
                  throws Exception
Deprecated. 
Test ang2 vect.

Throws:
Exception - the exception

testringNum

public void testringNum()
                 throws Exception
Deprecated. 
Test ring num.

Throws:
Exception - the exception

testNest2Ring

public void testNest2Ring()
                   throws Exception
Deprecated. 
Test nest2 ring.

Throws:
Exception - the exception

testRing2Nest

public void testRing2Nest()
                   throws Exception
Deprecated. 
Test ring2 nest.

Throws:
Exception - the exception

testPix2Vect_ring

public void testPix2Vect_ring()
                       throws Exception
Deprecated. 
Test pix2 vect_ring.

Throws:
Exception - the exception

testPix2Vect_nest

public void testPix2Vect_nest()
                       throws Exception
Deprecated. 
Test pix2 vect_nest.

Throws:
Exception - the exception

testVect2Pix_ring

public void testVect2Pix_ring()
                       throws Exception
Deprecated. 
Test vect2 pix_ring.

Throws:
Exception - the exception

testVect2Pix_nest

public void testVect2Pix_nest()
                       throws Exception
Deprecated. 
Test vect2 pix_nest.

Throws:
Exception - the exception

testQuery_Strip

public void testQuery_Strip()
                     throws Exception
Deprecated. 
Test query_ strip.

Throws:
Exception - the exception

radToAs

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

Parameters:
rad - radians
Returns:
arcseconds

radToAm

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

Parameters:
rad - radians
Returns:
arcmin

testQuery_disk2

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

Throws:
Exception

DISABLEDtestQuery_Disc

public void DISABLEDtestQuery_Disc()
                            throws Exception
Deprecated. 
Test query_ disc.

Throws:
Exception - the exception

testQueryDisck15

public void testQueryDisck15()
                      throws Exception
Deprecated. 
specific problem

Throws:
Exception

testQuery_DiscFernique2

public void testQuery_DiscFernique2()
                             throws Exception
Deprecated. 
still a problem in the poles ..

Throws:
Exception

testQuery_DiscFernique

public void testQuery_DiscFernique()
                            throws Exception
Deprecated. 
Throws:
Exception

testIssue3983

public void testIssue3983()
                   throws Exception
Deprecated. 
Throws:
Exception

testQuery_Triangle360Nest

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

Throws:
Exception - the exception

testQuery_Triangle360Ring

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

Throws:
Exception - the exception

testQuery_TriangleNotCrossing360Ring

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

Throws:
Exception - the exception

testQuery_TriangleNotCrossing360Nest

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

Throws:
Exception - the exception

testQuery_Polygon

public void testQuery_Polygon()
                       throws Exception
Deprecated. 
Test query_ polygon.

Throws:
Exception - the exception

testMaxResolution

public void testMaxResolution()
                       throws Exception
Deprecated. 
Test max resolution.

Throws:
Exception - the exception

test64to32Conversions

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

Throws:
Exception

testGetNside

public void testGetNside()
                  throws Exception
Deprecated. 
Test get nside.

Throws:
Exception

printVec

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

Parameters:
vec - the vec

testKeithCover

public void testKeithCover()
                    throws Exception
Deprecated. 
Test keith cover.

Throws:
Exception - the exception

testNeighbours_Nest

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

Throws:
Exception

testGetParentAt

public void testGetParentAt(int childnside,
                            int requirednside)
                     throws Exception
Deprecated. 
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); assertEquals("Ang theta is incorrect",theta,ang[0] ); assertEquals("Ang phi is incorrect",phi,ang[1] ); } } }

Throws:
Exception

testGetParentAt

public void testGetParentAt()
                     throws Exception
Deprecated. 
Throws:
Exception

testGetChildrenAt

public void testGetChildrenAt()
                       throws Exception
Deprecated. 
Throws:
Exception

testSpecificSmallLarge

public void testSpecificSmallLarge()
                            throws Exception
Deprecated. 
Throws:
Exception

testDroegeBigSmall

public void testDroegeBigSmall()
                        throws Exception
Deprecated. 
Throws:
Exception

"Built from revision exported"