Changeset 1510
- Timestamp:
- Aug 11, 2004, 5:11:45 PM (22 years ago)
- Location:
- trunk/psLib/src/astronomy
- Files:
-
- 2 edited
-
psAstrometry.c (modified) (8 diffs)
-
psAstrometry.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r1497 r1510 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-08-12 0 1:32:21$10 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-08-12 03:11:45 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 230 230 } 231 231 232 /*****************************************************************************233 XXX: must determine the correct values for XXX_Mag and XXX_Col;234 *****************************************************************************/235 232 psPlane* psCoordFPAToTP(psPlane* outCoord, 236 233 const psPlane* inCoord, 234 double color, 235 double magnitude, 237 236 const psFPA* fpa) 238 237 { 239 float XXX_Mag = 0.0;240 float XXX_Col = 0.0;241 242 238 return(psPlaneDistortApply(outCoord, fpa->toTangentPlane, inCoord, 243 XXX_Mag, XXX_Col));239 magnitude, color)); 244 240 } 245 241 … … 272 268 /***************************************************************************** 273 269 XXX: determine the grommit from the FPA associated with this chip. 274 XXX: must determine the correct values for XXX_Mag and XXX_Col;275 270 *****************************************************************************/ 276 271 psSphere* psCoordCellToSky(psSphere* skyCoord, 277 272 const psPlane* cellCoord, 273 double color, 274 double magnitude, 278 275 const psCell* cell) 279 276 { … … 282 279 psFPA* parFPA = (cell->parent)->parent; 283 280 psGrommit* tmpGrommit = NULL; 284 float XXX_Mag = 0.0;285 float XXX_Col = 0.0;286 281 287 282 // Convert the input cell coordinates to FPA coordinates. … … 289 284 290 285 // Convert the FPA coordinates to tangent plane Coordinates. 291 tpCoord = psPlaneDistortApply(tpCoord, parFPA->toTangentPlane, fpaCoord, XXX_Mag, XXX_Col);286 tpCoord = psPlaneDistortApply(tpCoord, parFPA->toTangentPlane, fpaCoord, magnitude, color); 292 287 293 288 // Generate a grommit for this FPA. … … 366 361 367 362 368 /*****************************************************************************369 XXX: must determine the correct values for XXX_Mag and XXX_Col;370 *****************************************************************************/371 363 psPlane* psCoordTPToFPA(psPlane* fpaCoord, 372 364 const psPlane* tpCoord, 365 double color, 366 double magnitude, 373 367 const psFPA* fpa) 374 368 { 375 float XXX_Mag = 0.0;376 float XXX_Col = 0.0;377 378 369 return (psPlaneDistortApply(fpaCoord, fpa->fromTangentPlane, 379 tpCoord, XXX_Mag, XXX_Col));370 tpCoord, magnitude, color)); 380 371 } 381 372 … … 407 398 psPlane* psCoordSkyToCell(psPlane* cellCoord, 408 399 const psSphere* skyCoord, 400 double color, 401 double magnitude, 409 402 const psCell* cell) 410 403 { … … 417 410 418 411 // Convert the tangent plane coords to FPA coords. 419 psPlane *fpaCoord = psCoordTPToFPA(fpaCoord, tpCoord, whichFPA); 412 psPlane *fpaCoord = psCoordTPToFPA(fpaCoord, tpCoord, color, 413 magnitude, whichFPA); 420 414 421 415 // Convert the FPA coords to chip coords. -
trunk/psLib/src/astronomy/psAstrometry.h
r1496 r1510 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-08-12 0 1:23:20$10 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-08-12 03:11:45 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 309 309 psPlane* out, ///< a plane struct to recycle. If NULL, a new struct is created 310 310 const psPlane* in, ///< the coordinate within FPA 311 double color, ///< Color of source 312 double magnitude, ///< Magnitude of source 311 313 const psFPA* fpa ///< the FPA in interest 312 314 ); … … 339 341 psSphere* out, ///< a sphere struct to recycle. If NULL, a new struct is created 340 342 const psPlane* in, ///< the coordinate within cell 343 double color, ///< Color of source 344 double magnitude, ///< Magnitude of source 341 345 const psCell* cell ///< the cell in interest 342 346 ); … … 370 374 psPlane* out, ///< a plane struct to recycle. If NULL, a new struct is created 371 375 const psPlane* in, ///< the coordinate within tangent plane 376 double color, ///< Color of source 377 double magnitude, ///< Magnitude of source 372 378 const psFPA* fpa ///< the FPA of interest 373 379 ); … … 400 406 psPlane* out, ///< a plane struct to recycle. If NULL, a new struct is created 401 407 const psSphere* in, ///< the Sky coordinate 408 double color, ///< Color of source 409 double magnitude, ///< Magnitude of source 402 410 const psCell* cell ///< the cell of interest 403 411 );
Note:
See TracChangeset
for help on using the changeset viewer.
