IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30045


Ignore:
Timestamp:
Dec 15, 2010, 11:34:46 AM (15 years ago)
Author:
bills
Message:

use higher sigma limit when finding detections for PPSUB.POS2.SOURCES

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20101206/ppSub/src/ppSubLoop.c

    r29937 r30045  
    7070    }
    7171    if (data->forcedPhot2) {
     72        // XXX: Change the recipe to use a higher nsigma limit and quit after pass1
     73        psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
     74
     75        psF32 nsigma_peak_save = psMetadataLookupF32 (NULL, recipe, "PEAKS_NSIGMA_LIMIT");
     76        char *breakPt_save =  psMetadataLookupStr (NULL, recipe, "BREAK_POINT");
     77
     78        // XXX: add recipe entries for this instead of hard coding it
     79        psMetadataAddF32(recipe, PS_LIST_TAIL, "PEAKS_NSIGMA_LIMIT", PS_META_REPLACE, "", 25.0);
     80        psMetadataAddStr(recipe, PS_LIST_TAIL, "BREAK_POINT", PS_META_REPLACE, "", "PASS1");
     81
    7282        bool foundDetections = false;
    7383        if (!ppSubInputDetections(&foundDetections, "PPSUB.POS2.SOURCES", "PPSUB.REF", data)) {
    7484            psError(psErrorCodeLast(), false, "Unable to measure positive detections (2)");
    75             return false;
    76         }
     85            psMetadataAddF32(recipe, PS_LIST_TAIL, "PEAKS_NSIGMA_LIMIT", PS_META_REPLACE, "", nsigma_peak_save);
     86            psMetadataAddStr(recipe, PS_LIST_TAIL, "BREAK_POINT", PS_META_REPLACE, "", breakPt_save);
     87            return false;
     88        }
     89        psMetadataAddF32(recipe, PS_LIST_TAIL, "PEAKS_NSIGMA_LIMIT", PS_META_REPLACE, "", nsigma_peak_save);
     90        psMetadataAddStr(recipe, PS_LIST_TAIL, "BREAK_POINT", PS_META_REPLACE, "", breakPt_save);
    7791        // if nothing was found, don't bother doing the forced photometry below
    7892        if (!foundDetections) {
    79             psWarning ("no sources found in positive image 1, skipping forced photometry");
    80             data->forcedPhot1 = false;
     93            psWarning ("no sources found in positive image 2, skipping forced photometry");
     94            data->forcedPhot2 = false;
    8195        }
    8296    }
Note: See TracChangeset for help on using the changeset viewer.