IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2009, 11:58:24 AM (17 years ago)
Author:
Paul Price
Message:

Committing changes in progress. Attempting to make ppSub spit out not just the regular subtracted image and sources, but the inverse with sources in the inverse (for the warp-warp difference). Does not compile yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppSub/src/ppSubReadout.c

    r23688 r23704  
    2121#include "ppSub.h"
    2222
    23 bool ppSubReadout(pmConfig *config, ppSubData *data, const pmFPAview *view)
     23bool ppSubReadout(const char *name, bool reverse, pmConfig *config, ppSubData *data, const pmFPAview *view)
    2424{
    25     psTimerStart("PPSUB_MATCH");
     25    psAssert(name, "Require name");
     26    psAssert(config, "Require configuration");
     27    psAssert(data, "Require data");
     28    psAssert(view, "Require view");
    2629
    27     if (!ppSubSetMasks(config, view)) {
    28         psError(PS_ERR_UNKNOWN, false, "Unable to set masks.");
    29         return false;
    30     }
    31 
    32     if (!ppSubMatchPSFs(config, data, view)) {
    33         psError(PS_ERR_UNKNOWN, false, "Unable to match PSFs.");
    34         return false;
    35     } else if (data->quality) {
    36         // Can't do anything at all
    37         return true;
    38     }
    39 
    40     if (!ppSubDefineOutput(config, view)) {
     30    if (!ppSubDefineOutput(name, config, data, view)) {
    4131        psError(PS_ERR_UNKNOWN, false, "Unable to define output.");
    4232        return false;
    4333    }
    4434
    45     if (!data->quality && !ppSubMakePSF(config, data, view)) {
     35    if (!data->quality && !ppSubMakePSF(name, config, data, view)) {
    4636        psError(PS_ERR_UNKNOWN, false, "Unable to generate PSF.");
    4737        return false;
    4838    }
    4939
    50     if (!ppSubReadoutSubtract(config, view)) {
     40    if (!ppSubReadoutSubtract(name, reverse, config, view)) {
    5141        psError(PS_ERR_UNKNOWN, false, "Unable to subtract images.");
    5242        return false;
     
    5444
    5545    // Higher order background subtraction using psphot
    56     if (!ppSubBackground(config, view)) {
     46    if (!ppSubBackground(name, config, view)) {
    5747        psError(PS_ERR_UNKNOWN, false, "Unable to subtract background.");
    5848        return false;
    5949    }
    6050
    61     if (!data->quality && !ppSubReadoutPhotometry(config, data, view)) {
     51    if (!data->quality && data->!ppSubReadoutPhotometry(name, config, data, view)) {
    6252        psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry.");
    6353        return false;
    6454    }
    6555
    66     if (!ppSubReadoutUpdate(config, data, view)) {
     56    if (!ppSubReadoutUpdate(name, config, data, view)) {
    6757        psError(PS_ERR_UNKNOWN, false, "Unable to update.");
    6858        return false;
    6959    }
    7060
     61
     62
     63
    7164    return true;
    7265}
Note: See TracChangeset for help on using the changeset viewer.