IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3708


Ignore:
Timestamp:
Apr 18, 2005, 2:17:06 PM (21 years ago)
Author:
evanalst
Message:

Change function name psTimeToLST to psTimeToLMST. (SDR-13)

Location:
trunk/psLib
Files:
6 edited

Legend:

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

    r3706 r3708  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-04-18 23:40:15 $
     12 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-04-19 00:17:05 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    422422}
    423423
    424 double psTimeToLST(psTime *time, double longitude)
     424double psTimeToLMST(psTime *time, double longitude)
    425425{
    426426    psF64  jdTdtDays    =  0.0;
  • trunk/psLib/src/astro/psTime.h

    r3706 r3708  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-04-18 23:40:15 $
     12 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-04-19 00:17:05 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    107107);
    108108
    109 /** Convert psTime to Local Mean Sidereal Time (LST).
    110  *
    111  *  Converts psTime at the given longitude to LST time. If the input time is not in UTC format, then it is
     109/** Convert psTime to Local Mean Sidereal Time (LMST).
     110 *
     111 *  Converts psTime at the given longitude to LMST time. If the input time is not in UTC format, then it is
    112112 *  converted.
    113113 *
    114114 *  @return  double: LST Time.
    115115 */
    116 double psTimeToLST(
     116double psTimeToLMST(
    117117    psTime *time,                       ///< psTime to be converted.
    118118    double longitude                    ///< Longitude.
  • trunk/psLib/src/astronomy/psAstrometry.c

    r3682 r3708  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-04-07 20:27:41 $
     10 *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-04-19 00:17:05 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    230230
    231231    // XXX: how is this value derived?
    232     *(double *)&exp->lst = psTimeToLST((psTime*)time,observatory->longitude);
     232    *(double *)&exp->lst = psTimeToLMST((psTime*)time,observatory->longitude);
    233233    *(float *)&exp->positionAngle = 0.0f; // XXX: need input, see Bug #207
    234234    *(float *)&exp->parallacticAngle = 0.0f; // XXX: need input, see Bug #207
  • trunk/psLib/src/astronomy/psTime.c

    r3706 r3708  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-04-18 23:40:15 $
     12 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-04-19 00:17:05 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    422422}
    423423
    424 double psTimeToLST(psTime *time, double longitude)
     424double psTimeToLMST(psTime *time, double longitude)
    425425{
    426426    psF64  jdTdtDays    =  0.0;
  • trunk/psLib/src/astronomy/psTime.h

    r3706 r3708  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-04-18 23:40:15 $
     12 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-04-19 00:17:05 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    107107);
    108108
    109 /** Convert psTime to Local Mean Sidereal Time (LST).
    110  *
    111  *  Converts psTime at the given longitude to LST time. If the input time is not in UTC format, then it is
     109/** Convert psTime to Local Mean Sidereal Time (LMST).
     110 *
     111 *  Converts psTime at the given longitude to LMST time. If the input time is not in UTC format, then it is
    112112 *  converted.
    113113 *
    114114 *  @return  double: LST Time.
    115115 */
    116 double psTimeToLST(
     116double psTimeToLMST(
    117117    psTime *time,                       ///< psTime to be converted.
    118118    double longitude                    ///< Longitude.
  • trunk/psLib/test/astronomy/tst_psTime_01.c

    r3706 r3708  
    1818 *     M) Convert psTime to tm time
    1919 *     N) Convert tm time to psTime
    20  *     O) Convert psTime time to LST
     20 *     O) Convert psTime time to LMST
    2121 *     P) Free data
    2222 *
    2323 *  @author  Ross Harman, MHPCC
    2424 *
    25  *  @version $Revision: 1.23 $  $Name: not supported by cvs2svn $
    26  *  @date  $Date: 2005-04-18 23:40:15 $
     25 *  @version $Revision: 1.24 $  $Name: not supported by cvs2svn $
     26 *  @date  $Date: 2005-04-19 00:17:06 $
    2727 *
    2828 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    202202
    203203
    204     // Test O - psTime to LST
     204    // Test O - psTime to LMST
    205205    printPositiveTestHeader(stdout, "psTime", "Convert psTime time to LST");
    206206    char *testString2 = "2004-09-10T1:00:00.00Z";
    207207    psTime* testTime2 = NULL;
    208208    testTime2 = psTimeFromISO(testString2);
    209     double dblTime = psTimeToLST(testTime2, 1);
     209    double dblTime = psTimeToLMST(testTime2, 1);
    210210    printf("LST (rad): %lf\n", dblTime);
    211211    psFree(testTime2);
Note: See TracChangeset for help on using the changeset viewer.