- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotStackParseCamera.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20111122/psphot merged: 33070-33071,33086,33088,33094-33095,33612,33640 /branches/eam_branches/ipp-20120405/psphot (added) merged: 33946,33953
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src/psphotStackParseCamera.c
r31154 r34041 59 59 } 60 60 } 61 psString expnum = psMetadataLookupStr(&status, input, "RAW:EXPNUM"); // Name of expnum image 62 if (expnum && strlen(expnum) > 0) { 63 if (!defineFile(config, rawInputFile, "PSPHOT.STACK.EXPNUM.RAW", expnum, PM_FPA_FILE_EXPNUM)) { 64 psError(PS_ERR_UNKNOWN, false, "Unable to define file from expnum %d (%s)", i, expnum); 65 return false; 66 } 67 } 61 68 nRaw ++; 62 69 } … … 84 91 } 85 92 } 93 psString expnum = psMetadataLookupStr(&status, input, "CNV:EXPNUM"); // Name of EXPNUM image 94 if (expnum && strlen(expnum) > 0) { 95 if (!defineFile(config, cnvInputFile, "PSPHOT.STACK.EXPNUM.CNV", expnum, PM_FPA_FILE_EXPNUM)) { 96 psError(PS_ERR_UNKNOWN, false, "Unable to define file from expnum %d (%s)", i, expnum); 97 return false; 98 } 99 } 86 100 psString psf = psMetadataLookupStr(&status, input, "CNV:PSF"); // Name of mask 87 101 if (psf && strlen(psf) > 0) { … … 115 129 } 116 130 131 psS64 stack_id = psMetadataLookupS64(&status, input, "STACK_ID"); 132 if (!status) { 133 psError(PS_ERR_UNKNOWN, false, "Unable to find STACK_ID from sources %d", i); 134 return false; 135 } 117 136 // generate an pmFPAimage for the output convolved image 118 137 // XXX output of these files should be optional … … 125 144 } 126 145 outputImage->save = true; 127 outputImage->fileID = i; // this is used to generate output names146 outputImage->fileID = stack_id; // this is used to generate output names 128 147 129 148 pmFPAfile *outputMask = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.MASK"); … … 137 156 } 138 157 outputMask->save = true; 139 outputMask->fileID = i; // this is used to generate output names158 outputMask->fileID = stack_id; // this is used to generate output names 140 159 141 160 pmFPAfile *outputVariance = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.VARIANCE"); … … 149 168 } 150 169 outputVariance->save = true; 151 outputVariance->fileID = i; // this is used to generate output names170 outputVariance->fileID = stack_id; // this is used to generate output names 152 171 153 172 // the output sources are carried on the outputImage->fpa structures … … 158 177 } 159 178 outsources->save = true; 160 outsources->fileID = i; // this is used to generate output names179 outsources->fileID = stack_id; // this is used to generate output names 161 180 } 162 181 }
Note:
See TracChangeset
for help on using the changeset viewer.
