IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30528


Ignore:
Timestamp:
Feb 8, 2011, 5:34:11 PM (15 years ago)
Author:
bills
Message:

allow muggle stamps from stages other than diff unless state eq update
fix argument to ppstamp it's -variance not -weight

File:
1 edited

Legend:

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

    r30317 r30528  
    145145            # user required uncensored but since stage isn't chip we can't rebuild them
    146146            my_die("uncensored inputs not available for job $job_id", $job_id, $PSTAMP_NOT_AVAILABLE);
    147         } elsif (($options & $PSTAMP_REQUEST_UNCENSORED) and ($stage ne 'chip')) {
     147        } elsif (($options & $PSTAMP_REQUEST_UNCENSORED) and ($params->{state} eq 'update') and ($stage ne 'chip')) {
     148            # we can only restore pixels for chip stage images if the data has been updated.
     149            # XXX: this test is not quite good enough. If all components have been updated then the
     150            # state will be 'full' But this will get us going.
     151            print "Run state is update: will make stamps from destreaked $stage images.\n";
    148152            # make stamps from uncensored images
    149153            $muggle = 0;
     
    153157            @file_list = ();
    154158            $tmproot = "$outdir/$job_id";
    155             mkdir $tmproot or
    156                 my_die( "failed to create temporary directory $tmproot", $job_id, $PS_EXIT_UNKNOWN_ERROR);
     159            if (! -e $tmproot) {
     160                mkdir $tmproot or
     161                    my_die( "failed to create temporary directory $tmproot", $job_id, $PS_EXIT_UNKNOWN_ERROR);
     162            }
    157163            my $muggle_command = "$streaksreplace -stage $stage -tmproot $tmproot";
    158164            # find the "directory" of the input path_base
     
    180186                $base = basename($variance);
    181187                $tmpVariance = "$tmproot/$base";
    182                 $newFileArgs .= " -weight $tmpVariance";
     188                $newFileArgs .= " -variance $tmpVariance";
    183189                my $recVariance = "$inputdir/REC_$base";
    184190                $muggle_command .= " -weight $variance -recweight $recVariance";
Note: See TracChangeset for help on using the changeset viewer.