IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5444 for trunk/psLib/src/astro


Ignore:
Timestamp:
Oct 24, 2005, 2:38:00 PM (21 years ago)
Author:
drobbin
Message:

Fixed psSphereOps except for Galactic transformation at the pole.

Location:
trunk/psLib/src/astro
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psSphereOps.c

    r5437 r5444  
    88 *  @author Dave Robbins, MHPCC
    99 *
    10  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-10-21 02:14:02 $
     10 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-10-25 00:38:00 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    135135                                 0.0);
    136136
     137    /*    psSphereRot *test = psSphereRotICRSToGalactic();
     138        if (fabs(coord->d-DEG_TO_RAD(27.1283)) < 0.0001 && transform->q0 == test->q0 &&
     139            transform->q1 == test->q1 && transform->q2 == test->q2 && transform->q3 == test->q3){
     140            printf("\ncoordquat = %lf,%lf,%lf,%lf\n", coordQuat->q0, coordQuat->q1, coordQuat->q2,
     141             coordQuat->q3);
     142    //        coordQuat->q1 += -1.0;
     143            test->q3 = - test->q3;
     144            *(psSphereRot**)&transform = test;
     145        }
     146        psFree(test);
     147    */
    137148    // Inserted by PAP
    138149    psSphereRot *conjugate = psSphereRotConjugate(NULL, transform);
  • trunk/psLib/src/astro/psSphereOps.h

    r5437 r5444  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-10-21 02:14:02 $
     9 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-10-25 00:38:00 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4545 */
    4646typedef enum {
    47     PS_SPHERICAL,               ///< offset corresponds to an angular offset
    48     PS_LINEAR                   ///< offset corresponds to a linear offset
     47    PS_SPHERICAL,                      ///< offset corresponds to an angular offset
     48    PS_LINEAR                          ///< offset corresponds to a linear offset
    4949} psSphereOffsetMode;
    5050
     
    5555 */
    5656typedef enum {
    57     PS_ARCSEC,                  ///< Arcseconds
    58     PS_ARCMIN,                  ///< Arcminutes
    59     PS_DEGREE,                  ///< Degrees
    60     PS_RADIAN                   ///< Radians
     57    PS_ARCSEC,                         ///< Arcseconds
     58    PS_ARCMIN,                         ///< Arcminutes
     59    PS_DEGREE,                         ///< Degrees
     60    PS_RADIAN                          ///< Radians
    6161} psSphereOffsetUnit;
    6262
     
    6868
    6969psSphereRot* psSphereRotAlloc(
    70     double alphaP,                      ///< north pole latitude
    71     double deltaP,                      ///< north pole longitude
    72     double phiP                         ///< defines the longitude in the input system of the equatorial intersection between the two systems (e.g, the first point of Ares).
     70    double alphaP,                     ///< north pole latitude
     71    double deltaP,                     ///< north pole longitude
     72    double phiP                        ///< defines the longitude in the input system of the equatorial intersection between the two systems (e.g, the first point of Ares).
    7373);
    7474
     
    145145    double deltaP,                      ///< north pole longitude
    146146    double phiP                         ///< defines the longitude in the input system of the equatorial intersection between the two systems (e.g, the first point of Ares).
    147 );
    148 
    149 /** Converts a psCube to a psSphere
    150  *
    151  *  @return psSphere*       New psSphere that is equivalent to the input psCube
    152  *
    153  */
    154 psSphere* psCubeToSphere(
    155     const psCube* cube                 ///< a cubic coordinate to convert
    156 );
    157 
    158 /** Converts a psSphere to a psCube
    159  *
    160  *  @return psCube*       New psCube that is equivalent to the input psSphere
    161  *
    162  */
    163 psCube* psSphereToCube(
    164     const psSphere* sphere             ///< a spherical coordinate to convert
    165147);
    166148
Note: See TracChangeset for help on using the changeset viewer.