IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2008, 3:10:25 PM (18 years ago)
Author:
eugene
Message:

merge changes from eam_branch_20080229: better flag definitions, cleanup footprint code (move into psphotFindDetections), push mask selection into called functions

File:
1 edited

Legend:

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

    r15058 r16820  
    113113        pmSourceSub (blend, PM_MODEL_OP_FULL, maskVal);
    114114        blend->mode |=  PM_SOURCE_MODE_SUBTRACTED;
    115         blend->mode &= ~PM_SOURCE_MODE_TEMPSUB;
    116115    }
    117116    NfitBlend += modelSet->n;
     
    137136    pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    138137    source->mode |=  PM_SOURCE_MODE_SUBTRACTED;
    139     source->mode &= ~PM_SOURCE_MODE_TEMPSUB;
    140138    return true;
    141139}
     
    176174    pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    177175    source->mode |=  PM_SOURCE_MODE_SUBTRACTED;
    178     source->mode &= ~PM_SOURCE_MODE_TEMPSUB;
    179 
    180176    return true;
    181177}
     
    275271    pmSourceCacheModel (source, maskVal);
    276272    pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
     273    source->mode |=  PM_SOURCE_MODE_SUBTRACTED;
    277274    psTrace ("psphot", 5, "blob as EXT: %f %f\n", EXT->params->data.F32[PM_PAR_XPOS], EXT->params->data.F32[PM_PAR_YPOS]);
    278 
    279     source->mode |=  PM_SOURCE_MODE_SUBTRACTED;
    280     source->mode &= ~PM_SOURCE_MODE_TEMPSUB;
    281275    return true;
    282276
     
    290284    source->mode    |= PM_SOURCE_MODE_SUBTRACTED;
    291285    source->mode    |= PM_SOURCE_MODE_PAIR;
    292     source->mode    &= ~PM_SOURCE_MODE_TEMPSUB;
    293286
    294287    // copy most data from the primary source (modelEXT, blends stay NULL)
Note: See TracChangeset for help on using the changeset viewer.