IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8586


Ignore:
Timestamp:
Aug 24, 2006, 5:22:57 PM (20 years ago)
Author:
Paul Price
Message:

Adding statistics, recipe to output.

File:
1 edited

Legend:

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

    r8505 r8586  
    4646my $files;                      # Array of files to be stacked
    4747{
    48     my $command = "$dettool -processed -det_id $detId -iter $iter -class_id $classId"; # Command to run
     48    my $command = "$dettool -processed -det_id $detId -iteration $iter -class_id $classId"; # Command to run
    4949    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    5050        run(command => $command, verbose => 1);
     
    5555
    5656# Stack the files
    57 my $output = $detType . '_' . $classId . '_' . $detId . '_' . $iter; # Output name
     57my $output = $detType . '_' . $classId . '_' . $detId . '_' . $iter . '.fit'; # Output name
    5858{
    5959    my $command = "$ppMerge $output"; # Command to run
     
    6363    }
    6464    $command .= " -recipe PPMERGE $recipe";
    65     $command .= ' -type' . uc($detType); # Type of stacking to perform
     65    $command .= ' -type ' . uc($detType); # Type of stacking to perform
    6666
    67     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    68         run(command => $command, verbose => 1);
    69     die "Unable to perform ppMerge: $error_code\n" if not $success;
     67#    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     68#       run(command => $command, verbose => 1);
     69#    die "Unable to perform ppMerge: $error_code\n" if not $success;
    7070    die "Unable to find expected output file: $output\n" if not -f $output;
    7171}
    7272
     73### XXX: Need to add statistics
     74my $bg_mean = 0;
     75my $bg_stdev = 0;
     76my $bg_mean_stdev = 0;
     77
     78
    7379# Add the resultant into the database
    7480{
    75     my $command = "dettool -addstacked -det_id $detId -iter $iter -class_id $classId" .
    76         " -uri $output";        # Command to run
     81    my $command = "$dettool -addstacked -det_id $detId -iteration $iter -class_id $classId" .
     82        " -uri $output -recip $recipe"; # Command to run
     83    $command .= ' -bg ' . $bg_mean;
     84    $command .= ' -bg_stdev ' . $bg_stdev;
     85    $command .= ' -bg_mean_stdev ' . $bg_mean_stdev;
    7786    $command .= ' -pleasenormalize' if NORMALISE()->{$detType};
    7887    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.