IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2011, 5:23:09 PM (15 years ago)
Author:
eugene
Message:

measure a core flux in the moment analysis - this can be used with the kron flux to flag (and exclude?) detections in the badly-subtracted background regions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psModules/src/objects/pmSource.c

    r30775 r30865  
    637637            // XXX eliminate the classification?
    638638            if ((source->moments->SN > 10) && (sigX < 0.05 || sigY < 0.05)) {
     639                source->type = PM_SOURCE_TYPE_DEFECT;
     640                source->mode |= PM_SOURCE_MODE_DEFECT;
     641                Ncr ++;
     642                continue;
     643            }
     644
     645            // check for insignificant sources or excessively low-surface brightness
     646            float coreSN = source->moments->KronCore / source->moments->KronCoreErr;
     647            float coreKR = source->moments->KronCore / source->moments->KronFlux;
     648
     649            // XXX these values need to be in the recipe...
     650            if (false && isfinite(coreSN) && (coreSN < 5.0)) {
     651                source->type = PM_SOURCE_TYPE_DEFECT;
     652                source->mode |= PM_SOURCE_MODE_DEFECT;
     653                Ncr ++;
     654                continue;
     655            }
     656            if (false && isfinite(coreKR) && (coreKR < 0.1)) {
    639657                source->type = PM_SOURCE_TYPE_DEFECT;
    640658                source->mode |= PM_SOURCE_MODE_DEFECT;
Note: See TracChangeset for help on using the changeset viewer.