Changeset 3708
- Timestamp:
- Apr 18, 2005, 2:17:06 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 6 edited
-
src/astro/psTime.c (modified) (2 diffs)
-
src/astro/psTime.h (modified) (2 diffs)
-
src/astronomy/psAstrometry.c (modified) (2 diffs)
-
src/astronomy/psTime.c (modified) (2 diffs)
-
src/astronomy/psTime.h (modified) (2 diffs)
-
test/astronomy/tst_psTime_01.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psTime.c
r3706 r3708 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-04-1 8 23:40:15 $12 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-04-19 00:17:05 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 422 422 } 423 423 424 double psTimeToL ST(psTime *time, double longitude)424 double psTimeToLMST(psTime *time, double longitude) 425 425 { 426 426 psF64 jdTdtDays = 0.0; -
trunk/psLib/src/astro/psTime.h
r3706 r3708 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-04-1 8 23:40:15 $12 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-04-19 00:17:05 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 107 107 ); 108 108 109 /** Convert psTime to Local Mean Sidereal Time (L ST).110 * 111 * Converts psTime at the given longitude to L ST time. If the input time is not in UTC format, then it is109 /** 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 112 112 * converted. 113 113 * 114 114 * @return double: LST Time. 115 115 */ 116 double psTimeToL ST(116 double psTimeToLMST( 117 117 psTime *time, ///< psTime to be converted. 118 118 double longitude ///< Longitude. -
trunk/psLib/src/astronomy/psAstrometry.c
r3682 r3708 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.6 4$ $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 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 230 230 231 231 // XXX: how is this value derived? 232 *(double *)&exp->lst = psTimeToL ST((psTime*)time,observatory->longitude);232 *(double *)&exp->lst = psTimeToLMST((psTime*)time,observatory->longitude); 233 233 *(float *)&exp->positionAngle = 0.0f; // XXX: need input, see Bug #207 234 234 *(float *)&exp->parallacticAngle = 0.0f; // XXX: need input, see Bug #207 -
trunk/psLib/src/astronomy/psTime.c
r3706 r3708 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-04-1 8 23:40:15 $12 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-04-19 00:17:05 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 422 422 } 423 423 424 double psTimeToL ST(psTime *time, double longitude)424 double psTimeToLMST(psTime *time, double longitude) 425 425 { 426 426 psF64 jdTdtDays = 0.0; -
trunk/psLib/src/astronomy/psTime.h
r3706 r3708 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-04-1 8 23:40:15 $12 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-04-19 00:17:05 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 107 107 ); 108 108 109 /** Convert psTime to Local Mean Sidereal Time (L ST).110 * 111 * Converts psTime at the given longitude to L ST time. If the input time is not in UTC format, then it is109 /** 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 112 112 * converted. 113 113 * 114 114 * @return double: LST Time. 115 115 */ 116 double psTimeToL ST(116 double psTimeToLMST( 117 117 psTime *time, ///< psTime to be converted. 118 118 double longitude ///< Longitude. -
trunk/psLib/test/astronomy/tst_psTime_01.c
r3706 r3708 18 18 * M) Convert psTime to tm time 19 19 * N) Convert tm time to psTime 20 * O) Convert psTime time to L ST20 * O) Convert psTime time to LMST 21 21 * P) Free data 22 22 * 23 23 * @author Ross Harman, MHPCC 24 24 * 25 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $26 * @date $Date: 2005-04-1 8 23:40:15$25 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 26 * @date $Date: 2005-04-19 00:17:06 $ 27 27 * 28 28 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 202 202 203 203 204 // Test O - psTime to L ST204 // Test O - psTime to LMST 205 205 printPositiveTestHeader(stdout, "psTime", "Convert psTime time to LST"); 206 206 char *testString2 = "2004-09-10T1:00:00.00Z"; 207 207 psTime* testTime2 = NULL; 208 208 testTime2 = psTimeFromISO(testString2); 209 double dblTime = psTimeToL ST(testTime2, 1);209 double dblTime = psTimeToLMST(testTime2, 1); 210 210 printf("LST (rad): %lf\n", dblTime); 211 211 psFree(testTime2);
Note:
See TracChangeset
for help on using the changeset viewer.
