IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 12, 2009, 1:03:29 PM (17 years ago)
Author:
Paul Price
Message:

Adding more debugging output. Think I've solved the problem of the poor photometry: the background being added in to the fake images produces the bad photometry. Without it, the photometry s.d. goes from 0.08 mag to 0.02 mag. Want to replace it with the proper psphot background model (not done yet). These files are currently in an intermediate state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090108/ppStack/src/ppStackLoop.c

    r21101 r21106  
    348348        psFree(fileIter);
    349349
     350        // Generate target PSF
     351        targetPSF = ppStackPSF(config, numCols, numRows, psfs);
     352        psFree(psfs);
     353        if (!targetPSF) {
     354            psError(PS_ERR_UNKNOWN, false, "Unable to determine output PSF.");
     355            psFree(sourceLists);
     356            psFree(view);
     357            return false;
     358        }
     359        psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "PSF.TARGET", PS_DATA_UNKNOWN,
     360                         "Target PSF for stack", targetPSF);
     361
    350362        // Zero point calibration
    351363        sumExposure = ppStackSourcesTransparency(sourceLists, view, config);
     
    354366            psFree(sourceLists);
    355367            psFree(targetPSF);
    356             return false;
    357         }
    358 
    359         targetPSF = ppStackPSF(config, numCols, numRows, psfs);
    360         psFree(psfs);
    361         if (!targetPSF) {
    362             psError(PS_ERR_UNKNOWN, false, "Unable to determine output PSF.");
    363             psFree(sourceLists);
    364             psFree(view);
    365368            return false;
    366369        }
     
    450453        psArray *regions = NULL, *kernels = NULL; // Regions and kernels used in subtraction
    451454        psTimerStart("PPSTACK_MATCH");
     455
     456
     457        // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     458        // Passing common set of sources, rather than individual
     459
    452460        if (!ppStackMatch(readout, &regions, &kernels, &matchChi2->data.F32[i], &weightings->data.F32[i],
    453                           sourceLists->data[i], targetPSF, rng, config)) {
     461                          sourceLists->data[0], targetPSF, rng, config)) {
    454462            psErrorStackPrint(stderr, "Unable to match image %d --- ignoring.", i);
    455463            inputMask->data.U8[i] = PPSTACK_MASK_MATCH;
Note: See TracChangeset for help on using the changeset viewer.