Changeset 33913
- Timestamp:
- May 25, 2012, 11:01:07 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
ippScripts/scripts/staticsky.pl (modified) (2 diffs)
-
psModules/src/camera/pmFPAfile.c (modified) (1 diff)
-
psModules/src/camera/pmFPAfile.h (modified) (1 diff)
-
psphot/src/psphotStackParseCamera.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/staticsky.pl
r33690 r33913 144 144 my $path_base = $file->{path_base}; 145 145 print "input: $path_base\n"; 146 my $stack_id = $file->{stack_id}; 146 147 147 148 my $imageCnv = $ipprc->filename("PPSTACK.OUTPUT", $path_base ); # Image name … … 172 173 &my_die("Couldn't find input: $sources", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$sources"); 173 174 175 print $listFile " STACK_ID S64 " . $stack_id . "\n"; 174 176 print $listFile " RAW:IMAGE STR " . $imageRaw . "\n"; 175 177 print $listFile " RAW:MASK STR " . $maskRaw . "\n"; -
trunk/psModules/src/camera/pmFPAfile.c
r33690 r33913 382 382 // Number of the file in list 383 383 psString num = NULL; // Number to use 384 psStringAppend(&num, "% 03d", file->fileID);384 psStringAppend(&num, "%" PRId64, file->fileID); 385 385 psStringSubstitute(&newRule, num, "{FILE.ID}"); 386 386 psFree(num); -
trunk/psModules/src/camera/pmFPAfile.h
r33690 r33913 114 114 115 115 int fileIndex; // Index of file 116 int fileID;// internal sequence number116 psS64 fileID; // internal sequence number 117 117 118 118 psS64 imageId, sourceId; // Image and source identifiers -
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.
