IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2011, 10:44:17 AM (15 years ago)
Author:
eugene
Message:

distinguish window used for moment calculation and window used for model fitting more clearly; re-generate the cached model after PCM fitting using new function (instead of caching the fit models); add function to set window which shrinks as well as expands as needed

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

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psphot/src

    • Property svn:ignore
      •  

        old new  
        2222psphotMakePSF
        2323psphotStack
         24psphotModelTest
  • branches/eam_branches/ipp-20110710/psphot/src/psphotKronMasked.c

    r31673 r32157  
    9696        if (!source->moments) continue;
    9797
     98        float windowRadius = RADIUS;
     99        if (source->moments->KronFlux / source->moments->KronFluxErr > 10.0) {
     100            windowRadius = PS_MAX (RADIUS, 10*source->moments->Mrf);
     101        }
     102
     103        // re-allocate image, weight, mask arrays for each peak with box big enough to fit BIG_RADIUS
     104        pmSourceRedefinePixels (source, readout, source->peak->x, source->peak->y, windowRadius + 2);
     105
     106        pmMoments psfMoments = *source->moments;
     107
    98108        // replace object in image
    99109        if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) {
     
    101111        }
    102112
    103         psphotKronMag (source, RADIUS, MIN_KRON_RADIUS, maskVal);
     113        psphotKronMag (source, windowRadius, MIN_KRON_RADIUS, maskVal);
    104114
    105115        // re-subtract the object, leave local sky
     
    136146        }
    137147    }           
     148
    138149    // psphotSaveImage (NULL, kronMask, "kronmask.fits");
    139150    psLogMsg ("psphot.kron", PS_LOG_DETAIL, "measure masked kron magnitudes : %f sec for %ld objects\n", psTimerMark ("psphot.kron"), sources->n);
Note: See TracChangeset for help on using the changeset viewer.