Changeset 33690 for trunk/ippScripts/scripts/staticsky.pl
- Timestamp:
- Apr 3, 2012, 5:46:39 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/staticsky.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/staticsky.pl
r31662 r33690 89 89 90 90 my $logDest = $ipprc->filename("LOG.EXP", $outroot); 91 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $sky_id, $PS_EXIT_SYS_ERROR ) if $redirect;91 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $sky_id, $PS_EXIT_SYS_ERROR ) if $redirect; 92 92 93 93 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot); … … 148 148 my $maskCnv = $ipprc->filename("PPSTACK.OUTPUT.MASK", $path_base ); # Mask name 149 149 my $weightCnv = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name 150 my $expnumCnv = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM", $path_base ); # Expnum name 150 151 151 152 my $imageRaw = $ipprc->filename("PPSTACK.UNCONV", $path_base ); # Image name 152 153 my $maskRaw = $ipprc->filename("PPSTACK.UNCONV.MASK", $path_base ); # Mask name 153 154 my $weightRaw = $ipprc->filename("PPSTACK.UNCONV.VARIANCE", $path_base ); # Weight name 155 my $expnumRaw = $ipprc->filename("PPSTACK.UNCONV.EXPNUM", $path_base ); # Expnum name 154 156 155 157 my $sources = $ipprc->filename("PSPHOT.OUT.CMF.MEF", $path_base ); # Sources name … … 162 164 &my_die("Couldn't find input: $maskRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskRaw"); 163 165 &my_die("Couldn't find input: $weightRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightRaw"); 166 &my_die("Couldn't find input: $expnumRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumRaw"); 164 167 &my_die("Couldn't find input: $imageCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$imageCnv"); 165 168 &my_die("Couldn't find input: $maskCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskCnv"); 166 169 &my_die("Couldn't find input: $weightCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightCnv"); 170 &my_die("Couldn't find input: $expnumCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumCnv"); 167 171 &my_die("Couldn't find input: $psfCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$psfCnv"); 168 172 &my_die("Couldn't find input: $sources", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$sources"); … … 171 175 print $listFile " RAW:MASK STR " . $maskRaw . "\n"; 172 176 print $listFile " RAW:VARIANCE STR " . $weightRaw . "\n"; 177 print $listFile " RAW:EXPNUM STR " . $expnumRaw . "\n"; 173 178 174 179 print $listFile " CNV:IMAGE STR " . $imageCnv . "\n"; 175 180 print $listFile " CNV:MASK STR " . $maskCnv . "\n"; 176 181 print $listFile " CNV:VARIANCE STR " . $weightCnv . "\n"; 182 print $listFile " CNV:EXPNUM STR " . $expnumCnv . "\n"; 177 183 print $listFile " CNV:PSF STR " . $psfCnv . "\n"; 178 184 … … 288 294 my $use_raw = metadataLookupBool($recipeData, 'PSPHOT.STACK.USE.RAW'); 289 295 290 my ($image, $mask, $variance );296 my ($image, $mask, $variance, $expnum); 291 297 if ($use_raw) { 292 298 $image = $ipprc->filename("PPSTACK.UNCONV", $path_base ); # Image name … … 297 303 $mask = $ipprc->filename("PPSTACK.OUTPUT.MASK", $path_base ); # Mask name 298 304 $variance = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name 305 $expnum = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM", $path_base ); # Weight name 299 306 } 300 307 … … 306 313 &my_die("Couldn't find input: $mask", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$mask"); 307 314 &my_die("Couldn't find input: $variance", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$variance"); 315 &my_die("Couldn't find input: $expnum", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnum"); 308 316 309 317 # Perform stack photometry analysis … … 313 321 $command .= " -mask $mask"; 314 322 $command .= " -variance $variance"; 323 $command .= " -expnum $expnum"; 315 324 $command .= " -threads $threads" if defined $threads; 316 325 $command .= " -recipe PSPHOT $recipe_psphot";
Note:
See TracChangeset
for help on using the changeset viewer.
