Changeset 5772 for trunk/psphot/src/psphotReapplyPSF.c
- Timestamp:
- Dec 13, 2005, 6:43:44 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReapplyPSF.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReapplyPSF.c
r5718 r5772 14 14 sources = psArraySort (sources, psphotSortBySN); 15 15 16 // this should be added to the PM_SOURCE flags:17 int PM_SOURCE_BLEND = PM_SOURCE_OTHER + 1;18 19 16 // we may set this differently here from the value used to mark likely saturated stars 20 17 float SATURATION = psMetadataLookupF32 (&status, config, "SATURATION"); … … 29 26 // skip non-astronomical objects (very likely defects) 30 27 // XXX EAM : should we try these anyway? 31 if (source-> type == PM_SOURCE_BLEND) continue;28 if (source->mode |= PM_SOURCE_BLEND) continue; 32 29 if (source->type == PM_SOURCE_DEFECT) continue; 33 30 if (source->type == PM_SOURCE_SATURATED) continue; … … 70 67 return (true); 71 68 } 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.
