Changeset 2931
- Timestamp:
- Jan 7, 2005, 1:52:15 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
astro/psCoord.c (modified) (5 diffs)
-
astronomy/psAstrometry.c (modified) (2 diffs)
-
astronomy/psCoord.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r2778 r2931 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $13 * @date $Date: 200 4-12-21 20:42:07$12 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-01-07 23:52:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 /******************************************************************************/ 32 32 33 #define PS_COT(X) (1.0 / atan(X)) 34 #define DEG_TO_RAD(DEGREES) ((DEGREES) * M_PI / 180.0) 35 #define MIN_TO_RAD(MINUTES) ((MINUTES) * M_PI / (180.0 * 60.0)) 36 #define SEC_TO_RAD(SECONDS) ((SECONDS) * M_PI / (180.0 * 60.0 * 60.0)) 37 #define RAD_TO_DEG(RADIANS) ((RADIANS) * 180 / M_PI) 38 #define RAD_TO_MIN(RADIANS) ((RADIANS) * 180 * 60.0 / M_PI) 39 #define RAD_TO_SEC(RADIANS) ((RADIANS) * 180 * 60.0 * 60.0 / M_PI) 33 // None 40 34 41 35 /******************************************************************************/ … … 181 175 182 176 tmp->cosDeltaP = cos(deltaP); 183 tmp->sinDeltaP = cos(deltaP);177 tmp->sinDeltaP = sin(deltaP); 184 178 tmp->alphaP = alphaP; 185 179 tmp->phiP = phiP; … … 317 311 tmpF64 = 1.0 / tmpF64; 318 312 tmp->x = 2.0 * tmpF64 * cos(coord->r) * sin(0.5 * coord->d); 313 tmp->y = sin(coord->r) * tmpF64; 319 314 320 315 } else if (projection->type == PS_PROJ_PAR) { … … 553 548 psSpherePrecess(coords, fromTime, toTime): 554 549 555 XXX: What algorithm should be used?556 XXX: Verify that this is correct.557 550 XXX: Use static memory for tmpST. 558 551 *****************************************************************************/ -
trunk/psLib/src/astronomy/psAstrometry.c
r2855 r2931 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.5 3$ $Name: not supported by cvs2svn $11 * @date $Date: 200 4-12-30 20:18:36$10 * @version $Revision: 1.54 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-01-07 23:52:15 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 120 120 double F = transform->y->coeff[0][1]; 121 121 122 // XXX: Use the constructor here. 122 123 psPlaneTransform *out = psAlloc(sizeof(psPlaneTransform)); 123 124 -
trunk/psLib/src/astronomy/psCoord.c
r2778 r2931 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $13 * @date $Date: 200 4-12-21 20:42:07$12 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-01-07 23:52:15 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 /******************************************************************************/ 32 32 33 #define PS_COT(X) (1.0 / atan(X)) 34 #define DEG_TO_RAD(DEGREES) ((DEGREES) * M_PI / 180.0) 35 #define MIN_TO_RAD(MINUTES) ((MINUTES) * M_PI / (180.0 * 60.0)) 36 #define SEC_TO_RAD(SECONDS) ((SECONDS) * M_PI / (180.0 * 60.0 * 60.0)) 37 #define RAD_TO_DEG(RADIANS) ((RADIANS) * 180 / M_PI) 38 #define RAD_TO_MIN(RADIANS) ((RADIANS) * 180 * 60.0 / M_PI) 39 #define RAD_TO_SEC(RADIANS) ((RADIANS) * 180 * 60.0 * 60.0 / M_PI) 33 // None 40 34 41 35 /******************************************************************************/ … … 181 175 182 176 tmp->cosDeltaP = cos(deltaP); 183 tmp->sinDeltaP = cos(deltaP);177 tmp->sinDeltaP = sin(deltaP); 184 178 tmp->alphaP = alphaP; 185 179 tmp->phiP = phiP; … … 317 311 tmpF64 = 1.0 / tmpF64; 318 312 tmp->x = 2.0 * tmpF64 * cos(coord->r) * sin(0.5 * coord->d); 313 tmp->y = sin(coord->r) * tmpF64; 319 314 320 315 } else if (projection->type == PS_PROJ_PAR) { … … 553 548 psSpherePrecess(coords, fromTime, toTime): 554 549 555 XXX: What algorithm should be used?556 XXX: Verify that this is correct.557 550 XXX: Use static memory for tmpST. 558 551 *****************************************************************************/
Note:
See TracChangeset
for help on using the changeset viewer.
