IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37924


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

Location:
trunk/Ohana/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvopsps/src/insert_diffobj_dvopsps_catalog.c

    r37923 r37924  
    124124                 "NUSED_KRON_WRP      SMALLINT,  "   
    125125                 "NUSED_AP_WRP        SMALLINT,  "   
     126                 "PSF_QF_PERF_MAX     FLOAT, "           
    126127
    127128                 "FLUX_PSF_WRP        FLOAT,  "             
     
    178179                 "NUSED_KRON_WRP, "   
    179180                 "NUSED_AP_WRP, "   
     181                 "PSF_QF_PERF_MAX, "           
    180182
    181183                 "FLUX_PSF_WRP, "             
     
    253255    PrintIOBuffer (sec_buffer, "%hd,  ", secfilt->NusedKronWrp);       
    254256    PrintIOBuffer (sec_buffer, "%hd,  ", secfilt->NusedApWrp);       
     257    PRINT_FLOAT(sec_buffer, secfilt->psfQfPerfMax, "%.6f,");       
    255258
    256259    // use %e?
  • 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.