![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
|
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
![]() |
healpix.core.test
|
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 |
---|
public static final double RADIAN_ARCSECOND
Constructor Detail |
---|
public HealpixTest()
Method Detail |
---|
public void testMODULO()
public void testAngDist() throws Exception
Exception
- the exceptionpublic void testSurfaceTriangle() throws Exception
Exception
- the exceptionpublic void testNside2Npix() throws Exception
Exception
- the exceptionpublic void testNpix2Nside() throws Exception
Exception
- the exceptionpublic void testVec2Ang()
public void testAng2Pix() throws Exception
Exception
- the exceptionpublic void testAng2Vect() throws Exception
Exception
- the exceptionpublic void testringNum() throws Exception
Exception
- the exceptionpublic void testNest2Ring() throws Exception
Exception
- the exceptionpublic void testRing2Nest() throws Exception
Exception
- the exceptionpublic void testNext_In_Line_Nest() throws Exception
Exception
- the exceptionpublic void testinRingCxx() throws Exception
Exception
- the exceptionpublic void testinRing() throws Exception
Exception
- the exceptionpublic void testIntrs_Intrv() throws Exception
Exception
- the exceptionpublic void testPix2Vect_ring() throws Exception
Exception
- the exceptionpublic void testPix2Vect_nest() throws Exception
Exception
- the exceptionpublic void testVect2Pix_ring() throws Exception
Exception
- the exceptionpublic void testVect2Pix_nest() throws Exception
Exception
- the exceptionpublic void testQuery_Strip() throws Exception
Exception
- the exceptionpublic double radToAs(double rad)
rad
- radians
public double radToAm(double rad)
rad
- radians
public void testQuery_disk2() throws Exception
Exception
public void testQuery_Disc() throws Exception
Exception
- the exceptionpublic void testIssue3983() throws Exception
Exception
public void testQuery_Triangle360Nest() throws Exception
Exception
- the exceptionpublic void testQuery_Triangle360Ring() throws Exception
Exception
- the exceptionpublic void testQuery_TriangleNotCrossing360Ring() throws Exception
Exception
- the exceptionpublic void testQuery_TriangleNotCrossing360Nest() throws Exception
Exception
- the exceptionpublic void testQuery_Polygon() throws Exception
Exception
- the exceptionpublic void testMaxResolution() throws Exception
Exception
- the exceptionpublic void test64to32Conversions() throws Exception
Exception
public void testGetNside()
public void printVec(double[] vec)
vec
- the vecpublic void testKeithCover() throws Exception
Exception
- the exceptionpublic void testNeighbours_Nest() throws Exception
Exception
public void testGetParentAt(int childnside, int requirednside) throws Exception
Exception
public void testGetParentAt() throws Exception
Exception
public void testGetChildrenAt() throws Exception
Exception
|
"Built from revision exported" | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |