Changeset 36441 for trunk/ippScripts/scripts/staticsky.pl
- Timestamp:
- Jan 14, 2014, 2:28:47 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/staticsky.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/bills_branches/bills_201312 (added) merged: 36383,36386,36388-36396,36406-36407,36409-36412,36415-36420,36422-36427,36433,36436-36439
- Property svn:mergeinfo changed
-
trunk/ippScripts/scripts/staticsky.pl
r34852 r36441 138 138 my $configuration = $ipprc->filename("PSPHOT.STACK.CONFIG", $outroot); 139 139 140 my $needConvolvedImages = 0; 141 140 142 foreach my $file (@$files) { 141 143 print $listFile "INPUT METADATA\n"; … … 146 148 my $stack_id = $file->{stack_id}; 147 149 148 my $imageCnv = $ipprc->filename("PPSTACK.OUTPUT", $path_base ); # Image name 149 my $maskCnv = $ipprc->filename("PPSTACK.OUTPUT.MASK", $path_base ); # Mask name 150 my $weightCnv = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name 151 my $expnumCnv = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM", $path_base ); # Expnum name 150 my ($imageCnv, $maskCnv, $weightCnv, $expnumCnv); 151 if ($needConvolvedImages) { 152 $imageCnv = $ipprc->filename("PPSTACK.OUTPUT", $path_base ); # Image name 153 $maskCnv = $ipprc->filename("PPSTACK.OUTPUT.MASK", $path_base ); # Mask name 154 $weightCnv = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name 155 $expnumCnv = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM", $path_base ); # Expnum name 156 } 152 157 153 158 my $imageRaw = $ipprc->filename("PPSTACK.UNCONV", $path_base ); # Image name … … 166 171 &my_die("Couldn't find input: $weightRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightRaw"); 167 172 &my_die("Couldn't find input: $expnumRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumRaw"); 168 &my_die("Couldn't find input: $imageCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$imageCnv"); 169 &my_die("Couldn't find input: $maskCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskCnv"); 170 &my_die("Couldn't find input: $weightCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightCnv"); 171 &my_die("Couldn't find input: $expnumCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumCnv"); 172 &my_die("Couldn't find input: $psfCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$psfCnv"); 173 if ($needConvolvedImages) { 174 &my_die("Couldn't find input: $imageCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$imageCnv"); 175 &my_die("Couldn't find input: $maskCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskCnv"); 176 &my_die("Couldn't find input: $weightCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightCnv"); 177 &my_die("Couldn't find input: $expnumCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumCnv"); 178 &my_die("Couldn't find input: $psfCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$psfCnv"); 179 } 173 180 &my_die("Couldn't find input: $sources", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$sources"); 174 181 … … 178 185 print $listFile " RAW:VARIANCE STR " . $weightRaw . "\n"; 179 186 print $listFile " RAW:EXPNUM STR " . $expnumRaw . "\n"; 180 181 print $listFile " CNV:IMAGE STR " . $imageCnv . "\n";182 print $listFile " CNV:MASK STR " . $maskCnv . "\n";183 print $listFile " CNV:VARIANCE STR " . $weightCnv . "\n";184 print $listFile " CNV:EXPNUM STR " . $expnumCnv . "\n";185 print $listFile " CNV:PSF STR " . $psfCnv . "\n";186 187 187 print $listFile " SOURCES STR " . $sources . "\n"; 188 if ($needConvolvedImages) { 189 print $listFile " CNV:IMAGE STR " . $imageCnv . "\n"; 190 print $listFile " CNV:MASK STR " . $maskCnv . "\n"; 191 print $listFile " CNV:VARIANCE STR " . $weightCnv . "\n"; 192 print $listFile " CNV:EXPNUM STR " . $expnumCnv . "\n"; 193 print $listFile " CNV:PSF STR " . $psfCnv . "\n"; 194 } 188 195 189 196 print $listFile "END\n\n";
Note:
See TracChangeset
for help on using the changeset viewer.
