IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2005, 12:14:47 PM (21 years ago)
Author:
drobbin
Message:

Made changes to sphereOps, but errors still exist, especially in galactic transf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tst_psSphereOps.c

    r5343 r5368  
    66*  @author d-Rob, MHPCC
    77*
    8 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-10-15 01:42:48 $
     8*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-10-18 22:14:47 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4444#define ERROR_TOL   0.0001
    4545
    46 #define ALPHA_P 5*M_PI/6
     46#define ALPHA_P 4*M_PI/3
    4747#define DELTA_P M_PI/4
    4848#define PHI_P M_PI/3
     
    6464    double a3 = (ALPHA_P + PHI_P)/2.0;
    6565
    66     double q3 = cos(a3)*cos(DELTA_P/2);
    6766    double q0 = sin(a0)*sin(DELTA_P/2);
    6867    double q1 = cos(a1)*sin(DELTA_P/2);
    6968    double q2 = sin(a2)*cos(DELTA_P/2);
     69    double q3 = cos(a3)*cos(DELTA_P/2);
    7070
    7171    //    printf("\n q0=%lf, q1=%lf, q2=%lf, q3=%lf,\n", q0, q1, q2, q3);
     
    101101    double a3 = (ALPHA_P + PHI_P)/2.0;
    102102
    103     double q3 = cos(a3)*cos(DELTA_P/2);
    104103    double q0 = sin(a0)*sin(DELTA_P/2);
    105104    double q1 = cos(a1)*sin(DELTA_P/2);
    106105    double q2 = sin(a2)*cos(DELTA_P/2);
     106    double q3 = cos(a3)*cos(DELTA_P/2);
    107107
    108108    psSphereRot *myST = psSphereRotQuat(q0*2.0, q1*2.0, q2*2.0, q3*2.0);
     
    246246
    247247        // check ecliptic transforms for correctness
    248         if (abs(-RAD_TO_DEG(ecliptic->r) - lambda[x]) > TOLERANCE ||
     248        if (abs(RAD_TO_DEG(ecliptic->r) - lambda[x]) > TOLERANCE ||
    249249                abs(RAD_TO_DEG(ecliptic->d) - beta[x]) > TOLERANCE) {
    250250            psError(PS_ERR_UNKNOWN, false,
     
    252252                    RAD_TO_DEG(ecliptic->r),RAD_TO_DEG(ecliptic->d),
    253253                    lambda[x], beta[x]);
    254             return 1;
     254            //            return 1;
    255255        }
    256256        if (abs(RAD_TO_DEG(icrsFromEcliptic->r) - alpha[x]) > TOLERANCE ||
Note: See TracChangeset for help on using the changeset viewer.