IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2010, 12:12:38 PM (16 years ago)
Author:
eugene
Message:

ensure masked pixels are NAN in output; flag detections with bright pos image neighbors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubLoop.c

    r28121 r29003  
    1717#include <pslib.h>
    1818#include <psmodules.h>
     19#include <psphot.h>
    1920
    2021#include "ppSub.h"
     22
     23bool dumpout(pmConfig *config, char *name)
     24{
     25  pmFPAview *view = ppSubViewReadout(); // View to readout
     26  pmReadout *out = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT");
     27  psphotSaveImage (NULL, out->image, name);
     28  return true;
     29}
     30
    2131
    2232bool ppSubLoop(ppSubData *data)
     
    105115        return false;
    106116    }
     117    // dumpout(config, "diff.1.fits");
    107118
    108119    // Close convolved files
     
    111122        return false;
    112123    }
     124    // dumpout(config, "diff.2a.fits");
    113125
    114126    // Higher order background subtraction using psphot
     
    117129        return false;
    118130    }
     131    // dumpout(config, "diff.2b.fits");
    119132
    120133    // Perform Variance correction (rescale within a modest range)
     
    123136        return false;
    124137    }
     138    // dumpout(config, "diff.2c.fits");
    125139
    126140    if (data->quality) {
     
    138152        return false;
    139153    }
     154    // dumpout(config, "diff.3.fits");
    140155
    141156    if (!ppSubFilesIterateUp(config, PPSUB_FILES_PHOT_SUB)) {
     
    157172      }
    158173    }
     174    // dumpout(config, "diff.4.fits");
    159175   
    160176    // generate the binned image used to write the jpeg
     
    204220    } else {
    205221        // Close subtraction files
     222        // dumpout(config, "diff.5.fits");
    206223        if (!ppSubFilesIterateUp(config, PPSUB_FILES_SUB)) {
    207224            psError(PPSUB_ERR_IO, false, "Unable to close subtraction files.");
Note: See TracChangeset for help on using the changeset viewer.