IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2013, 4:56:44 PM (13 years ago)
Author:
eugene
Message:

cleanup file activation calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpCleanup.c

    r35521 r35536  
    1111
    1212# include "pswarp.h"
    13 # include "pswarpFileNames.h"
     13
     14// Lists of file rules which we may need to save here
     15static char *outputFiles[] = {
     16  "PSWARP.OUTPUT",
     17  "PSWARP.OUTPUT.MASK",
     18  "PSWARP.OUTPUT.VARIANCE",
     19  "PSWARP.OUTPUT.BKGMODEL",
     20  "PSWARP.OUTPUT.SOURCES",
     21  "PSPHOT.INPUT",
     22  "PSPHOT.OUTPUT",
     23  "PSPHOT.RESID",
     24  "PSPHOT.BACKMDL",
     25  "PSPHOT.BACKMDL.STDEV",
     26  "PSPHOT.BACKGND",
     27  "PSPHOT.BACKSUB",
     28  "PSPHOT.PSF.SAVE",
     29  "SOURCE.PLOT.MOMENTS",
     30  "SOURCE.PLOT.PSFMODEL",
     31  "SOURCE.PLOT.APRESID",
     32  NULL
     33};
    1434
    1535void pswarpCleanup (pmConfig *config, pswarpStatsFile *statsFile)
     
    1737    psExit exitValue = pswarpExitCode(PS_EXIT_SUCCESS); // Exit code
    1838
    19     // Ensure everything is written out, at every level
    20     pswarpFileActivation(config, detectorFiles, false);
    21     pswarpFileActivation(config, independentFiles, false);
    22 
    23     pswarpFileActivation(config, photFiles, true);
    24     pswarpFileActivation(config, skycellFiles, true);
    25     pmFPAfileActivate(config->files, true, "PSWARP.OUTPUT.SOURCES");
     39    // activate all of the relevant output files
     40    pmFPAfileActivate(config->files, false, NULL);
     41    for (int i = 0; outputFiles[i] != NULL; i++) {
     42        pmFPAfileActivate(config->files, true, outputFiles[i]);
     43    }
    2644
    2745    pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PSWARP.OUTPUT");
Note: See TracChangeset for help on using the changeset viewer.