IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33381 for trunk/pstamp/scripts


Ignore:
Timestamp:
Feb 28, 2012, 1:44:09 PM (14 years ago)
Author:
bills
Message:

Add option to create a JPEG image of the stamp

File:
1 edited

Legend:

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

    r33324 r33381  
    225225
    226226    my $command = "$ppstamp $outputBase $argString $fileArgs";
     227    $command .= " -write_jpeg" if ($options & $PSTAMP_SELECT_JPEG);
    227228    $command .= " -dbname $dbname" if $dbname;
    228229    $command .= " -dbserver $dbserver" if $dbserver;
     
    249250
    250251        # Note: we are assuming the contents of the PSTAMP filerules here.
    251         my %extensions = ( $PSTAMP_SELECT_IMAGE  => "fits",
    252                            $PSTAMP_SELECT_MASK   => "mk.fits",
    253                            $PSTAMP_SELECT_VARIANCE => "wt.fits");
    254 
    255         my $output_mask = $options & ($PSTAMP_SELECT_IMAGE | $PSTAMP_SELECT_MASK | $PSTAMP_SELECT_VARIANCE);
     252        my %extensions = ( $PSTAMP_SELECT_IMAGE    => "fits",
     253                           $PSTAMP_SELECT_MASK     => "mk.fits",
     254                           $PSTAMP_SELECT_VARIANCE => "wt.fits",
     255                           $PSTAMP_SELECT_JPEG     => "jpg");
     256
     257        my $output_mask = $options & ($PSTAMP_SELECT_IMAGE | $PSTAMP_SELECT_MASK | $PSTAMP_SELECT_VARIANCE | $PSTAMP_SELECT_JPEG);
    256258
    257259        foreach my $key (keys (%extensions)) {
Note: See TracChangeset for help on using the changeset viewer.