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/ppBackgroundStackCamera.c

    r36635 r36642  
    114114        }
    115115      }
    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");
    119119
    120120      pmChip *chip;                       // Chip from FPA
     
    197197            decim->data.F32[v][u] = tp->y;
    198198            model->data.F32[v][u] = 0.0;
    199 
     199            image->data.F32[v][u] /= exptime;
    200200            // Check the bounds so we'll know how large of an area to model in the map
    201201            if (tp->x < data->ra_min) { data->ra_min = tp->x; }
     
    277277          }
    278278        }
    279 
    280        
    281 /*      psMemStats(0,&A,&P); */
    282 /*      fprintf(stderr,"chip2 %ld %ld\n",A,P); */
    283279      } // end chip loop
    284280
     
    290286                       "N", PS_META_REPLACE,
    291287                       "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      
    296288     
    297289      if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
Note: See TracChangeset for help on using the changeset viewer.