IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 6:17:31 PM (14 years ago)
Author:
bills
Message:

Add function to copy detection efficiency data from one readout
to another. To be used in psphotStack

File:
1 edited

Legend:

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

    r34226 r34266  
    416416    psphotMagnitudes(config, view, STACK_SRC);
    417417
    418     // XXX NOTE: this function wants to have the PSF of the image, but we (so far) only measure the
    419     // PSF of the SRC image.  can we fake it by generating the PSF for DET as well (up above)?
    420     if (false && !psphotEfficiency(config, view, STACK_DET)) {
     418    if (!useRaw) {
     419        // psphotEfficiency wants to have the PSF of the image, but since we are measuring on
     420        // the convolved images we need to generate PSFs for the DET images
     421        if (!psphotChoosePSF (config, view, STACK_DET, false)) { // pass 1
     422            psLogMsg ("psphot", 3, "failure to construct a psf model for raw input");
     423            return psphotReadoutCleanup (config, view, STACK_DET);
     424        }
     425    }
     426    if (!psphotEfficiency(config, view, STACK_DET)) {
    421427        psErrorStackPrint(stderr, "Unable to determine detection efficiencies from fake sources");
    422428        psErrorClear();
    423429    }
     430    psphotCopyEfficiency (config, view, STACK_OUT, STACK_DET);
    424431
    425432    // replace failed sources?
Note: See TracChangeset for help on using the changeset viewer.