IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39645


Ignore:
Timestamp:
Aug 4, 2016, 2:09:52 PM (10 years ago)
Author:
eugene
Message:

if not NAN, apply Mflat to the zp for each measurement (same sense as Mcal)

File:
1 edited

Legend:

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

    r39112 r39645  
    309309  uint64_t ippObjID = ((uint64_t)average->catID << 32) + (uint64_t)average->objID; // ippObjID
    310310
     311  float Mflat       = isfinite(measure->Mflat) ? measure->Mflat : 0.0;
    311312  float nominalZP   = code->C * 0.001 + code->K * (measure->airmass - 1);
    312   float zp          = nominalZP - measure->Mcal;
     313  float zp          = nominalZP - measure->Mcal - Mflat;
    313314  float zpFactor    = pow(10.0, -0.4*zp + 3.56);
    314315  float telluricExt = - measure->Mcal;
Note: See TracChangeset for help on using the changeset viewer.