Changeset 5522
- Timestamp:
- Nov 15, 2005, 4:40:13 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 6 edited
-
src/astro/psEarthOrientation.c (modified) (4 diffs)
-
src/astro/psEarthOrientation.h (modified) (3 diffs)
-
src/types/psLookupTable.c (modified) (3 diffs)
-
test/astro/tst_psEarthOrientation.c (modified) (3 diffs)
-
test/astro/verified/tst_psEarthOrientation.stderr (modified) (2 diffs)
-
test/types/tst_psMetadata_04.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psEarthOrientation.c
r5519 r5522 8 8 * @author Robert Daniel DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-11-1 5 22:19:29$10 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-11-16 02:40:13 $ 12 12 * 13 13 * Copyright 2005 Maui High Performance Computing Center, University of Hawaii … … 68 68 } 69 69 70 static bool eocInit()70 bool p_psEOCInit() 71 71 { 72 72 unsigned int nFail = 0; … … 353 353 } 354 354 355 /*356 double psEOC_ParallaxFactor(const psSphere *coords,357 const psTime *time)358 {359 360 361 return NAN;362 }363 */364 365 355 psEarthPole *psEOC_PrecessionModel(const psTime *time) 366 356 { … … 431 421 // Check if EOC data loaded 432 422 if(! eocInitialized) { 433 eocInitialized = eocInit();423 eocInitialized = p_psEOCInit(); 434 424 if(!eocInitialized) { 435 425 // XXX: Move error message. -
trunk/psLib/src/astro/psEarthOrientation.h
r5483 r5522 9 9 * @author Robert Daniel DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-11- 07 20:52:43 $11 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-11-16 02:40:13 $ 13 13 * 14 14 * Copyright 2005 Maui High Performance Computing Center, University of Hawaii … … 44 44 } 45 45 psPrecessMethod; 46 47 bool p_psEOCInit(void); 48 49 /** Finalize EOC after using functions that make calls to eocInit for time table data 50 * 51 * @return bool: True if successful, otherwise false. 52 */ 53 bool p_psEOCFinalize(void); 46 54 47 55 /** Allocates a new psEarthPole structure. */ … … 79 87 psSphere *sun ///< position of the sun 80 88 ); 81 82 83 /* Calculate the parallax factor for the given position and time.84 *85 * @return double: the calculated parallax factor.86 */87 /*88 double psEOC_ParallaxFactor(89 const psSphere *coords, ///< specified position90 const psTime *time ///< specified time91 );92 */93 89 94 90 /** Calculates the components of the rotation between the CEO and GCRS frames, X, Y, -
trunk/psLib/src/types/psLookupTable.c
r5515 r5522 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-11-1 5 04:03:36$9 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-11-16 02:40:13 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 444 444 // Parse the format string to determine how many vectors 445 445 // and whether the format string is valid 446 while((strValue=getToken((char**)&tempFormat," ",&parseStatus))) {446 while((strValue=getToken((char**)&tempFormat," \t",&parseStatus))) { 447 447 448 448 // Check for %d format sub string … … 511 511 512 512 // Loop through format and line strings to get values in text table file 513 while((strValue=getToken((char**)&tempFormat," ",&parseStatus)) &&514 (strNum=getToken((char**)&linePtr," ",&parseStatus)) ) {513 while((strValue=getToken((char**)&tempFormat," \t",&parseStatus)) && 514 (strNum=getToken((char**)&linePtr," \t",&parseStatus)) ) { 515 515 516 516 // Set column vector -
trunk/psLib/test/astro/tst_psEarthOrientation.c
r5515 r5522 5 5 * @author d-Rob, MHPCC 6 6 * 7 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-11-1 5 04:03:36$7 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-11-16 02:40:13 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 171 171 psFree(UT1time); 172 172 //Check return values from valid precession input 173 pmodel = psEOC_PrecessionModel(time); 174 if ( pmodel == NULL ) { 175 psError(PS_ERR_BAD_PARAMETER_NULL, false, 176 "psEOC_PrecessionModel returned NULL for valid input.\n"); 177 return 3; 178 } else { 179 printf("Precession Model output = x,y,s = %.8g, %.8g, %.8g\n", 180 pmodel->x, pmodel->y, pmodel->s); 181 } 182 psFree(pmodel); 183 173 /* 174 pmodel = psEOC_PrecessionModel(time); 175 if ( pmodel == NULL ) { 176 psError(PS_ERR_BAD_PARAMETER_NULL, false, 177 "psEOC_PrecessionModel returned NULL for valid input.\n"); 178 return 3; 179 } else { 180 printf("Precession Model output = x,y,s = %.8g, %.8g, %.8g\n", 181 pmodel->x, pmodel->y, pmodel->s); 182 } 183 psFree(pmodel); 184 */ 184 185 185 186 //Tests for Precession Correction function// … … 227 228 228 229 psFree(time); 230 /* if (!p_psEOCFinalize() ) { 231 psError(PS_ERR_BAD_PARAMETER_VALUE, false, "EOC failed finalization!\n"); 232 return 12; 233 } 234 */ 229 235 return 0; 230 236 } -
trunk/psLib/test/astro/verified/tst_psEarthOrientation.stderr
r5508 r5522 1 /***************************** TESTPOINT ******************************************\ 2 * TestFile: tst_psEarthOrientation.c * 3 * TestPoint: psEarthOrientation{psEOCInit_Final} * 4 * TestType: Positive * 5 \**********************************************************************************/ 6 7 8 ---> TESTPOINT PASSED (psEarthOrientation{psEOCInit_Final} | tst_psEarthOrientation.c) 9 1 10 /***************************** TESTPOINT ******************************************\ 2 11 * TestFile: tst_psEarthOrientation.c * … … 31 40 \**********************************************************************************/ 32 41 42 <DATE><TIME>|<HOST>|E|psEOC_PrecessionModel (FILE:LINENO) 43 Unallowable operation: time is NULL. 44 <DATE><TIME>|<HOST>|E|psEOC_PrecessionModel (FILE:LINENO) 45 Invalid time input. Time cannot be of type UT1. 33 46 <DATE><TIME>|<HOST>|E|psEOC_PrecessionCorr (FILE:LINENO) 34 47 Unallowable operation: time is NULL. -
trunk/psLib/test/types/tst_psMetadata_04.c
r5519 r5522 25 25 * @author Ross Harman, MHPCC 26 26 * 27 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $28 * @date $Date: 2005-11-1 5 22:20:17$27 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 28 * @date $Date: 2005-11-16 02:40:13 $ 29 29 * 30 30 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 320 320 psFree(item7); 321 321 psFree(item8); 322 psFree(metaData); 322 323 if ( psMemCheckLeaks(0, NULL, stdout,false) != 0 ) { 323 324 psError(PS_ERR_UNKNOWN, true,"memory leaks detected.");
Note:
See TracChangeset
for help on using the changeset viewer.
