IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2007, 2:04:03 PM (19 years ago)
Author:
Paul Price
Message:

Adding input source list, output source list.

File:
1 edited

Legend:

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

    r14718 r14898  
    120120                                      UNLINK => !$save_temps );
    121121my $num = 0;
     122my $inputSources;               # Sources to use as stamps
    122123foreach my $file (@$files) {
    123124    print $listFile "INPUT$num\tMETADATA\n";
     
    141142
    142143    print $listFile "END\n\n";
     144
     145    unless (defined $inputSources) {
     146        $inputSources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $file->{path_base});
     147        &my_die("Source file $inputSources does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $inputSources );
     148    }
     149       
    143150}
    144151
     
    149156my $outputMask = $ipprc->filename("PPSTACK.OUTPUT.MASK", $outputRoot);
    150157my $outputWeight = $ipprc->filename("PPSTACK.OUTPUT.WEIGHT", $outputRoot);
     158my $outputSources = $ipprc->filename("PPSTACK.OUTPUT.SOURCES", $outputRoot);
    151159#my $bin1Name =  $ipprc->filename("PPSTACK.BIN1", $outputRoot);
    152160#my $bin2Name =  $ipprc->filename("PPSTACK.BIN2", $outputRoot);
     
    158166    $command .= " -stats $outputStats";
    159167    $command .= " -recipe PPSTATS WARPSTATS";
     168    $command .= " -sources $inputSources";
     169    $command .= " -target 5.0";
     170    $command .= " -photometry";
     171
     172    print "\n\nWARNING: Convolving to 1 arcsec FWHM seeing!\n\n";
    160173
    161174    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    168181    &my_die("Couldn't find expected output file: $outputMask", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
    169182    &my_die("Couldn't find expected output file: $outputWeight", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight);
     183    &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
    170184#    &my_die("Couldn't find expected output file: $bin1Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name);
    171185#    &my_die("Couldn't find expected output file: $bin2Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
Note: See TracChangeset for help on using the changeset viewer.