- Timestamp:
- Apr 2, 2014, 3:55:33 PM (12 years ago)
- Location:
- trunk/ppBackground/src
- Files:
-
- 3 edited
-
ppBackgroundStackCamera.c (modified) (4 diffs)
-
ppBackgroundStackLoop.c (modified) (4 diffs)
-
ppBackgroundStackMath.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppBackground/src/ppBackgroundStackCamera.c
r36635 r36642 114 114 } 115 115 } 116 117 /* psMemStats(0,&A,&P); */ 118 /* fprintf(stderr,"fpa %ld %ld\n",A,P); */ 116 117 psF32 exptime = 1.0; 118 exptime = psMetadataLookupF32(NULL, phu->header, "EXPTIME"); 119 119 120 120 pmChip *chip; // Chip from FPA … … 197 197 decim->data.F32[v][u] = tp->y; 198 198 model->data.F32[v][u] = 0.0; 199 199 image->data.F32[v][u] /= exptime; 200 200 // Check the bounds so we'll know how large of an area to model in the map 201 201 if (tp->x < data->ra_min) { data->ra_min = tp->x; } … … 277 277 } 278 278 } 279 280 281 /* psMemStats(0,&A,&P); */282 /* fprintf(stderr,"chip2 %ld %ld\n",A,P); */283 279 } // end chip loop 284 280 … … 290 286 "N", PS_META_REPLACE, 291 287 "counter", i); 292 // data->models->name->XY__->{image/ra/dec/calibrated/offset/scale}293 // data->models->counter->XY__->{image/ra/dec/calibrated/offset/scale}294 295 296 288 297 289 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { -
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 -
trunk/ppBackground/src/ppBackgroundStackMath.c
r36635 r36642 103 103 psVectorAppend(obs,image->data.F32[v][u]); 104 104 psVectorAppend(model, psImageMapEval(data->modelMap,ra->data.F32[v][u],dec->data.F32[v][u])); 105 // obs->data.F32[v * image->numCols + u] = image->data.F32[v][u];106 // model->data.F32[v * image->numCols + u] = psImageMapEval(data->modelMap,ra->data.F32[v][u],dec->data.F32[v][u]);107 105 } 108 106 }
Note:
See TracChangeset
for help on using the changeset viewer.
