IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 13, 2007, 5:39:58 PM (19 years ago)
Author:
Paul Price
Message:

Cleaning up code to produce photometry. Moving the call to psphot into ppStackReadout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackReadout.c

    r14811 r14834  
    66#include <pslib.h>
    77#include <psmodules.h>
     8#include <psphot.h>
    89
    910#include "ppStack.h"
     
    1819{
    1920    // Get the recipe values
     21    bool mdok;                          // Status of MD lookup
    2022    int iter = psMetadataLookupS32(NULL, config->arguments, "ITER"); // Rejection iterations
    2123    float combineRej = psMetadataLookupF32(NULL, config->arguments, "COMBINE.REJ"); // Combination threshold
     
    2325    psMaskType maskBlank = psMetadataLookupU8(NULL, config->arguments, "MASK.BLANK"); // Mask for blank reg.
    2426    float threshold = psMetadataLookupF32(NULL, config->arguments, "THRESHOLD.MASK"); // Threshold for mask deconvolution
     27    bool photometry = psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY"); // Perform photometry?
    2528
    2629    // Get the output target
     
    317320    psFree(cellList);
    318321
     322    if (photometry && !psphotReadout(config, view)) {
     323        psError(psErrorCodeLast(), false, "Unable to perform photometry on stacked image.\n");
     324        return false;
     325    }
     326
     327
     328
     329
    319330    psFree(stack);
    320331    psFree(outRO);                      // Drop reference
Note: See TracChangeset for help on using the changeset viewer.