IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2006, 4:31:17 PM (20 years ago)
Author:
eugene
Message:

substantial work on the pmFPAfile,view concepts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotApResid.c

    r6495 r6715  
    3030    Npsf = 0;
    3131
    32     // select all good PM_SOURCE_STAR entries
     32    // select all good PM_SOURCE_TYPE_STAR entries
    3333    for (int i = 0; i < sources->n; i++) {
    3434        source = sources->data[i];
    3535
    36         if (source->type != PM_SOURCE_STAR) continue;
    37         if (source->mode &  PM_SOURCE_SATSTAR) continue;
    38         if (source->mode &  PM_SOURCE_BLEND) continue;
    39         if (source->mode &  PM_SOURCE_FAIL) continue;
    40         if (source->mode &  PM_SOURCE_POOR) continue;
     36        if (source->type != PM_SOURCE_TYPE_STAR) continue;
     37        if (source->mode &  PM_SOURCE_MODE_SATSTAR) continue;
     38        if (source->mode &  PM_SOURCE_MODE_BLEND) continue;
     39        if (source->mode &  PM_SOURCE_MODE_FAIL) continue;
     40        if (source->mode &  PM_SOURCE_MODE_POOR) continue;
    4141
    4242        // XXX tune independently?
     
    5151        yPos->data.F64[Npsf] = model->params->data.F32[3];
    5252
    53         flux->data.F64[Npsf] = pow(10.0, -0.4*source->fitMag);
     53        flux->data.F64[Npsf] = pow(10.0, -0.4*source->psfMag);
    5454        r2rflux->data.F64[Npsf] = PS_SQR(model->radius) / flux->data.F64[Npsf];
    5555       
    56         apResid->data.F64[Npsf] = source->apMag + pmGrowthCurveCorrect (psf->growth, model->radius) - source->fitMag ;
     56        apResid->data.F64[Npsf] = source->apMag + pmGrowthCurveCorrect (psf->growth, model->radius) - source->psfMag;
    5757
    5858        // XXX sanity clip?
Note: See TracChangeset for help on using the changeset viewer.