IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2011, 2:41:42 PM (15 years ago)
Author:
eugene
Message:

match sources before final linear fit (to enable forced photometry of PSF mags); only a single detection per image allowed for an object; distinguish conditions for Radial Aperture analysis and Petrosian analysis; no Radial Aperture analysis for chisq image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110906/psphot/src/psphotRadialApertures.c

    r32616 r32628  
    2626    int num = psphotFileruleCount(config, filerule);
    2727
     28    // skip the chisq image (optionally?)
     29    int chisqNum = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.CHISQ.NUM");
     30    if (!status) chisqNum = -1;
     31
    2832    // loop over the available readouts
    2933    for (int i = 0; i < num; i++) {
     34        if (i == chisqNum) continue; // skip chisq image
     35
    3036        if (!psphotRadialAperturesReadout (config, view, filerule, i, recipe, entry)) {
    3137            psError (PSPHOT_ERR_CONFIG, false, "failed on measure extended source aperture-like parameters for %s entry %d", filerule, i);
     
    218224        pmSource *source = sources->data[i];
    219225
     226        // if we have checked the source validity on the basis of the object set, then
     227        // we either skip these tests below or we skip the source completely
     228        if (source->tmpFlags & PM_SOURCE_TMPF_RADIAL_SKIP) continue;
     229        if (source->tmpFlags & PM_SOURCE_TMPF_RADIAL_KEEP) goto keepSource;
     230
    220231        // skip PSF-like and non-astronomical objects
    221232        if (source->type == PM_SOURCE_TYPE_DEFECT) continue;
     
    235246        if (source->peak->x > region->x1) continue;
    236247        if (source->peak->y > region->y1) continue;
     248
     249    keepSource:
    237250
    238251        // allocate pmSourceExtendedParameters, if not already defined
Note: See TracChangeset for help on using the changeset viewer.