IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30771


Ignore:
Timestamp:
Mar 1, 2011, 12:44:35 PM (15 years ago)
Author:
eugene
Message:

skip sources without models

Location:
branches/eam_branches/ipp-20110213/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/src/psphotMergeSources.c

    r30770 r30771  
    613613
    614614      // allocate image, weight, mask for the new image for each peak
    615       pmSourceRedefinePixels (sourceOut, readoutOut, sourceOut->peak->x, sourceOut->peak->y, sourceOut->modelPSF->fitRadius);
     615      if (sourceOut->modelPSF) {
     616        pmSourceRedefinePixels (sourceOut, readoutOut, sourceOut->peak->x, sourceOut->peak->y, sourceOut->modelPSF->fitRadius);
     617      }
    616618
    617619      // child sources have not been subtracted in this image, but this flag may be raised if
  • branches/eam_branches/ipp-20110213/psphot/src/psphotReplaceUnfit.c

    r30624 r30771  
    155155      // sources have not yet been subtracted in this image (but this flag may be raised)
    156156      source->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
     157      if (!source->modelPSF) continue;
    157158
    158159      float Xo = source->modelPSF->params->data.F32[PM_PAR_XPOS];
     
    231232      bool isPSF = false;
    232233      pmModel *model = pmSourceGetModel(&isPSF, source);
     234      if (!model) continue;
     235
    233236      float radius = model->fitRadius; // save for future use below
    234237
Note: See TracChangeset for help on using the changeset viewer.