IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2005, 6:43:44 AM (21 years ago)
Author:
eugene
Message:

substantial work on ensemble PSF fitting, better functions for evaluation, overall code cleanups

File:
1 edited

Legend:

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

    r5718 r5772  
    1414    sources = psArraySort (sources, psphotSortBySN);
    1515   
    16      // this should be added to the PM_SOURCE flags:
    17     int PM_SOURCE_BLEND = PM_SOURCE_OTHER + 1;
    18 
    1916   // we may set this differently here from the value used to mark likely saturated stars
    2017    float SATURATION       = psMetadataLookupF32 (&status, config, "SATURATION");
     
    2926        // skip non-astronomical objects (very likely defects)
    3027        // XXX EAM : should we try these anyway?
    31         if (source->type == PM_SOURCE_BLEND) continue;
     28        if (source->mode |= PM_SOURCE_BLEND) continue;
    3229        if (source->type == PM_SOURCE_DEFECT) continue;
    3330        if (source->type == PM_SOURCE_SATURATED) continue;
     
    7067    return (true);
    7168}
    72 
    73 pmModel *pmModelCopy (pmModel *model) {
    74 
    75     pmModel *new = pmModelAlloc (model->type);
    76    
    77     new->chisq = model->chisq;
    78     new->nIter = model->nIter;
    79 
    80     for (int i = 0; i < new->params->n; i++) {
    81         new->params->data.F32[i]  = model->params->data.F32[i];
    82         new->dparams->data.F32[i] = model->dparams->data.F32[i];
    83     }
    84    
    85     return (new);
    86 }
Note: See TracChangeset for help on using the changeset viewer.