IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2014, 3:55:33 PM (12 years ago)
Author:
watersc1
Message:

Still not perfect, as it seems to be improperly clipping bad inputs. This version does fix the exposure time scaling issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppBackground/src/ppBackgroundStackLoop.c

    r36635 r36642  
    7676      pmFPAview *view = pmFPAviewAlloc(0);
    7777
     78      //      pmHDU *phu = pmFPAviewThisPHU(view, stack->fpa);
     79      psF32 exptime = 1.0;
     80      exptime = psMetadataLookupF32(NULL, stack->fpa->hdu->header, "EXPTIME");
     81     
    7882      // PART 1:
    7983      // Determine the extent of the model map for this stack
     
    124128      psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
    125129      psImageBinning *binning = psImageBinningAlloc();
    126       binning->nXruff = 15; // Number of samples
    127       binning->nYruff = 15;
     130      binning->nXruff = 13; // Number of samples
     131      binning->nYruff = 13;
    128132      //    binning->nXfine = ceil(data->ra_max - data->ra_min) + 1; // This is the range we're looking at
    129133      //    binning->nYfine = ceil(data->dec_max - data->dec_min) + 1;
     
    169173
    170174      // This is where an iterative solution loop would likely start.
    171       {
     175      for (int iterator = 0; iterator < 2; iterator++) {
    172176        // Construct the offset information
    173177        printf("Model fit!\n");
     
    298302                psPlaneTransformApply(tp, stack->fpa->toTPA, pix);
    299303               
    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);
    301305                corr->image->data.F32[y][x] = readout->image->data.F32[y][x] + model->image->data.F32[y][x];
    302306               
Note: See TracChangeset for help on using the changeset viewer.