- Timestamp:
- Dec 4, 2008, 1:44:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bills_081204/ippScripts/scripts/diff_skycell.pl
r20456 r20903 28 28 29 29 my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect); 30 my $skycell_id; # Skycell identifier 30 31 GetOptions( 31 'diff_id|d=s' => \$diff_id, # Diff identifier 32 'diff_id=s' => \$diff_id, # Diff identifier 33 'skycell_id=s' => \$skycell_id, # Diff identifier 32 34 'dbname|d=s' => \$dbname, # Database name 33 35 'threads=s' => \$threads, # Number of threads to use … … 42 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 43 45 pod2usage( 44 -msg => "Required options: --diff_id -- outroot",46 -msg => "Required options: --diff_id --skycell_id --outroot", 45 47 -exitval => 3, 46 48 ) unless defined $diff_id 49 and defined $skycell_id 47 50 and defined $outroot; 48 51 … … 67 70 my $files; 68 71 { 69 my $command = "$difftool -inputskyfile -diff_id $diff_id ";72 my $command = "$difftool -inputskyfile -diff_id $diff_id -skycell_id $skycell_id"; 70 73 $command .= " -dbname $dbname" if defined $dbname; 71 74 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 89 92 my ($template, $templateMask, $templateWeight, $templatePath, $templateSources); # Template files and path 90 93 my $tess_id; # Tesselation identifier 91 my $skycell_id; # Skycell identifier92 94 my $camera; # Camera 93 95 foreach my $file (@$files) { … … 220 222 &my_die("Couldn't find expected output file: $outputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask); 221 223 &my_die("Couldn't find expected output file: $outputWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight); 222 &my_die("Couldn't find expected output file: $outputSources", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);224 # &my_die("Couldn't find expected output file: $outputSources", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 223 225 # &my_die("Couldn't find expected output file: $bin1Name", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name); 224 226 # &my_die("Couldn't find expected output file: $bin2Name", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name); … … 245 247 # Add the subtraction result 246 248 { 247 my $command = "$difftool -adddiffskyfile -diff_id $diff_id - uri $outputName -path_base $outroot";249 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -skycell_id $skycell_id -uri $outputName -path_base $outroot"; 248 250 $command .= " $cmdflags"; 249 251 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); … … 269 271 warn($msg); 270 272 if (defined $diff_id and not $no_update) { 271 my $command = "$difftool -adddiffskyfile -diff_id $diff_id - code $exit_code";273 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -skycell_id $skycell_id -code $exit_code"; 272 274 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 273 275 $command .= " -hostname $host" if defined $host;
Note:
See TracChangeset
for help on using the changeset viewer.
