IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2199


Ignore:
Timestamp:
Oct 26, 2004, 11:57:42 AM (22 years ago)
Author:
gusciora
Message:

Change the case of a few function names.

Location:
trunk/psLib
Files:
5 edited

Legend:

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

    r2197 r2199  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-26 21:24:42 $
     12*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-26 21:57:42 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    152152}
    153153
    154 psSphereTransform* psSphereTransformICRStoEcliptic(psTime time)
     154psSphereTransform* psSphereTransformICRSToEcliptic(psTime time)
    155155{
    156156    struct tm *tmTime = psTimeToTM(&time);
     
    165165}
    166166
    167 psSphereTransform* psSphereTransformEcliptictoICRS(psTime time)
     167psSphereTransform* psSphereTransformEclipticToICRS(psTime time)
    168168{
    169169    struct tm *tmTime = psTimeToTM(&time);
     
    178178}
    179179
    180 psSphereTransform* psSphereTransformICRStoGalatic(void)
     180psSphereTransform* psSphereTransformICRSToGalatic(void)
    181181{
    182182    return (psSphereTransformAlloc(62.6, 282.25, 33.0));
    183183}
    184184
    185 psSphereTransform* psSphereTransformGalatictoICRS(void)
     185psSphereTransform* psSphereTransformGalaticToICRS(void)
    186186{
    187187    return (psSphereTransformAlloc(-62.6, 33.0, 282.25));
  • trunk/psLib/src/astro/psCoord.h

    r2048 r2199  
    1 
    21/** @file  psCoord.h
    32*
     
    1110*  @author George Gusciora, MHPCC
    1211*
    13 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-10-12 01:34:09 $
     12*  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-26 21:57:42 $
    1514*
    1615*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    215214 *  @return psSphereTransform*     transform for ICRS->Ecliptic coordinate systems
    216215 */
    217 psSphereTransform* psSphereTransformICRStoEcliptic(
     216psSphereTransform* psSphereTransformICRSToEcliptic(
    218217    psTime time                        ///< the time for which the resulting transform will be valid
    219218);
     
    224223 *  @return psSphereTransform*     transform for Ecliptic->ICRS coordinate systems
    225224 */
    226 psSphereTransform* psSphereTransformEcliptictoICRS(
     225psSphereTransform* psSphereTransformEclipticToICRS(
    227226    psTime time                        ///< the time for which the resulting transform will be valid
    228227);
     
    232231 *
    233232 */
    234 psSphereTransform* psSphereTransformICRStoGalatic(void);
     233psSphereTransform* psSphereTransformICRSToGalatic(void);
    235234
    236235/** Creates the appropriate transform for converting from Galatic to ICRS
     
    238237 *
    239238 */
    240 psSphereTransform* psSphereTransformGalatictoICRS(void);
     239psSphereTransform* psSphereTransformGalaticToICRS(void);
    241240
    242241/** Projects a spherical coordinate to a linear coordinate system
  • trunk/psLib/src/astronomy/psCoord.c

    r2197 r2199  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-26 21:24:42 $
     12*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-26 21:57:42 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    152152}
    153153
    154 psSphereTransform* psSphereTransformICRStoEcliptic(psTime time)
     154psSphereTransform* psSphereTransformICRSToEcliptic(psTime time)
    155155{
    156156    struct tm *tmTime = psTimeToTM(&time);
     
    165165}
    166166
    167 psSphereTransform* psSphereTransformEcliptictoICRS(psTime time)
     167psSphereTransform* psSphereTransformEclipticToICRS(psTime time)
    168168{
    169169    struct tm *tmTime = psTimeToTM(&time);
     
    178178}
    179179
    180 psSphereTransform* psSphereTransformICRStoGalatic(void)
     180psSphereTransform* psSphereTransformICRSToGalatic(void)
    181181{
    182182    return (psSphereTransformAlloc(62.6, 282.25, 33.0));
    183183}
    184184
    185 psSphereTransform* psSphereTransformGalatictoICRS(void)
     185psSphereTransform* psSphereTransformGalaticToICRS(void)
    186186{
    187187    return (psSphereTransformAlloc(-62.6, 33.0, 282.25));
  • trunk/psLib/src/astronomy/psCoord.h

    r2048 r2199  
    1 
    21/** @file  psCoord.h
    32*
     
    1110*  @author George Gusciora, MHPCC
    1211*
    13 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-10-12 01:34:09 $
     12*  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-26 21:57:42 $
    1514*
    1615*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    215214 *  @return psSphereTransform*     transform for ICRS->Ecliptic coordinate systems
    216215 */
    217 psSphereTransform* psSphereTransformICRStoEcliptic(
     216psSphereTransform* psSphereTransformICRSToEcliptic(
    218217    psTime time                        ///< the time for which the resulting transform will be valid
    219218);
     
    224223 *  @return psSphereTransform*     transform for Ecliptic->ICRS coordinate systems
    225224 */
    226 psSphereTransform* psSphereTransformEcliptictoICRS(
     225psSphereTransform* psSphereTransformEclipticToICRS(
    227226    psTime time                        ///< the time for which the resulting transform will be valid
    228227);
     
    232231 *
    233232 */
    234 psSphereTransform* psSphereTransformICRStoGalatic(void);
     233psSphereTransform* psSphereTransformICRSToGalatic(void);
    235234
    236235/** Creates the appropriate transform for converting from Galatic to ICRS
     
    238237 *
    239238 */
    240 psSphereTransform* psSphereTransformGalatictoICRS(void);
     239psSphereTransform* psSphereTransformGalaticToICRS(void);
    241240
    242241/** Projects a spherical coordinate to a linear coordinate system
  • trunk/psLib/test/astronomy/tst_psCoord.c

    r2108 r2199  
    66*  @author GLG, MHPCC
    77*
    8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-10-14 01:53:44 $
     8*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-10-26 21:57:32 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333                              {test3, 0000, "psPlaneDistortApply()", 0, false},
    3434                              {test4, 0000, "psPSphereTransformApply()", 0, false},
    35                               {test5, 0000, "psSphereTransformICRStoEcliptic()", 0, false},
    36                               {test6, 0000, "psSphereTransformEcliptictoICRS()", 0, false},
    37                               {test7, 0000, "psSphereTransformICRStoGalatic()", 0, false},
    38                               {test8, 0000, "psSphereTransformGalatictoICRS()", 0, false},
     35                              {test5, 0000, "psSphereTransformICRSToEcliptic()", 0, false},
     36                              {test6, 0000, "psSphereTransformEclipticToICRS()", 0, false},
     37                              {test7, 0000, "psSphereTransformICRSToGalatic()", 0, false},
     38                              {test8, 0000, "psSphereTransformGalaticToICRS()", 0, false},
    3939                              {test20, 0000, "psProject()", 0, false},
    4040                              {test21, 0000, "psDeProject()", 0, false},
     
    7676              float y)
    7777{
    78     if (y!= 0.0) {
    79         return(atan(y/x));
    80     } else {
    81         return(0.5 * M_PI);
    82     }
    83     return (0.0);
     78    return((float) atan2((double) x, (double) y));
    8479}
    8580
     
    251246    double T = year / 100.0;
    252247    double phi = -23.452294 + 0.013013 * T + 0.000001639 * T * T - 0.000000503 * T * T * T;
    253     psSphereTransform *myST = psSphereTransformICRStoEcliptic(*now);
     248    psSphereTransform *myST = psSphereTransformICRSToEcliptic(*now);
    254249
    255250    if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
     
    290285    double T = year / 100.0;
    291286    double phi = +23.452294 - 0.013013 * T - 0.000001639 * T * T + 0.000000503 * T * T * T;
    292     psSphereTransform *myST = psSphereTransformEcliptictoICRS(*now);
     287    psSphereTransform *myST = psSphereTransformEclipticToICRS(*now);
    293288
    294289    if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
     
    326321    double Xo = 282.25;
    327322    double xo = 33.0;
    328     psSphereTransform *myST = psSphereTransformICRStoGalatic();
     323    psSphereTransform *myST = psSphereTransformICRSToGalatic();
    329324
    330325    if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
     
    359354    double Xo = 33.0;
    360355    double xo = 282.25;
    361     psSphereTransform *myST = psSphereTransformGalatictoICRS();
     356    psSphereTransform *myST = psSphereTransformGalaticToICRS();
    362357
    363358    if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
Note: See TracChangeset for help on using the changeset viewer.