IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2005, 12:25:39 PM (21 years ago)
Author:
gusciora
Message:

....

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmAstrometry.c

    r4779 r4992  
    88*  @author GLG, MHPCC
    99*
    10 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-08-16 02:29:29 $
     10*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-09-11 22:25:39 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    106106}
    107107
    108 
     108// XXX: Verify these default values for row0, col0, rowBins, colBins
    109109pmReadout *pmReadoutAlloc(pmCell *cell)
    110110{
     
    707707*/
    708708
     709// XXX: How should we handle errors?  What if psMetadataLookup() is NULL?
    709710psMetadataItem *pmReadoutGetConcept(pmReadout *readout, const char *concept)
    710711{
     
    794795}
    795796
    796 psRegion *pmCellGetTrimSec(pmCell *cell) // CELL.TRIMSEC
     797psRegion pmCellGetTrimSec(pmCell *cell) // CELL.TRIMSEC
    797798{
    798799    psMetadataItem *tmp = pmCellGetConcept(cell, "CELL.TRIMSEC");
    799     return((psRegion *) tmp->data.V);
     800    return((psRegion) *((psRegion *) (tmp->data.V)));
    800801}
    801802
     
    824825}
    825826
    826 psPixelCoord *pmCellGetBin(pmCell *cell) // CELL.BIN
     827
     828psPixelCoord pmCellGetBin(pmCell *cell) // CELL.BIN
    827829{
    828830    psMetadataItem *tmp = pmCellGetConcept(cell, "CELL.BIN");
    829     return((psPixelCoord *) tmp->data.V);
    830 }
    831 
    832 psPixelCoord *pmCellGetParity(pmCell *cell) // CELL.PARITY
     831    return((psPixelCoord)  *((psPixelCoord *) (tmp->data.V)));
     832}
     833
     834psPixelCoord pmCellGetParity(pmCell *cell) // CELL.PARITY
    833835{
    834836    psMetadataItem *tmp = pmCellGetConcept(cell, "CELL.PARITY");
    835     return((psPixelCoord *) tmp->data.V);
     837    return((psPixelCoord)  *((psPixelCoord *) (tmp->data.V)));
    836838}
    837839
Note: See TracChangeset for help on using the changeset viewer.