Changeset 10211
- Timestamp:
- Nov 27, 2006, 6:20:39 PM (19 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 2 edited
-
ppImageDetrendBias.c (modified) (3 diffs)
-
ppImageDetrendFringe.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendBias.c
r9825 r10211 8 8 { 9 9 psTrace("ppImage", 1, "Commencing bias processing....\n"); 10 // psMetadataPrint(inputReadout->parent->concepts, 7);11 10 12 11 if (!pmSubtractBias(inputReadout, options->overscan, bias, dark)) { 13 return false; 12 psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias.\n"); 13 return false; 14 14 } 15 15 16 16 // Output overscan fit results, if required 17 17 if (! options->doOverscan || ! options->overscan) { 18 return true; 18 return true; // No overscan fit to report 19 19 } 20 20 … … 33 33 psStringAppend(&coeffs, "%e ", poly->coeff[i]); 34 34 } 35 psLogMsg("p hase2", PS_LOG_INFO, "Overscan polynomial coefficients:\n%s\n", coeffs);35 psLogMsg("ppImage", PS_LOG_INFO, "Overscan polynomial coefficients:\n%s\n", coeffs); 36 36 psFree(coeffs); 37 37 break; … … 49 49 psStringAppend(&coeffs, "\n"); 50 50 } 51 psLogMsg("p hase2", PS_LOG_INFO, "Overscan spline coefficients:\n%s\n", coeffs);51 psLogMsg("ppImage", PS_LOG_INFO, "Overscan spline coefficients:\n%s\n", coeffs); 52 52 psFree(coeffs); 53 53 break; -
trunk/ppImage/src/ppImageDetrendFringe.c
r9952 r10211 1 #ifdef HAVE_CONFIG_H 2 #include <config.h> 3 #endif 4 1 5 #include <stdio.h> 2 6 #include <pslib.h> 3 7 #include <psmodules.h> 4 8 9 #include "ppImageOptions.h" 5 10 #include "ppImageDetrendFringe.h" 6 11 7 bool ppImageDetrendFringeMeasure(pmReadout *readout, // Readout to measure 8 pmCell *fringe, // Fringe cell (each readout is a different component) 9 const ppImageOptions *options // Options 10 ) 12 bool ppImageDetrendFringeMeasure(pmReadout *readout, pmCell *fringe, const ppImageOptions *options) 11 13 { 12 14 PS_ASSERT_PTR_NON_NULL(readout, false); … … 98 100 // Solve the fringe system: we have science fringe measurements for each cell, and an array of reference 99 101 // fringe measurements for each cell. Need to concatenate these together first, and then solve. 100 bool ppImageDetrendFringeSolve(pmChip *scienceChip, // Chip with science 101 const pmChip *refChip, // Chip with reference fringes 102 const ppImageOptions *options // Options 103 ) 102 bool ppImageDetrendFringeSolve(pmChip *scienceChip, const pmChip *refChip, const ppImageOptions *options) 104 103 { 105 104 PS_ASSERT_PTR_NON_NULL(scienceChip, NULL); … … 142 141 143 142 144 psImage *ppImageDetrendFringeGenerate(pmCell *science, // Science cell 145 pmCell *fringes // Fringe cell, one readout per fringe component 146 ) 143 psImage *ppImageDetrendFringeGenerate(pmCell *science, pmCell *fringes) 147 144 { 148 145 PS_ASSERT_PTR_NON_NULL(science, false);
Note:
See TracChangeset
for help on using the changeset viewer.
