IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2013, 2:42:06 PM (13 years ago)
Author:
bills
Message:

various changes to support stack_summary pstamp jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_job_run.pl

    r36018 r36048  
    562562}
    563563
     564# stack_summary stage does not currently use proper file rules.
     565# The parser defers handlint this to us..
     566
    564567sub update_stack_summary_filenames {
    565568    my $params  = shift;
     
    570573    $params->{mask}   = $path_base . ".mask.b1.fits";
    571574    $params->{weight} = $path_base . ".variance.b1.fits";
     575    $params->{jpeg}   = $path_base . ".image.0.b1.jpeg";
    572576    $params->{exp}    = $path_base . ".exp.b1.fits";
    573577    $params->{num}    = $path_base . ".num.b1.fits";
    574 
    575578}
    576579
     
    580583    my $result;
    581584    my $resolved = $ipprc->file_resolve($src);
    582     if ($ipprc->file_exists($resolved)) {
     585    if ($resolved and $ipprc->file_exists($resolved)) {
     586        print "Copying $src to $dest\n" if $verbose;;
    583587        $result = copy($resolved, $dest);
    584588    } else {
     
    602606    my ($outputBase, $r_options, $params) = @_;
    603607
     608    print "Just copying files for $job_id.\n";
     609
    604610    my $options = $$r_options;
    605611    if ($options & $PSTAMP_SELECT_IMAGE) {
     
    616622        }
    617623    }
     624    if ($options & $PSTAMP_SELECT_JPEG) {
     625        if (!myCopy("$outputBase.jpg", $params->{jpeg}, 'jpeg', 0)) {
     626            $options &= ~$PSTAMP_SELECT_JPEG;
     627        }
     628    }
    618629    if ($options & $PSTAMP_SELECT_EXP) {
    619630        if (!myCopy("$outputBase.exp.fits", $params->{exp}, 'exp', 0)) {
     
    628639
    629640    $$r_options = $options;
     641
     642    print "Done with copy.\n";
    630643
    631644    return 0;
Note: See TracChangeset for help on using the changeset viewer.