IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 10, 2010, 6:28:51 PM (16 years ago)
Author:
watersc1
Message:

Skycell Summary and stack Association stuff should be finished. I'll merge and do final tests on monday.

Location:
branches/czw_branch/20100519
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20100519

  • branches/czw_branch/20100519/ippScripts/scripts/skycell_jpeg.pl

    r28245 r28304  
    3838pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2) if @ARGV;
    3939pod2usage(
    40     -msg => "Required options: --stage --stage_id --outroot\nHelpful options: --camera --dbname",
     40    -msg => "Required options: --stage --stage_id --path_base\nHelpful options: --camera --dbname",
    4141    -exitval => 3,
    4242    ) unless
     
    125125        }
    126126        # Update database:
    127         $command = "$warptool -addsummary -warp_id $stage_id -projection_cell $projection_cell -outroot $outroot";
     127        $command = "$warptool -addsummary -warp_id $stage_id -projection_cell $projection_cell -path_base $outroot";
    128128        if (defined($dbname)) {
    129129            $command .= " -dbname $dbname";
     
    136136        }
    137137    }
     138    if (scalar (keys %tangents) == 0) {
     139        my $projection_cell = 'NULL';
     140        $command = "$warptool -addsummary -warp_id $stage_id -projection_cell $projection_cell -path_base $outroot";
     141        if (defined($dbname)) {
     142            $command .= " -dbname $dbname";
     143        }
     144       
     145        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
     146        unless ($success) {
     147            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     148            &my_die("unable to update diff summary: $error_code", $stage_id, $error_code);
     149        }
     150    }   
    138151} #end warp stage
    139152if ($stage eq 'diff') {
     
    165178        my $state      = $imfile->{data_state};
    166179        my $projection_cell = $skycell_id;
    167         if ($quality == 8007 or $state ne 'full') {
     180        if ($quality == 8007 or $quality = 1010 or $state ne 'full') {
    168181            next;
    169182        }
     
    209222        }
    210223        # Update database:
    211         $command = "$difftool -addsummary -diff_id $stage_id -projection_cell $projection_cell -outroot $outroot";
     224        $command = "$difftool -addsummary -diff_id $stage_id -projection_cell $projection_cell -path_base $outroot";
    212225        if (defined($dbname)) {
    213226            $command .= " -dbname $dbname";
     
    220233        }
    221234    }
     235    if (scalar (keys %tangents) == 0) {
     236        my $projection_cell = 'NULL';
     237        $command = "$difftool -addsummary -diff_id $stage_id -projection_cell $projection_cell -path_base $outroot";
     238        if (defined($dbname)) {
     239            $command .= " -dbname $dbname";
     240        }
     241       
     242        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
     243        unless ($success) {
     244            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     245            &my_die("unable to update diff summary: $error_code", $stage_id, $error_code);
     246        }
     247    }   
    222248} #end diff stage
    223249if ($stage eq 'stack') {
    224250    my $imfiles;
    225     my $command = "$stacktool -stackskyfile -stack_id $stage_id";
     251    my $command = "$stacktool -sassskyfile -sass_id $stage_id";
    226252    if (defined($dbname)) {
    227253        $command .= " -dbname $dbname";
     
    248274        my $quality    = $imfile->{quality};
    249275        my $state      = $imfile->{data_state};
     276        my $fault      = $imfile->{fault};
    250277        my $projection_cell = $skycell_id;
    251         if ($quality == 8007 or $state ne 'full') {
     278        if ($quality == 8007 or $state ne 'full' or $fault != 0) {
    252279            next;
    253280        }
     
    293320        }
    294321        # Update database:
    295         $command = "$stacktool -addsummary -stack_id $stage_id -projection_cell $projection_cell -outroot $outroot";
     322        $command = "$stacktool -addsummary -sass_id $stage_id -projection_cell $projection_cell -path_base $outroot";
    296323        if (defined($dbname)) {
    297324            $command .= " -dbname $dbname";
     
    304331        }
    305332    }
     333    if (scalar (keys %tangents) == 0) {
     334        my $projection_cell = 'NULL';
     335        $command = "$stacktool -addsummary -stack_id $stage_id -projection_cell $projection_cell -path_base $outroot";
     336        if (defined($dbname)) {
     337            $command .= " -dbname $dbname";
     338        }
     339       
     340        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
     341        unless ($success) {
     342            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     343            &my_die("unable to update diff summary: $error_code", $stage_id, $error_code);
     344        }
     345    }   
     346
    306347} #end stack stage
    307348
Note: See TracChangeset for help on using the changeset viewer.