Changeset 1543
- Timestamp:
- Aug 13, 2004, 3:51:11 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psAstrometry.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r1532 r1543 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-08-1 3 23:43:29$10 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-08-14 01:51:11 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 560 560 } 561 561 562 // Determine which chip contains these FPA coordinates. 563 psChip *newChip = psChipInFPA(fpaCoord, FPA); 564 if (newChip == NULL) { 565 return(NULL); 566 } 567 568 chipCoord = psPlaneTransformApply(chipCoord, newChip->fromFPA, fpaCoord); 569 psFree(newChip); 562 chipCoord = psPlaneTransformApply(chipCoord, chip->fromFPA, fpaCoord); 563 570 564 return(chipCoord); 571 565 } … … 587 581 } 588 582 589 // Determine which cell contains these FPA coordinates. 590 psCell *newCell = psCellInChip(chipCoord, chip); 591 if (newCell == NULL) { 592 return(NULL); 593 } 594 595 cellCoord = psPlaneTransformApply(cellCoord, newCell->fromChip, chipCoord); 596 psFree(newCell); 583 cellCoord = psPlaneTransformApply(cellCoord, cell->fromChip, chipCoord); 584 597 585 return(cellCoord); 598 586 } 599 587 600 /*****************************************************************************601 XXX: Should we do anything to determine which cell contains the coordinates?602 *****************************************************************************/603 588 psPlane* psCoordSkyToCell(psPlane* cellCoord, 604 589 const psSphere* skyCoord, … … 638 623 } 639 624 640 /*****************************************************************************641 XXX: Should we do anything to determine which cell contains the coordinates?642 *****************************************************************************/643 625 psPlane* psCoordSkyToCellQuick(psPlane* cellCoord, 644 626 const psSphere* skyCoord,
Note:
See TracChangeset
for help on using the changeset viewer.
