IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2015, 10:05:06 PM (11 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20150616
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150616

  • branches/eam_branches/ipp-20150616/psphot/src/psphotReplaceUnfit.c

    r35769 r38552  
    316316    }
    317317
     318    pmSourceFitOptions *fitOptions = NULL;
     319    if (psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_FITS")) {
     320        fitOptions = psMetadataLookupPtr (&status, readout->analysis, "PCM_FIT_OPTIONS");
     321        psAssert (fitOptions, "missing pcm fit options");
     322    }
    318323
    319324    // XXX the sources have already been copied (merge into here?)
     
    368373            source->modelPSF = modelPSF;
    369374            source->modelPSF->fitRadius = radius;
    370             model = source->modelPSF;
     375            //  model = source->modelPSF;
    371376        }
    372377
    373378        if (model->isPCM) {
     379#if 0
    374380            psAssert(false, "this section is not complete");
    375381
     
    389395
    390396            psImageConvolveFFT (source->modelFlux, rawModelFlux, NULL, 0, psfKernel);
    391          
    392397            psFree (psfKernel);
    393398            psFree (rawModelFlux);
    394         }
    395 
    396         pmSourceCacheModel (source, maskVal);  // ALLOC x14 (!)
     399#endif
     400           pmPCMdata *pcm = pmPCMinit (source, fitOptions, model, maskVal, psfSize);
     401            if (pcm) {
     402                pmPCMCacheModel (source, maskVal, psfSize, pcm->nsigma);
     403                psFree(pcm);
     404            } else {
     405                psAssert (pcm, "pmPCMinit failed!");
     406            }
     407         
     408        } else {
     409            pmSourceCacheModel (source, maskVal);  // ALLOC x14 (!)
     410        }
    397411    }
    398412
Note: See TracChangeset for help on using the changeset viewer.