Changeset 1497
- Timestamp:
- Aug 11, 2004, 3:32:21 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
astro/psCoord.c (modified) (8 diffs)
-
astronomy/psAstrometry.c (modified) (4 diffs)
-
astronomy/psCoord.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r1491 r1497 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-1 1 23:53:54$12 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-12 01:32:21 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 76 76 77 77 // This function prototype has been modified since the SDRS. 78 psSphereTransform* psSphereTransformAlloc(double NPlat, double Xo, double xo) 78 psSphereTransform* psSphereTransformAlloc(double NPlat, 79 double Xo, 80 double xo) 79 81 { 80 82 psSphereTransform* tmp = (psSphereTransform* ) psAlloc(sizeof(psSphereTransform)); … … 95 97 // there are no typo's. 96 98 97 psSphere* psSphereTransformApply(psSphere* out, const psSphereTransform* transform, const psSphere* coord) 99 psSphere* psSphereTransformApply(psSphere* out, 100 const psSphereTransform* transform, 101 const psSphere* coord) 98 102 { 99 103 double sinY = 0.0; … … 164 168 165 169 // This is some kind of arc tan function. 166 float arg(float x, float y) 170 float arg(float x, 171 float y) 167 172 { 168 173 if (x > 0) { … … 184 189 // XXX: Waiting for the definition of the PS_PROJ_PAR projection. 185 190 // XXX: Waiting for the definition of the PS_PROJ_GLS projection. 186 psPlane* psProject(const psSphere* coord, const psProjection* projection) 191 psPlane* psProject(const psSphere* coord, 192 const psProjection* projection) 187 193 { 188 194 float R = 0.0; … … 226 232 // XXX: Waiting for the definition of the PS_PROJ_PAR projection. 227 233 // XXX: Waiting for the definition of the PS_PROJ_GLS projection. 228 psSphere* psDeproject(const psPlane* coord, const psProjection* projection) 234 psSphere* psDeproject(const psPlane* coord, 235 const psProjection* projection) 229 236 { 230 237 float R = 0.0; … … 275 282 psSphere* psSphereGetOffset(const psSphere* restrict position1, 276 283 const psSphere* restrict position2, 277 psSphereOffsetMode mode, psSphereOffsetUnit unit) 284 psSphereOffsetMode mode, 285 psSphereOffsetUnit unit) 278 286 { 279 287 // psPlane* lin; … … 336 344 psSphere* psSphereSetOffset(const psSphere* restrict position, 337 345 const psSphere* restrict offset, 338 psSphereOffsetMode mode, psSphereOffsetUnit unit) 346 psSphereOffsetMode mode, 347 psSphereOffsetUnit unit) 339 348 { 340 349 psPlane lin; -
trunk/psLib/src/astronomy/psAstrometry.c
r1492 r1497 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-08-1 1 23:54:46$10 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-08-12 01:32:21 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 80 80 } 81 81 82 /*83 * XXX: The SDRS states this should be a private p_ps() procedure.84 */85 82 void p_psGrommitFree(psGrommit* grommit) 86 83 { … … 167 164 168 165 /***************************************************************************** 169 XXX: We assume that readouts have valid coordinates from the range170 (0,numRows or numCols) in each dimension, and that they are square with the171 x/y axis.172 166 XXX: if we find no cell with has this coordinate, we return NULL. 173 167 XXX: must deallocate memory. … … 277 271 278 272 /***************************************************************************** 279 XXX: This implementation requires a new psGrommit be created for each 280 transformation, as well as a few psPlane structs. Can this be implemented 281 better? 273 XXX: determine the grommit from the FPA associated with this chip. 282 274 XXX: must determine the correct values for XXX_Mag and XXX_Col; 283 275 *****************************************************************************/ -
trunk/psLib/src/astronomy/psCoord.c
r1492 r1497 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-1 1 23:53:54$12 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-12 01:32:21 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 76 76 77 77 // This function prototype has been modified since the SDRS. 78 psSphereTransform* psSphereTransformAlloc(double NPlat, double Xo, double xo) 78 psSphereTransform* psSphereTransformAlloc(double NPlat, 79 double Xo, 80 double xo) 79 81 { 80 82 psSphereTransform* tmp = (psSphereTransform* ) psAlloc(sizeof(psSphereTransform)); … … 95 97 // there are no typo's. 96 98 97 psSphere* psSphereTransformApply(psSphere* out, const psSphereTransform* transform, const psSphere* coord) 99 psSphere* psSphereTransformApply(psSphere* out, 100 const psSphereTransform* transform, 101 const psSphere* coord) 98 102 { 99 103 double sinY = 0.0; … … 164 168 165 169 // This is some kind of arc tan function. 166 float arg(float x, float y) 170 float arg(float x, 171 float y) 167 172 { 168 173 if (x > 0) { … … 184 189 // XXX: Waiting for the definition of the PS_PROJ_PAR projection. 185 190 // XXX: Waiting for the definition of the PS_PROJ_GLS projection. 186 psPlane* psProject(const psSphere* coord, const psProjection* projection) 191 psPlane* psProject(const psSphere* coord, 192 const psProjection* projection) 187 193 { 188 194 float R = 0.0; … … 226 232 // XXX: Waiting for the definition of the PS_PROJ_PAR projection. 227 233 // XXX: Waiting for the definition of the PS_PROJ_GLS projection. 228 psSphere* psDeproject(const psPlane* coord, const psProjection* projection) 234 psSphere* psDeproject(const psPlane* coord, 235 const psProjection* projection) 229 236 { 230 237 float R = 0.0; … … 275 282 psSphere* psSphereGetOffset(const psSphere* restrict position1, 276 283 const psSphere* restrict position2, 277 psSphereOffsetMode mode, psSphereOffsetUnit unit) 284 psSphereOffsetMode mode, 285 psSphereOffsetUnit unit) 278 286 { 279 287 // psPlane* lin; … … 336 344 psSphere* psSphereSetOffset(const psSphere* restrict position, 337 345 const psSphere* restrict offset, 338 psSphereOffsetMode mode, psSphereOffsetUnit unit) 346 psSphereOffsetMode mode, 347 psSphereOffsetUnit unit) 339 348 { 340 349 psPlane lin;
Note:
See TracChangeset
for help on using the changeset viewer.
