IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1543


Ignore:
Timestamp:
Aug 13, 2004, 3:51:11 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psAstrometry.c

    r1532 r1543  
    88*  @author George Gusciora, MHPCC
    99*
    10 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-13 23:43:29 $
     10*  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-08-14 01:51:11 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    560560    }
    561561
    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
    570564    return(chipCoord);
    571565}
     
    587581    }
    588582
    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
    597585    return(cellCoord);
    598586}
    599587
    600 /*****************************************************************************
    601 XXX: Should we do anything to determine which cell contains the coordinates?
    602  *****************************************************************************/
    603588psPlane* psCoordSkyToCell(psPlane* cellCoord,
    604589                          const psSphere* skyCoord,
     
    638623}
    639624
    640 /*****************************************************************************
    641 XXX: Should we do anything to determine which cell contains the coordinates?
    642  *****************************************************************************/
    643625psPlane* psCoordSkyToCellQuick(psPlane* cellCoord,
    644626                               const psSphere* skyCoord,
Note: See TracChangeset for help on using the changeset viewer.