IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21259


Ignore:
Timestamp:
Feb 1, 2009, 11:57:57 AM (17 years ago)
Author:
eugene
Message:

replaced psphotReadout with psphotReadoutKnownSources, using sources stored on PPSTACK.OUTPUT:chip

File:
1 edited

Legend:

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

    r21183 r21259  
    138138    psMetadataAddImageMask (recipe, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "Bits to use for mark", markValue);
    139139
    140     if (!psphotReadout(config, view)) {
     140    // XXX replace with psphotReadoutKnownSources (config, view)
     141    // XXX this function requires that we construct the input source list and place it on PSPHOT.INPUT.CMF
     142    pmCell *sourcesCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT");
     143    psArray *inSources = psMetadataLookupPtr (NULL, sourcesCell->analysis, "PSPHOT.SOURCES");
     144    if (!inSources) {
     145        psError(PS_ERR_UNKNOWN, false, "Unable to find input sources");
     146        return false;
     147    }
     148
     149    if (!psphotReadoutKnownSources(config, view, inSources)) {
    141150        // Clear the error, so that the output files are written.
    142151        psWarning("Unable to perform photometry on stacked image.");
Note: See TracChangeset for help on using the changeset viewer.