IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5609


Ignore:
Timestamp:
Nov 27, 2005, 9:28:56 AM (21 years ago)
Author:
gusciora
Message:

....

File:
1 edited

Legend:

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

    r5590 r5609  
    88*  @author GLG, MHPCC
    99*
    10 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-11-24 02:01:41 $
     10* XXX: We should review the extent of the warning messages on these functions
     11* when the transformations are not successful.
     12*
     13*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2005-11-27 19:28:56 $
    1215*
    1316*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1417*/
    15 
    16 
    17 
    18 
    19 
    20 
    21 
    22 
    23 
    24 
    25 
    26 
    27 
    28 
    29 
    30 
    31 
    32 
    33 
    34 
    35 
    36 
    37 
    38 
    39 
    40 
    41 
    42 
    43 
    44 
    45 
    4618
    4719/******************************************************************************/
     
    6840    PS_ASSERT_IMAGE_NON_NULL(tmpImage, 0);
    6941
    70     if (((x+FLT_EPSILON) < 0.0) ||
    71             (x > (double)tmpImage->numCols) ||
    72             ((y+FLT_EPSILON) < 0.0) ||
    73             (y > (double)tmpImage->numRows)) {
     42    // The FLT_EPSILON is because -0.0 was failing this.
     43    if (((x+FLT_EPSILON) < 0.0) || (x > (double)tmpImage->numCols) ||
     44            ((y+FLT_EPSILON) < 0.0) || (y > (double)tmpImage->numRows)) {
    7445        return (0);
    7546    }
     
    10677}
    10778
    108 #define BIG_BANG 1
     79#define PS_FREE_HIERARCHY 1
    10980static void cellFree(pmCell *cell)
    11081{
     
    12293            pmReadout *tmpReadout = (pmReadout *) cell->readouts->data[i];
    12394            tmpReadout->parent = NULL;
    124             if (BIG_BANG == 1) {
     95            if (PS_FREE_HIERARCHY == 1) {
    12596                psFree(tmpReadout);
    12697            }
     
    146117            pmCell *tmpCell = (pmCell *) chip->cells->data[i];
    147118            tmpCell->parent = NULL;
    148             if (BIG_BANG == 1) {
     119            if (PS_FREE_HIERARCHY == 1) {
    149120                psFree(tmpCell);
    150121            }
     
    173144            pmChip *tmpChip = (pmChip *) fpa->chips->data[i];
    174145            tmpChip->parent = NULL;
    175             if (BIG_BANG == 1) {
     146            if (PS_FREE_HIERARCHY == 1) {
    176147                psFree(tmpChip);
    177148            }
     
    205176}
    206177
    207 // XXX: Verify these default values for row0, col0, rowBins, colBins
     178// XXX: Verify these default values for row0, col0.
    208179pmCell *pmCellAlloc(
    209180    pmChip *chip,
     
    237208}
    238209
     210// XXX: Verify these default values for row0, col0.
    239211pmChip *pmChipAlloc(
    240212    pmFPA *fpa,
Note: See TracChangeset for help on using the changeset viewer.