IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2015, 3:14:29 PM (11 years ago)
Author:
bills
Message:

call psphotStackMatchPSFsetup before psphotSourceChildrenByObject so that the images are ready to be
used to instantiate the PCM extended source models.
Add new argument to psphotSourceChildrenByObject

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotStackReadout.c

    r38385 r38512  
    3535        psphotSaveImage (NULL, readout->mask, line);
    3636    }
     37    // psphotSaveImage leaves an error on the stack
     38    psErrorClear();
    3739    return true;
    3840}
     
    348350    // XXX NOTE : if we use the pre-20130914 psphotStackReadout code, we need to use 'false' for the
    349351    // sourcesSubtracted argument
    350     psArray *objectsOut = psphotSourceChildrenByObject (config, view, STACK_OUT, objects, true);
     352
     353    // do this here so that the variance image is available to reset the models
     354    psphotStackMatchPSFsetup (config, view, STACK_OUT, STACK_RAW);
     355    psArray *objectsOut = psphotSourceChildrenByObject (config, view, STACK_OUT, STACK_RAW, objects, true);
    351356    if (!objectsOut) {
    352357        psFree(objects);
     
    364369
    365370        // set up the FWHM vector
    366         psphotStackMatchPSFsetup (config, view, STACK_OUT, STACK_RAW);
    367371        psphotDumpImages (config, view, STACK_RAW, "raw.t0");
    368372        psphotDumpImages (config, view, STACK_OUT, "out.t0");
Note: See TracChangeset for help on using the changeset viewer.