Changeset 36642 for trunk/ppBackground/src/ppBackgroundStackLoop.c
- Timestamp:
- Apr 2, 2014, 3:55:33 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ppBackground/src/ppBackgroundStackLoop.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppBackground/src/ppBackgroundStackLoop.c
r36635 r36642 76 76 pmFPAview *view = pmFPAviewAlloc(0); 77 77 78 // pmHDU *phu = pmFPAviewThisPHU(view, stack->fpa); 79 psF32 exptime = 1.0; 80 exptime = psMetadataLookupF32(NULL, stack->fpa->hdu->header, "EXPTIME"); 81 78 82 // PART 1: 79 83 // Determine the extent of the model map for this stack … … 124 128 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV); 125 129 psImageBinning *binning = psImageBinningAlloc(); 126 binning->nXruff = 1 5; // Number of samples127 binning->nYruff = 1 5;130 binning->nXruff = 13; // Number of samples 131 binning->nYruff = 13; 128 132 // binning->nXfine = ceil(data->ra_max - data->ra_min) + 1; // This is the range we're looking at 129 133 // binning->nYfine = ceil(data->dec_max - data->dec_min) + 1; … … 169 173 170 174 // This is where an iterative solution loop would likely start. 171 {175 for (int iterator = 0; iterator < 2; iterator++) { 172 176 // Construct the offset information 173 177 printf("Model fit!\n"); … … 298 302 psPlaneTransformApply(tp, stack->fpa->toTPA, pix); 299 303 300 model->image->data.F32[y][x] = psImageMapEval(data->modelMap,tp->x,tp->y);304 model->image->data.F32[y][x] = exptime * psImageMapEval(data->modelMap,tp->x,tp->y); 301 305 corr->image->data.F32[y][x] = readout->image->data.F32[y][x] + model->image->data.F32[y][x]; 302 306
Note:
See TracChangeset
for help on using the changeset viewer.
