IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16863


Ignore:
Timestamp:
Mar 6, 2008, 4:15:36 PM (18 years ago)
Author:
Paul Price
Message:

Do photometry and combination files separately.

File:
1 edited

Legend:

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

    r16860 r16863  
    1616// Here follows lists of files for activation/deactivation at various stages.  Each must be NULL-terminated.
    1717
    18 #if 0
    19 // All files in the system
    20 static char *allFiles[] = { "PPSTACK.INPUT", "PPSTACK.INPUT.MASK", "PPSTACK.INPUT.WEIGHT",
    21                             "PPSTACK.OUTPUT", "PPSTACK.OUTPUT.MASK", "PPSTACK.OUTPUT.WEIGHT",
    22                             "PSPHOT.PSF.SAVE", "PSPHOT.PSF.LOAD", "PPSTACK.SOURCES",
    23                             "PSPHOT.OUTPUT", "PSPHOT.RESID", "PSPHOT.BACKMDL", "PSPHOT.BACKMDL.STDEV",
    24                             "PSPHOT.BACKGND", "PSPHOT.BACKSUB", "SOURCE.PLOT.MOMENTS",
    25                             "SOURCE.PLOT.PSFMODEL", "SOURCE.PLOT.APRESID", "PSPHOT.INPUT.CMF",
    26                             0 };
    27 #endif
    28 
    2918// Files required in preparation for convolution
    30 static char *prepareFiles[] = { "PSPHOT.PSF.LOAD", "PPSTACK.SOURCES", 0 };
     19static char *prepareFiles[] = { "PPSTACK.INPUT.PSF", "PPSTACK.SOURCES", NULL };
    3120
    3221// Files required for the convolution
    33 static char *convolveFiles[] = { "PPSTACK.INPUT", "PPSTACK.INPUT.MASK", "PPSTACK.INPUT.WEIGHT", 0 };
     22static char *convolveFiles[] = { "PPSTACK.INPUT", "PPSTACK.INPUT.MASK", "PPSTACK.INPUT.WEIGHT", NULL };
    3423
    3524// Output files for the combination
    36 static char *combineFiles[] = { "PPSTACK.OUTPUT", "PPSTACK.OUTPUT.MASK", "PPSTACK.OUTPUT.WEIGHT", 0 };
     25static char *combineFiles[] = { "PPSTACK.OUTPUT", "PPSTACK.OUTPUT.MASK", "PPSTACK.OUTPUT.WEIGHT", NULL };
    3726
    3827// Files for photometry
     
    4029                             "PSPHOT.BACKMDL.STDEV", "PSPHOT.BACKGND", "PSPHOT.BACKSUB",
    4130                             "SOURCE.PLOT.MOMENTS", "SOURCE.PLOT.PSFMODEL", "SOURCE.PLOT.APRESID",
    42                              "PSPHOT.INPUT.CMF", 0 };
     31                             "PSPHOT.INPUT.CMF", NULL };
    4332
    4433
     
    369358        pmFPAfileActivate(config->files, false, NULL);
    370359        fileActivation(config, combineFiles, true);
    371         if (psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY")) {
    372             fileActivation(config, photFiles, true);
    373         }
    374360        pmFPAview *view = filesIterateDown(config);
    375361        if (!view) {
     
    557543
    558544        if (psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY")) {
     545
     546            fileActivation(config, combineFiles, false);
     547            fileActivation(config, photFiles, true);
     548            filesIterateDown(config);
     549
    559550            psTrace("ppStack", 1, "Photometering stacked image....\n");
    560551            if (!ppStackPhotometry(config, outRO, view)) {
     
    564555                return false;
    565556            }
     557
     558            fileActivation(config, combineFiles, true);
    566559        }
    567560
Note: See TracChangeset for help on using the changeset viewer.