Changeset 23688 for trunk/ippScripts/scripts/warp_skycell.pl
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/warp_skycell.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/ippScripts/scripts/warp_skycell.pl
r23430 r23688 175 175 # Run pswarp 176 176 my $cmdflags; 177 my $accept = 1; # Accept the skycell?178 177 my $do_stats; 179 178 unless ($no_op) { … … 215 214 216 215 if ($do_stats) { 217 # Check first for the stats file , and if the ACCEPT flag is set.216 # Check first for the stats file 218 217 my $outputStatsReal = $ipprc->file_resolve($outputStats); 219 218 &my_die("Couldn't find expected output file: $outputStats", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal; … … 232 231 chomp $cmdflags; 233 232 234 if ($cmdflags =~ /-accept/) { 233 my ($quality) = $cmdflags =~ /-quality (\d+)/; # Quality flag 234 235 if (!$quality) { 235 236 &my_die("Couldn't find expected output file: $outputImage", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputImage); 236 237 &my_die("Couldn't find expected output file: $outputMask", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask); … … 249 250 $command .= " -magicked" if $magicked; 250 251 251 $command .= " -uri $outputImage" if $accept;252 $command .= " -uri $outputImage" if !$quality; 252 253 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 253 $command .= " $cmdflags" if $accept;254 $command .= " $cmdflags"; 254 255 $command .= " -hostname $host" if defined $host; 255 256 $command .= " -dbname $dbname" if defined $dbname; … … 307 308 $command .= " -skycell_id $skycell_id"; 308 309 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 309 $command .= " - code$exit_code";310 $command .= " -fault $exit_code"; 310 311 $command .= " -dbname $dbname" if defined $dbname; 311 312 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
