IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2015, 3:57:48 PM (11 years ago)
Author:
eugene
Message:

calculate psfQfMax (and perfect) in diff mode; add to dvopsps diffobj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/setMrelCatalog.c

    r37907 r37924  
    729729    }
    730730
     731    float psfQfMax = 0.0;
     732    float psfQfPerfMax = 0.0;
     733
    731734    off_t meas = measureOffset;
    732735
     
    773776      float Fcal = MagToFlux(-Mcal);
    774777
     778      // these are only used below if IS_DIFF_DB
     779      if (IS_DIFF_DB) {
     780        if (measure[k].psfQF     > psfQfMax)     psfQfMax     = measure[k].psfQF;
     781        if (measure[k].psfQFperf > psfQfPerfMax) psfQfPerfMax = measure[k].psfQFperf;
     782      }
     783
    775784      // in the calculations below,
    776785      // ...list gives the error per measurement, wlist gives the weight
     
    836845    liststats (Fpsflist, dpsflist, wpsflist, Npsf, psfstats);
    837846
     847    if (IS_DIFF_DB) {
     848      // for non DIFF_DB, these are set in setMrelAverageExposure
     849      secfilt[Nsec].psfQfMax     = psfQfMax;
     850      secfilt[Nsec].psfQfPerfMax = psfQfPerfMax;
     851    }
     852
    838853    secfilt[Nsec].FpsfWrp  = psfstats->mean;
    839854    secfilt[Nsec].dFpsfWrp = psfstats->error;
Note: See TracChangeset for help on using the changeset viewer.