IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 24, 2014, 5:21:29 PM (12 years ago)
Author:
watersc1
Message:

Change to utilize the -max_num value in stacktool to split stack processing between local and remote in PV3.

File:
1 edited

Legend:

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

    r37073 r37117  
    3434my $qstack_threshold     = 0.05; # Only make a quickstack if more than 5% of the exposures require it.
    3535my $minimum_stack_inputs = 2;    # We can avoid magicking stack inputs if we have more than this number.
    36 my $do_updates_pv2       = 1;    # Do updates using the calls needed for PV2. 
     36my $maximum_stack_inputs = 25;   # This is the place-holder guess on how big a stack we should process locally
     37my $do_updates_pv2       = 0;    # Do updates using the calls needed for PV2. 
    3738
    3839GetOptions(
     
    10371038    my $data_group = "${label}.${proj_cell}.final.${lap_id}";
    10381039
     1040
     1041    ##
     1042    ## Queue the "shallow" stacks that will run at los alamos.
    10391043    my $command = "$stacktool ";
    10401044    $command .= " -pretend " if defined $debug;
     
    10431047#    $command .= " -select_label $label "; # Removed to allow exposure sharing to work
    10441048    $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group ";
    1045     $command .= " -min_num ${minimum_stack_inputs} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} ";
     1049    $command .= " -min_num ${minimum_stack_inputs} -max_num ${maximum_stack_inputs} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} ";
    10461050    $command .= " $warps ";
    10471051
     
    10541058    my $stacks_made = $mdcParser->parse_list(join "", @$stdout_buf) or
    10551059        &my_die("unable to parse metadata from stacktool -definebyquery", $lap_id, "");   
    1056    
     1060
     1061    ##
     1062    ## Queue the "deep" stacks that will run locally.
     1063    my $deep_minimum = $maximum_stack_inputs + 1;
     1064    $command = "$stacktool ";
     1065    $command .= " -pretend " if defined $debug;
     1066    $command .= " -dbname $dbname " if defined $dbname;
     1067    $command .= " -definebyquery -select_skycell_id ${proj_cell}.% -select_filter $filter ";
     1068#    $command .= " -select_label $label "; # Removed to allow exposure sharing to work
     1069    $command .= " -set_label ${label}.local -set_workdir $workdir -set_data_group $data_group ";
     1070    $command .= " -min_num ${deep_minimum} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} ";
     1071    $command .= " $warps ";
     1072
     1073    ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     1074        run(command => $command, verbose => $verbose);
     1075    unless ($success) {
     1076        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     1077        &my_die("Unable to perform stacktool -definebyquery: $error_code", $lap_id);
     1078    }
     1079    $stacks_made .= $mdcParser->parse_list(join "", @$stdout_buf) or
     1080        &my_die("unable to parse metadata from stacktool -definebyquery", $lap_id, "");   
     1081
     1082
     1083    ## Determine the sass_id so we can record it in the database.
    10571084    $command = "$stacktool ";
    10581085    $command .= " -dbname $dbname " if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.