IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 11:38:18 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/ippScripts/scripts/nightly_science.pl

    r34018 r34241  
    10061006        $cmd .= " -set_reduction NIGHTLY_STACK ";
    10071007    }
     1008    if (defined($science_config{$target}{ADDITIONAL_STACK_LABEL})) {
     1009        # Grab list of skycells
     1010        my $skycell_select = '';
     1011        {
     1012            my %skycells = ();
     1013            my $warpcmd = "$warptool -warped -label $label -data_group $data_group  -dbname $dbname";
     1014            my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf) =
     1015                run(command => $warpcmd, verbose => $verbose);
     1016            unless($success) {
     1017                $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     1018                &my_die("Unabel to perform warptool -warped to determine skycell_ids: $error_code",$target);
     1019            }
     1020            my $runs = $mdcParser->parse_list(join "", @$stdout_buf) or
     1021                &my_die("Unabel to parse warptool -warped to determine skycell_ids: $error_code",$target);
     1022            if ($#{ $runs } != -1) {
     1023                for my $warp (@$runs) {
     1024                    $skycells{$warp->{skycell_id}} = 1;
     1025                }
     1026                foreach my $skycell (sort (keys (%skycells))) {
     1027                    $skycell_select .= " -skycell $skycell ";
     1028                }
     1029                $cmd .= " -select_label $science_config{$target}{ADDITIONAL_STACK_LABEL} $skycell_select ";
     1030            }
     1031        }
     1032    }
    10081033    $cmd .= " $select ";
    10091034    if ($debug == 1) {
Note: See TracChangeset for help on using the changeset viewer.