Changeset 6386
- Timestamp:
- Feb 8, 2006, 1:02:02 PM (20 years ago)
- Location:
- branches/eam_rel9_p0/psModules/src
- Files:
-
- 5 edited
-
astrom/pmChipMosaic.c (modified) (3 diffs)
-
astrom/pmFPA.c (modified) (3 diffs)
-
astrom/pmFPARead.c (modified) (1 diff)
-
astrom/pmReadout.c (modified) (1 diff)
-
imsubtract/pmSubtractBias.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel9_p0/psModules/src/astrom/pmChipMosaic.c
r6351 r6386 288 288 int nCells = cells->n; 289 289 290 // Modify the "original" pixels290 // Fix up the HDU 291 291 if (chip->parent->hdu) { 292 292 psLogMsg(__func__, PS_LOG_WARN, "The original format has the entire FPA in a single extension. " … … 311 311 } 312 312 313 // Chop off all the component cells, and put ina new one313 // Chop off all the component cells, and construct a new one 314 314 pmCell *newCell = pmCellAlloc(NULL, NULL, __func__); // New cell 315 315 cellConcepts(newCell, cells, xBinChip, yBinChip); … … 326 326 // This preserves the relationship there was before, where freeing the parent frees the child. 327 327 psRegion entire = {0.0, 0.0, 0.0, 0.0}; 328 newReadout->image = ps ImageSubset(image, entire);329 newReadout->weight = ps ImageSubset(weight, entire);330 newReadout->mask = ps ImageSubset(mask, entire);328 newReadout->image = psMemIncrRefCounter(psImageSubset(image, entire)); 329 newReadout->weight = psMemIncrRefCounter(psImageSubset(weight, entire)); 330 newReadout->mask = psMemIncrRefCounter(psImageSubset(mask, entire)); 331 331 // Drop references 332 332 psFree(newReadout); -
branches/eam_rel9_p0/psModules/src/astrom/pmFPA.c
r6358 r6386 12 12 * XXX: Should we implement non-linear cell->chip transforms? 13 13 * 14 * @version $Revision: 1.1.2. 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-02-08 01:16:11$14 * @version $Revision: 1.1.2.9 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-02-08 23:02:02 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 182 182 for (psS32 i = 0 ; i < readouts->n ; i++) { 183 183 pmReadout *tmpReadout = readouts->data[i]; 184 if (! tmpReadout) { 185 continue; 186 } 184 187 readouts->data[i] = NULL; 185 188 tmpReadout->parent = NULL; … … 206 209 for (int i = 0 ; i < cells->n ; i++) { 207 210 pmCell *tmpCell = cells->data[i]; 211 if (! tmpCell) { 212 continue; 213 } 208 214 cells->data[i] = NULL; 209 215 tmpCell->parent = NULL; -
branches/eam_rel9_p0/psModules/src/astrom/pmFPARead.c
r6145 r6386 121 121 psRegion *biassec = NULL; // A BIASSEC region from the list 122 122 while ((biassec = psListGetAndIncrement(iter))) { 123 psImage *overscan = ps ImageSubset(image, *biassec);123 psImage *overscan = psMemIncrRefCounter(psImageSubset(image, *biassec)); 124 124 psListAdd(readout->bias, PS_LIST_TAIL, overscan); 125 125 psFree(overscan); -
branches/eam_rel9_p0/psModules/src/astrom/pmReadout.c
r6062 r6386 17 17 psRegion *region = NULL; // Bias region from list 18 18 while ((region = psListGetAndIncrement(sectionsIter))) { 19 psImage *bias = ps ImageSubset(image, *region); // Image from bias section19 psImage *bias = psMemIncrRefCounter(psImageSubset(image, *region)); // Image from bias section 20 20 psListAdd(images, PS_LIST_TAIL, bias); 21 21 psFree(bias); -
branches/eam_rel9_p0/psModules/src/imsubtract/pmSubtractBias.c
r6352 r6386 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.6.8.1.2. 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-02-08 00:53:55$13 * @version $Revision: 1.6.8.1.2.7 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-02-08 23:02:02 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 572 572 } 573 573 psFree(myStats); 574 psFree(overscans);575 574 } // End of overscan subtraction 576 575
Note:
See TracChangeset
for help on using the changeset viewer.
