Changeset 5466 for trunk/psLib/src/astro
- Timestamp:
- Nov 2, 2005, 6:31:22 PM (21 years ago)
- Location:
- trunk/psLib/src/astro
- Files:
-
- 3 edited
-
psEarthOrientation.c (modified) (3 diffs)
-
psEarthOrientation.h (modified) (2 diffs)
-
psTime.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psEarthOrientation.c
r5455 r5466 9 9 * @author Robert Daniel DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-11-0 2 01:07:25$11 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-11-03 04:31:22 $ 13 13 * 14 14 * Copyright 2005 Maui High Performance Computing Center, University of Hawaii … … 288 288 } 289 289 290 290 /* 291 291 double psEOC_ParallaxFactor(const psSphere *coords, 292 292 const psTime *time) 293 293 { 294 295 294 295 296 296 return NAN; 297 297 } 298 */ 298 299 299 300 psEarthPole *psEOC_PrecessionModel(const psTime *time) … … 455 456 psSphereRot* psSphereRot_TEOtoCEO(const psTime *time) 456 457 { 457 return NULL; 458 PS_ASSERT_PTR_NON_NULL(time,NULL); 459 psTime *in = psTimeAlloc(time->type); 460 *in = *time; 461 if (in->type != PS_TIME_UT1) { 462 in = psTimeConvert(in, PS_TIME_UT1); 463 } 464 double T = (double)(in->sec) + (double)(in->nsec / 1e9); 465 printf("\nThe Value of T is = %.13g\n", T); 466 T += -2451545.0; 467 printf("\nThe Value of T is = %.13g\n", T); 468 double theta = 2.0 * M_PI * (0.7790572732640 + 1.00273781191135448 * T); 469 psSphereRot *out = psSphereRotInvert(theta, 0.0, 0.0); 470 471 psFree(in); 472 return out; 458 473 } 459 474 -
trunk/psLib/src/astro/psEarthOrientation.h
r5455 r5466 9 9 * @author Robert Daniel DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-11-0 2 01:07:25$11 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-11-03 04:31:22 $ 13 13 * 14 14 * Copyright 2005 Maui High Performance Computing Center, University of Hawaii … … 77 77 ); 78 78 79 /** Calculate the parallax factor for the given position and time. 79 80 /* Calculate the parallax factor for the given position and time. 80 81 * 81 82 * @return double: the calculated parallax factor. 82 83 */ 84 /* 83 85 double psEOC_ParallaxFactor( 84 86 const psSphere *coords, ///< specified position 85 87 const psTime *time ///< specified time 86 88 ); 89 */ 87 90 88 91 /** Calculates the components of the rotation between the CEO and GCRS frames, X, Y, -
trunk/psLib/src/astro/psTime.h
r5087 r5466 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2005- 09-21 21:37:20$13 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-11-03 04:31:22 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 139 139 ); 140 140 141 /** Convert psTime to UTC or TAItime.142 * 143 * Converts psTime to UTC or TAItime based on the psTimeType argument.141 /** Convert psTime to UTC, TAI, UT1, or TT time. 142 * 143 * Converts psTime to UTC, TAI, UT1, or TT time based on the psTimeType argument. 144 144 * 145 145 * @return psTime*: Pointer to psTime.
Note:
See TracChangeset
for help on using the changeset viewer.
