IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24878


Ignore:
Timestamp:
Jul 21, 2009, 10:47:39 AM (17 years ago)
Author:
eugene
Message:

skip CR and EXT sources; skip bins with no ap-fit measurement (dSo == 0.0)

File:
1 edited

Legend:

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

    r23989 r24878  
    168168        if (source->mode &  PM_SOURCE_MODE_POOR) SKIPSTAR ("POOR STAR");
    169169
     170        if (source->mode &  PM_SOURCE_MODE_EXT_LIMIT) SKIPSTAR ("EXTENDED");
     171        if (source->mode &  PM_SOURCE_MODE_CR_LIMIT) SKIPSTAR ("COSMIC RAY");
     172           
    170173        if (!isfinite(source->apMag) || !isfinite(source->psfMag)) {
    171174            continue;
     
    317320*/
    318321
     322// XXX this still sucks...  need a better way to estimate the error floor...
    319323bool psphotMagErrorScale (float *errorScale, float *errorFloor, psVector *dMag, psVector *dap, psVector *mask, int nGroup) {
    320324
     
    385389    for (int i = 0; i < dSo->n; i++) {
    386390        *errorFloor = dSo->data.F32[i];
     391        if (fabs(*errorFloor) <= FLT_EPSILON) continue;
    387392        if (isfinite(*errorFloor)) break;
    388393    }
Note: See TracChangeset for help on using the changeset viewer.