IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24181


Ignore:
Timestamp:
May 13, 2009, 5:12:53 PM (17 years ago)
Author:
Paul Price
Message:

Fixing ticket 1246: inverting preference order for stamps source (specified sources by user first, general sources from photometry second). ppSub wasn't using the correct source for the name of the stamps file from the user (artifact of recent reorganisation).

Location:
trunk
Files:
2 edited

Legend:

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

    r24065 r24181  
    9494    float spacing = psMetadataLookupF32(NULL, recipe, "STAMP.SPACING"); // Typical stamp spacing
    9595    float threshold = psMetadataLookupF32(NULL, recipe, "STAMP.THRESHOLD"); // Threshold for stmps
    96     const char *stampsName = psMetadataLookupStr(&mdok, config->arguments, "STAMPS"); // Filename for stamps
    9796
    9897    const char *typeStr = psMetadataLookupStr(NULL, recipe, "KERNEL.TYPE"); // Kernel type
     
    151150    } else {
    152151        success = pmSubtractionMatch(inConv, refConv, inRO, refRO, footprint, stride, regionSize,
    153                                      spacing, threshold, sources, stampsName, type, size, order,
     152                                     spacing, threshold, sources, data->stamps, type, size, order,
    154153                                     widths, orders, inner, ringsOrder, binning, penalty, optimum,
    155154                                     optWidths, optOrder, optThresh, iter, rej, sys, maskVal,
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r23989 r24181  
    432432            }
    433433
    434             if (sources) {
     434            if (stampsName && strlen(stampsName) > 0) {
     435                stamps = pmSubtractionStampsSetFromFile(stampsName, ro1->image, subMask, region, size,
     436                                                        footprint, stampSpacing, subMode);
     437            } else if (sources) {
    435438                stamps = pmSubtractionStampsSetFromSources(sources, ro1->image, subMask, region, size,
    436439                                                           footprint, stampSpacing, subMode);
    437             } else if (stampsName && strlen(stampsName) > 0) {
    438                 stamps = pmSubtractionStampsSetFromFile(stampsName, ro1->image, subMask, region, size,
    439                                                         footprint, stampSpacing, subMode);
    440440            }
    441441
Note: See TracChangeset for help on using the changeset viewer.