Changeset 33913 for trunk/psphot/src/psphotStackParseCamera.c
- Timestamp:
- May 25, 2012, 11:01:07 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackParseCamera.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackParseCamera.c
r33690 r33913 129 129 } 130 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 } 131 136 // generate an pmFPAimage for the output convolved image 132 137 // XXX output of these files should be optional … … 139 144 } 140 145 outputImage->save = true; 141 outputImage->fileID = i; // this is used to generate output names146 outputImage->fileID = stack_id; // this is used to generate output names 142 147 143 148 pmFPAfile *outputMask = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.MASK"); … … 151 156 } 152 157 outputMask->save = true; 153 outputMask->fileID = i; // this is used to generate output names158 outputMask->fileID = stack_id; // this is used to generate output names 154 159 155 160 pmFPAfile *outputVariance = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.VARIANCE"); … … 163 168 } 164 169 outputVariance->save = true; 165 outputVariance->fileID = i; // this is used to generate output names170 outputVariance->fileID = stack_id; // this is used to generate output names 166 171 167 172 // the output sources are carried on the outputImage->fpa structures … … 172 177 } 173 178 outsources->save = true; 174 outsources->fileID = i; // this is used to generate output names179 outsources->fileID = stack_id; // this is used to generate output names 175 180 } 176 181 }
Note:
See TracChangeset
for help on using the changeset viewer.
