Changeset 4330 for trunk/psLib/src/astro
- Timestamp:
- Jun 20, 2005, 5:01:37 PM (21 years ago)
- Location:
- trunk/psLib/src/astro
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r4321 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-2 0 22:42:29$12 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 221 221 } 222 222 223 psPlaneTransform* psPlaneTransformAlloc( psS32 n1, psS32n2)223 psPlaneTransform* psPlaneTransformAlloc(int n1, int n2) 224 224 { 225 225 PS_ASSERT_INT_NONNEGATIVE(n1, NULL); … … 290 290 const psPlaneDistort* transform, 291 291 const psPlane* coords, 292 float color,293 float magnitude)292 float mag, 293 float color) 294 294 { 295 295 PS_ASSERT_PTR_NON_NULL(transform, NULL); … … 305 305 coords->x, 306 306 coords->y, 307 color,308 magnitude307 mag, 308 color 309 309 ); 310 310 out->y = psDPolynomial4DEval( … … 312 312 coords->x, 313 313 coords->y, 314 color,315 magnitude314 mag, 315 color 316 316 ); 317 317 return (out); … … 481 481 482 482 psProjection* psProjectionAlloc( 483 psF64R,484 psF64D,485 psF64Xs,486 psF64Ys,483 double R, 484 double D, 485 double Xs, 486 double Ys, 487 487 psProjectionType type) 488 488 { -
trunk/psLib/src/astro/psCoord.h
r4321 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-2 0 22:42:29$12 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 188 188 189 189 psPlaneTransform* psPlaneTransformAlloc( 190 psS32 n1,///< The order of the x term in the transform.191 psS32 n2///< The order of the y term in the transform.190 int n1, ///< The order of the x term in the transform. 191 int n2 ///< The order of the y term in the transform. 192 192 ); 193 193 … … 223 223 const psPlaneDistort* transform, ///< the transform to apply 224 224 const psPlane* coords, ///< the coordinate to apply the transform above. 225 float term3,///< third term -- maybe magnitude226 float term4///< forth term -- maybe color225 float mag, ///< third term -- maybe magnitude 226 float color ///< forth term -- maybe color 227 227 ); 228 228 … … 283 283 */ 284 284 psProjection* psProjectionAlloc( 285 psF64R, ///< Right-ascension of projection center.286 psF64D, ///< Declination of projection center.287 psF64Xs, ///< Scale in x-dimension288 psF64Ys, ///< Scale in y-dimension285 double R, ///< Right-ascension of projection center. 286 double D, ///< Declination of projection center. 287 double Xs, ///< Scale in x-dimension 288 double Ys, ///< Scale in y-dimension 289 289 psProjectionType type 290 290 ); -
trunk/psLib/src/astro/psTime.c
r4209 r4330 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 10 18:09:12$12 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 731 731 } 732 732 733 psF64 psTimeToLMST(psTime *time, psF64longitude)733 double psTimeToLMST(psTime *time, double longitude) 734 734 { 735 735 psF64 jdTdtDays = 0.0; … … 804 804 } 805 805 806 psF64psTimeGetUT1Delta(const psTime *time, psTimeBulletin bulletin)806 double psTimeGetUT1Delta(const psTime *time, psTimeBulletin bulletin) 807 807 { 808 808 psU32 nTables = 2; … … 1081 1081 } 1082 1082 1083 psS64psTimeLeapSecondDelta(const psTime *time1, const psTime *time2)1083 long psTimeLeapSecondDelta(const psTime *time1, const psTime *time2) 1084 1084 { 1085 1085 psS64 diff = 0; … … 1095 1095 } 1096 1096 1097 psBool psTimeIsLeapSecond(const psTime* utc)1097 bool psTimeIsLeapSecond(const psTime* utc) 1098 1098 { 1099 1099 psTime* prevUtc = NULL; … … 1126 1126 } 1127 1127 1128 psF64psTimeToJD(const psTime *time)1128 double psTimeToJD(const psTime *time) 1129 1129 { 1130 1130 psF64 jd = NAN; … … 1146 1146 } 1147 1147 1148 psF64psTimeToMJD(const psTime *time)1148 double psTimeToMJD(const psTime *time) 1149 1149 { 1150 1150 psF64 mjd = NAN; … … 1302 1302 */ 1303 1303 1304 psTime* psTimeFromJD( psF64 time)1304 psTime* psTimeFromJD(double jd) 1305 1305 { 1306 1306 psF64 days = 0.0; … … 1312 1312 1313 1313 // Julian date conversion courtesy of Eugene Magnier 1314 days = time- 2440587.5;1314 days = jd - 2440587.5; 1315 1315 seconds = days * SEC_PER_DAY; 1316 1316 if(seconds < 0.0) { … … 1327 1327 } 1328 1328 1329 psTime* psTimeFromMJD( psF64 time)1329 psTime* psTimeFromMJD(double mjd) 1330 1330 { 1331 1331 psF64 days = 0.0; … … 1337 1337 1338 1338 // Modified Julian date conversion courtesy of Eugene Magnier 1339 days = time- 40587.0;1339 days = mjd - 40587.0; 1340 1340 seconds = days * SEC_PER_DAY; 1341 1341 … … 1406 1406 } 1407 1407 1408 psTime* psTimeFromUTC(psS64 sec, psU32 nsec, psBool leapsecond)1408 psTime* psTimeFromUTC(psS64 sec, psU32 nsec, bool leapsecond) 1409 1409 { 1410 1410 psTime* outTime = NULL; … … 1510 1510 } 1511 1511 1512 psTime* psTimeMath(const psTime *time, psF64delta)1512 psTime* psTimeMath(const psTime *time, double delta) 1513 1513 { 1514 1514 psF64 sec = 0.0; … … 1551 1551 } 1552 1552 1553 psF64psTimeDelta(const psTime *time1, const psTime *time2)1553 double psTimeDelta(const psTime *time1, const psTime *time2) 1554 1554 { 1555 1555 psF64 out = 0.0; -
trunk/psLib/src/astro/psTime.h
r4293 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 17 00:10:59$13 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 127 127 * in UTC format, then it is converted. 128 128 * 129 * @return psF64: LST Time.130 */ 131 psF64psTimeToLMST(132 psTime *time, ///< psTime to be converted.133 psF64longitude ///< Longitude.129 * @return double: LST Time. 130 */ 131 double psTimeToLMST( 132 psTime *time, ///< psTime to be converted. 133 double longitude ///< Longitude. 134 134 ); 135 135 … … 138 138 * This function is necessary to for various SLALIB functions. 139 139 * 140 * @return psF64: Time difference.141 */ 142 psF64psTimeGetUT1Delta(140 * @return double: Time difference. 141 */ 142 double psTimeGetUT1Delta( 143 143 const psTime *time, ///< psTime to be looked up. 144 144 psTimeBulletin bulletin ///< IERS bulletin to use … … 169 169 * Calculates the number of leapseconds between two times. 170 170 * 171 * @return psS64: leapseconds added between given times172 */ 173 psS64psTimeLeapSecondDelta(174 const psTime* time1, ///< First input time.175 const psTime* time2 ///< Second input time.171 * @return long: leapseconds added between given times 172 */ 173 long psTimeLeapSecondDelta( 174 const psTime* time1, ///< First input time. 175 const psTime* time2 ///< Second input time. 176 176 ); 177 177 … … 180 180 * Determines if the specified UTC time is a valid leapsecond. 181 181 * 182 * @return psBool: valid leap second183 */ 184 psBool psTimeIsLeapSecond(182 * @return bool: valid leap second 183 */ 184 bool psTimeIsLeapSecond( 185 185 const psTime* utc ///< UTC to verify if leap second 186 186 ); … … 191 191 * subtract leapseconds. 192 192 * 193 * @return psF64: Julian Date (JD) time.194 */ 195 psF64psTimeToJD(196 const psTime* time ///< Input time to be converted.193 * @return double: Julian Date (JD) time. 194 */ 195 double psTimeToJD( 196 const psTime* time ///< Input time to be converted. 197 197 ); 198 198 /** Convert psTime to modified Julian date time. … … 201 201 * add or subtract leapseconds. 202 202 * 203 * @return psF64: Modified Julian Days (MJD) time.204 */ 205 psF64psTimeToMJD(203 * @return double: Modified Julian Days (MJD) time. 204 */ 205 double psTimeToMJD( 206 206 const psTime* time ///< Input time to be converted. 207 207 ); … … 248 248 */ 249 249 psTime* psTimeFromJD( 250 psF64 time///< Input time to be converted.250 double jd ///< Input time to be converted. 251 251 ); 252 252 … … 258 258 */ 259 259 psTime* psTimeFromMJD( 260 psF64 time///< Input time to be converted.260 double mjd ///< Input time to be converted. 261 261 ); 262 262 … … 268 268 */ 269 269 psTime* psTimeFromISO( 270 const char* time ///< Input time to be converted.270 const char* time ///< Input time to be converted. 271 271 ); 272 272 … … 278 278 */ 279 279 psTime* psTimeFromTimeval( 280 const struct timeval *time ///< Input time to be converted.280 const struct timeval *time ///< Input time to be converted. 281 281 ); 282 282 … … 288 288 */ 289 289 psTime* psTimeFromTT( 290 psS64 sec, ///< Input terrestrial time in seconds291 psU32 nsec ///< Input terrestrial time fraction of seconds (nanoseconds)290 psS64 sec, ///< Input terrestrial time in seconds 291 psU32 nsec ///< Input terrestrial time fraction of seconds (nanoseconds) 292 292 ); 293 293 … … 299 299 */ 300 300 psTime* psTimeFromUTC( 301 psS64 sec, ///< Input time in seconds302 psU32 nsec, ///< Input time fraction of seconds (nanoseconds)303 psBool leapsecond///< Input time is a leapsecond301 psS64 sec, ///< Input time in seconds 302 psU32 nsec, ///< Input time fraction of seconds (nanoseconds) 303 bool leapsecond ///< Input time is a leapsecond 304 304 ); 305 305 … … 313 313 */ 314 314 psTime* p_psTimeFromTM( 315 const struct tm *time ///< Input time to be converted.315 const struct tm *time ///< Input time to be converted. 316 316 ); 317 317 … … 323 323 */ 324 324 psTime* psTimeMath( 325 const psTime *time, ///< Time.326 psF64 delta///< Time delta.325 const psTime *time, ///< Time. 326 double delta ///< Time delta. 327 327 ); 328 328 … … 331 331 * Determine difference between two times. Input times are converted to TAI format if necessary. 332 332 * 333 * @return psF64: Time difference.334 */ 335 psF64psTimeDelta(336 const psTime *time1, ///< First time.337 const psTime *time2 ///< Second time.333 * @return double: Time difference. 334 */ 335 double psTimeDelta( 336 const psTime *time1, ///< First time. 337 const psTime *time2 ///< Second time. 338 338 ); 339 339
Note:
See TracChangeset
for help on using the changeset viewer.
