Changeset 5466 for trunk/psLib/test/astro/tst_psEarthOrientation.c
- Timestamp:
- Nov 2, 2005, 6:31:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tst_psEarthOrientation.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tst_psEarthOrientation.c
r5455 r5466 5 5 * @author d-Rob, MHPCC 6 6 * 7 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-11-0 2 01:07:25$7 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-11-03 04:31:22 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 14 14 #include "pslib_strict.h" 15 15 16 static psS32 testEOCParallax(void);16 //static psS32 testEOCParallax(void); 17 17 static psS32 testAberration(void); 18 18 static psS32 testGravityDeflect(void); … … 20 20 static psS32 testEOCPolar(void); 21 21 static psS32 testEOCNutation(void); 22 static psS32 testSphereRotTransforms(void); 22 static psS32 testSphereRot_TEOtoCEO(void); 23 static psS32 testSphereRot_CEOtoGCRS(void); 24 static psS32 testSphereRot_ITRStoTEO(void); 23 25 24 26 testDescription tests[] = { 25 27 {testAberration, 666, "psAberration()", 0, false}, 26 28 {testGravityDeflect, 667, "psGravityDeflect()", 0, false}, 27 {testEOCParallax, 668, "psEOCParallax()", 0, false},29 // {testEOCParallax, 668, "psEOCParallax()", 0, false}, 28 30 {testEOCPrecession, 669, "psEOCPrecession()", 0, false}, 29 31 {testEOCPolar, 670, "psEOCPolar()", 0, false}, 30 32 {testEOCNutation, 671, "psEOCNutation()", 0, false}, 31 {testSphereRotTransforms, 672, "psSphereRotTransforms()", 0, false}, 33 {testSphereRot_TEOtoCEO, 672, "psSphereRot_TEOtoCEO()", 0, false}, 34 {testSphereRot_CEOtoGCRS, 673, "psSphereRot_CEOtoGCRS()", 0, false}, 35 {testSphereRot_ITRStoTEO, 674, "psSphereRRot_ITRStoTEO()", 0, false}, 32 36 {NULL} 33 37 }; … … 37 41 psLogSetLevel( PS_LOG_INFO ); 38 42 39 return ( ! runTestSuite( stderr, "psEarthOrientation", tests, argc, argv ) ); 43 // Initialize library internal structures 44 psLibInit("pslib.config"); 45 46 if( !runTestSuite(stderr,"psEarthOrientation",tests,argc,argv)) { 47 return 1; 48 } 49 50 // Cleanup library 51 psLibFinalize(); 52 53 return 0; 54 55 // return ( ! runTestSuite( stderr, "psEarthOrientation", tests, argc, argv ) ); 40 56 } 41 57 … … 113 129 } 114 130 115 psS32 testEOCParallax(void)116 {117 118 return 0;119 }120 121 131 psS32 testEOCPrecession(void) 122 132 { … … 137 147 } 138 148 139 psS32 testSphereRot Transforms(void)149 psS32 testSphereRot_TEOtoCEO(void) 140 150 { 151 psTime *now = psTimeAlloc(PS_TIME_UT1); 152 now->sec = 1128530000; 153 now->nsec = 931154510; 154 psSphereRot *teoceo = psSphereRot_TEOtoCEO(now); 155 printf("Output sphere rotation = %lf,%lf,%lf,%lf\n", 156 teoceo->q0, teoceo->q1, teoceo->q2, teoceo->q3); 141 157 158 psFree(now); 159 psFree(teoceo); 142 160 return 0; 143 161 } 144 162 163 psS32 testSphereRot_CEOtoGCRS(void) 164 { 165 return 0; 166 } 167 168 psS32 testSphereRot_ITRStoTEO(void) 169 { 170 return 0; 171 } 172
Note:
See TracChangeset
for help on using the changeset viewer.
