IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2007, 3:44:38 PM (19 years ago)
Author:
eugene
Message:

rework for consistency with the changes to the database and PS-IPP-Config

File:
1 edited

Legend:

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

    r14009 r14048  
    8888}
    8989
    90 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir;
    91 
    92 my $outputRoot  = $ipprc->file_prepare( "$camera.$det_type.$det_id.$iter.$class_id", $workdir, ${$files}[0]->{uri} );
    93 my $outputStack = $outputRoot . '.fits'; # Output name
    94 my $outputStats = $outputRoot . '.stats'; # Statistics name
    95 
    9690# Get list of files to stack
    97 my $files;                      # Array of files to be stacked
     91my ($files, $command, $success, $error_code, $full_buf, $stdout_buf, $stderr_buf);
    9892{
    99     my $command = "$dettool -processedimfile -included";
     93    $command = "$dettool -processedimfile -included";
    10094    $command .= " -det_id $det_id";
    10195    $command .= " -class_id $class_id";
    10296    $command .= " -dbname $dbname" if defined $dbname;
    10397
    104     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     98    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    10599        run(command => $command, verbose => $verbose);
    106100    unless ($success) {
     
    116110}
    117111
    118 my $command = "$ppMerge $outputStack"; # Command to run
     112$workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir;
     113
     114my $outputRoot  = $ipprc->file_prepare( "$camera.$det_type.$det_id.$iter.$class_id", $workdir, ${$files}[0]->{uri} );
     115my $outputStack = $outputRoot . '.fits'; # Output name
     116my $outputStats = $outputRoot . '.stats'; # Statistics name
     117
     118$command = "$ppMerge $outputStack"; # Command to run
    119119foreach my $file (@$files) {
    120120    $command .= ' ' . $file->{uri};
     
    128128unless ($no_op) {
    129129   
    130     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     130    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    131131        run(command => $command, verbose => $verbose);
    132132    unless ($success) {
Note: See TracChangeset for help on using the changeset viewer.