Changeset 5609 for trunk/psModules/src/astrom/pmAstrometry.c
- Timestamp:
- Nov 27, 2005, 9:28:56 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometry.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometry.c
r5590 r5609 8 8 * @author GLG, MHPCC 9 9 * 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 $ 12 15 * 13 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 14 17 */ 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 46 18 47 19 /******************************************************************************/ … … 68 40 PS_ASSERT_IMAGE_NON_NULL(tmpImage, 0); 69 41 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)) { 74 45 return (0); 75 46 } … … 106 77 } 107 78 108 #define BIG_BANG179 #define PS_FREE_HIERARCHY 1 109 80 static void cellFree(pmCell *cell) 110 81 { … … 122 93 pmReadout *tmpReadout = (pmReadout *) cell->readouts->data[i]; 123 94 tmpReadout->parent = NULL; 124 if ( BIG_BANG== 1) {95 if (PS_FREE_HIERARCHY == 1) { 125 96 psFree(tmpReadout); 126 97 } … … 146 117 pmCell *tmpCell = (pmCell *) chip->cells->data[i]; 147 118 tmpCell->parent = NULL; 148 if ( BIG_BANG== 1) {119 if (PS_FREE_HIERARCHY == 1) { 149 120 psFree(tmpCell); 150 121 } … … 173 144 pmChip *tmpChip = (pmChip *) fpa->chips->data[i]; 174 145 tmpChip->parent = NULL; 175 if ( BIG_BANG== 1) {146 if (PS_FREE_HIERARCHY == 1) { 176 147 psFree(tmpChip); 177 148 } … … 205 176 } 206 177 207 // XXX: Verify these default values for row0, col0 , rowBins, colBins178 // XXX: Verify these default values for row0, col0. 208 179 pmCell *pmCellAlloc( 209 180 pmChip *chip, … … 237 208 } 238 209 210 // XXX: Verify these default values for row0, col0. 239 211 pmChip *pmChipAlloc( 240 212 pmFPA *fpa,
Note:
See TracChangeset
for help on using the changeset viewer.
