IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2011, 3:15:14 PM (15 years ago)
Author:
watersc1
Message:

Fix to use new -warp_id option to stacktool to ensure that we only stack the warps that we have not previously dropped. This should prevent some of the junk from getting into the final stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/lap_science.pl

    r31527 r31530  
    621621    }
    622622
     623    my $warps = '';
     624    foreach $exposure (@$exposures) {
     625        if (($exposure->{data_state} != 'drop')&&
     626            (S64_IS_NOT_NULL($exposure->{warp_id}))) {
     627            $warps .= " -warp_id $exposure->{warp_id} ";
     628        }
     629    }
     630
    623631    my @utctime = gmtime();
    624632    $utctime[5] += 1900;
     
    636644    $command .= "  -set_workdir $workdir  -set_dist_group NODIST ";
    637645    $command .= " -min_num 2 -set_reduction QUICKSTACK ";
     646    $command .= " $warps ";
    638647
    639648    my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    689698    unless (defined($label) && defined($filter) && defined($proj_cell)) {
    690699        &my_die("Unable to perform stacktool. Insufficient information.", $lap_id);
     700    }
     701
     702    my $warps = '';
     703    foreach $exposure (@$exposures) {
     704        if (($exposure->{data_state} != 'drop')&&
     705            (S64_IS_NOT_NULL($exposure->{magicked}))&&
     706            (S64_IS_NOT_NULL($exposure->{warp_id}))) {
     707            $warps .= " -warp_id $exposure->{warp_id} ";
     708        }
    691709    }
    692710
     
    704722    $command .= " -definebyquery -select_label $label -select_skycell_id ${proj_cell}.% -select_filter $filter ";
    705723    $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group ";
    706     $command .= " -min_num 2 -set_reduction THREEPI_STACK -set_dist_group ${label}";
     724    $command .= " -min_num 2 -set_reduction THREEPI_STACK -set_dist_group ${label} ";
     725    $command .= " $warps ";
    707726
    708727    my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.