Changeset 18249 for branches/pap_branch_080617/ppSub/src/ppSubCamera.c
- Timestamp:
- Jun 20, 2008, 3:28:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_080617/ppSub/src/ppSubCamera.c
r17834 r18249 82 82 83 83 // Output image 84 pmFPAfile *output = pmFPAfileDefine Skycell(config, NULL, "PPSUB.OUTPUT");84 pmFPAfile *output = pmFPAfileDefineFromFile(config, input, 1, 1, "PPSUB.OUTPUT"); 85 85 if (!output) { 86 86 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSUB.OUTPUT")); … … 94 94 95 95 // Output mask 96 pmFPAfile *outMask = pmFPAfileDefine Skycell(config, output->fpa, "PPSUB.OUTPUT.MASK");96 pmFPAfile *outMask = pmFPAfileDefineOutput(config, output->fpa, "PPSUB.OUTPUT.MASK"); 97 97 if (!outMask) { 98 98 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSUB.OUTPUT.MASK")); … … 107 107 // Output weight 108 108 if (inputWeight && refWeight) { 109 pmFPAfile *outWeight = pmFPAfileDefine Skycell(config, output->fpa, "PPSUB.OUTPUT.WEIGHT");109 pmFPAfile *outWeight = pmFPAfileDefineOutput(config, output->fpa, "PPSUB.OUTPUT.WEIGHT"); 110 110 if (!outWeight) { 111 111 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSUB.OUTPUT.WEIGHT")); … … 119 119 } 120 120 121 #if 0 121 122 if (!pmFPAAddSourceFromFormat(output->fpa, "Subtraction", output->format)) { 122 123 psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA."); 123 124 return false; 124 125 } 126 #endif 125 127 126 128 pmFPAfile *sources = pmFPAfileDefineFromArgs(&status, config, "PPSUB.SOURCES", "PPSUB.SOURCES"); … … 153 155 154 156 // Internal-ish file for getting the PSF from the matched addition 155 pmFPAfile *psf = pmFPAfileDefine Skycell(config, psphot->fpa, "PSPHOT.PSF.LOAD");157 pmFPAfile *psf = pmFPAfileDefineOutputFromFile(config, output, "PSPHOT.PSF.LOAD"); 156 158 if (!psf) { 157 159 psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.PSF.LOAD");
Note:
See TracChangeset
for help on using the changeset viewer.
