IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2010, 3:27:39 PM (16 years ago)
Author:
eugene
Message:

psphotStack now runs with convolved images and stack photometry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.20100506/src/psphotStackReadout.c

    r27909 r27919  
    3939    // generate a background model (median, smoothed image)
    4040    // XXX I think this is not defined correctly for an array of images.
     41    // XXX probably need to subtract the model (same model?) for both RAW and OUT
    4142    if (!psphotModelBackground (config, view, STACK_RAW)) {
    4243        return psphotReadoutCleanup (config, view, STACK_OUT);
     
    5657    }
    5758
    58     if (!psphotStackChisqImage(config, view, STACK_RAW)) {
     59    if (!psphotStackChisqImage(config, view, STACK_RAW, STACK_OUT)) {
    5960        psError (PSPHOT_ERR_UNKNOWN, false, "failure to generate chisq image");
    6061        return psphotReadoutCleanup (config, view, STACK_OUT);
     
    6869    if (!psphotFindDetections (config, view, STACK_RAW, true)) { // pass 1
    6970        // this only happens if we had an error in psphotFindDetections
     71        psError (PSPHOT_ERR_UNKNOWN, false, "failure in peak analysis");
     72        return psphotReadoutCleanup (config, view, STACK_OUT);
     73    }
     74
     75    // XXX do this now or below?
     76    // remove chisq image from config->file:PSPHOT.INPUT (why?)
     77    // psphotStackRemoveChisqFromInputs(config, STACK_RAW);
     78
     79    // copy the detections from RAW to OUT
     80    if (!psphotCopySources (config, view, STACK_OUT, STACK_RAW)) {
    7081        psError (PSPHOT_ERR_UNKNOWN, false, "failure in peak analysis");
    7182        return psphotReadoutCleanup (config, view, STACK_OUT);
     
    170181    psphotSourceFreePixels (config, view, STACK_OUT);
    171182
     183    // XXX do this now or above?
    172184    // remove chisq image from config->file:PSPHOT.INPUT (why?)
    173185    psphotStackRemoveChisqFromInputs(config, STACK_RAW);
Note: See TracChangeset for help on using the changeset viewer.