IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2011, 2:22:42 PM (14 years ago)
Author:
watersc1
Message:

Get concepts from unconvolved reference if we are not convolving.

File:
1 edited

Legend:

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

    r30619 r32697  
    1111{
    1212    psAssert(config, "Require configuration");
    13 
     13    // Check configuration for convolve option
     14    psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, PPSUB_RECIPE);
     15    bool noConvolve = psMetadataLookupBool(NULL, recipe, "NOCONVOLVE"); // Do not use convolved images.
     16   
    1417    pmFPAview *view = ppSubViewReadout(); // View to readout
    1518    pmReadout *outRO = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT");
     
    2528
    2629    // Get concepts from reference
    27     pmFPAfile *refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF.CONV"); // File with concepts
     30    pmFPAfile *refFile;
     31    if (noConvolve) {
     32      refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF"); // File with concepts
     33    }
     34    else {
     35      refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF.CONV"); // File with concepts
     36    }
    2837    pmFPA *invFPA = invRO->parent->parent->parent; // Inverse FPA
    2938    pmConceptsCopyFPA(invFPA, refFile->fpa, true, true);
Note: See TracChangeset for help on using the changeset viewer.