- Timestamp:
- May 8, 2013, 4:56:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpCleanup.c
r35521 r35536 11 11 12 12 # include "pswarp.h" 13 # include "pswarpFileNames.h" 13 14 // Lists of file rules which we may need to save here 15 static 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 }; 14 34 15 35 void pswarpCleanup (pmConfig *config, pswarpStatsFile *statsFile) … … 17 37 psExit exitValue = pswarpExitCode(PS_EXIT_SUCCESS); // Exit code 18 38 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 } 26 44 27 45 pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PSWARP.OUTPUT");
Note:
See TracChangeset
for help on using the changeset viewer.
