IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 4, 2008, 1:44:33 PM (17 years ago)
Author:
bills
Message:

on branch. Reorganizing the diff stage to consist of a collection of
skyfiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_081204/ippScripts/scripts/diff_skycell.pl

    r20456 r20903  
    2828
    2929my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
     30my $skycell_id;                 # Skycell identifier
    3031GetOptions(
    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
    3234    'dbname|d=s'        => \$dbname, # Database name
    3335    'threads=s'         => \$threads,   # Number of threads to use
     
    4244pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    4345pod2usage(
    44     -msg => "Required options: --diff_id --outroot",
     46    -msg => "Required options: --diff_id --skycell_id --outroot",
    4547    -exitval => 3,
    4648          ) unless defined $diff_id
     49    and defined $skycell_id
    4750    and defined $outroot;
    4851
     
    6770my $files;
    6871{
    69     my $command = "$difftool -inputskyfile -diff_id $diff_id";
     72    my $command = "$difftool -inputskyfile -diff_id $diff_id -skycell_id $skycell_id";
    7073    $command .= " -dbname $dbname" if defined $dbname;
    7174    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    8992my ($template, $templateMask, $templateWeight, $templatePath, $templateSources); # Template files and path
    9093my $tess_id;                    # Tesselation identifier
    91 my $skycell_id;                 # Skycell identifier
    9294my $camera;                     # Camera
    9395foreach my $file (@$files) {
     
    220222    &my_die("Couldn't find expected output file: $outputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
    221223    &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);
    223225#    &my_die("Couldn't find expected output file: $bin1Name",    $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name);
    224226#    &my_die("Couldn't find expected output file: $bin2Name",    $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
     
    245247    # Add the subtraction result
    246248    {
    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";
    248250        $command .= " $cmdflags";
    249251        $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
     
    269271    warn($msg);
    270272    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";
    272274        $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    273275        $command .= " -hostname $host" if defined $host;
Note: See TracChangeset for help on using the changeset viewer.