- Timestamp:
- Jun 25, 2015, 10:05:06 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150616
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotReplaceUnfit.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150616
-
branches/eam_branches/ipp-20150616/psphot/src/psphotReplaceUnfit.c
r35769 r38552 316 316 } 317 317 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 } 318 323 319 324 // XXX the sources have already been copied (merge into here?) … … 368 373 source->modelPSF = modelPSF; 369 374 source->modelPSF->fitRadius = radius; 370 model = source->modelPSF;375 // model = source->modelPSF; 371 376 } 372 377 373 378 if (model->isPCM) { 379 #if 0 374 380 psAssert(false, "this section is not complete"); 375 381 … … 389 395 390 396 psImageConvolveFFT (source->modelFlux, rawModelFlux, NULL, 0, psfKernel); 391 392 397 psFree (psfKernel); 393 398 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 } 397 411 } 398 412
Note:
See TracChangeset
for help on using the changeset viewer.
