IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2005, 10:21:40 AM (21 years ago)
Author:
evanalst
Message:

Update test case for psSphereTransformApply.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psCoord.c

    r3293 r3316  
    66*  @author GLG, MHPCC
    77*
    8 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-02-19 02:55:33 $
     8*  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-02-24 20:21:40 $
    1010*
    1111*  XXX: Must test psSpherePrecess.
     
    2828static psS32 test3( void );
    2929static psS32 testSphereTransformApply1( void );
    30 static psS32 test4b( void );
     30static psS32 testSphereTransformApply2( void );
    3131static psS32 test5( void );
    3232static psS32 test6( void );
     
    4646                              {test3, 0000, "psPlaneDistortApply()", 0, false},
    4747                              {testSphereTransformApply1, 0000, "psPSphereTransformApply()", 0, false},
    48                               {test4b, 0000, "psPSphereTransformApply()", 0, false},
     48                              {testSphereTransformApply2, 0000, "psPSphereTransformApply()", 0, false},
    4949                              {test5, 0000, "psSphereTransformICRSToEcliptic()", 0, false},
    5050                              {test6, 0000, "psSphereTransformEclipticToICRS()", 0, false},
     
    445445    psSphereTransform *myST = psSphereTransformAlloc(0.0, 0.0, 0.0);
    446446
    447     in->r = DEG_TO_RAD(45.0);
    448     in->d = DEG_TO_RAD(30.0);
    449     in->rErr = 0.0;
    450     in->dErr = 0.0;
    451 
    452447    for (float r=0.0;r<180.0;r+=DEG_INC) {
    453448        for (float d=0.0;d<90.0;d+=DEG_INC) {
     
    505500
    506501/******************************************************************************
    507 test4b(): This test verifies that psSphereTransformApply() works properly.  We
    508 create two psSphereTransforms: a forward transform and a reverse transform
    509 (which is the mathematical inverse of the forward transform).  We apply both
    510 transforms to several spherical coordinates and ensure that the original input
    511 coordinate is obtained after applying both transforms.
     502testSphereTransformApply2(): This test verifies that psSphereTransformApply()
     503works properly.  We create two psSphereTransforms: a forward transform and a
     504reverse transform (which is the mathematical inverse of the forward transform).
     505We apply both transforms to several spherical coordinates and ensure that the
     506original input coordinate is obtained after applying both transforms.
    512507 
    513508XXX: We currently test the alpha and delta offsets independently.  Attempts to
     
    518513 *****************************************************************************/
    519514#define ERROR_PERCENT 0.01
    520 psS32 test4b( void )
     515psS32 testSphereTransformApply2( void )
    521516{
    522517    psS32 testStatus = 0;
Note: See TracChangeset for help on using the changeset viewer.