IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2013, 12:32:12 PM (13 years ago)
Author:
bills
Message:

For stack_summary stage support requests for exp and num jpeg images.
Note that no way to request the jpegs for the weight and fits images.
I assert that these are not generally useful. To get them one must request bundles

File:
1 edited

Legend:

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

    r36059 r36104  
    236236                           $PSTAMP_SELECT_JPEG     => 'jpg',
    237237                           $PSTAMP_SELECT_EXP      => 'exp.fits',
    238                            $PSTAMP_SELECT_NUM      => 'num.fits');
     238                           $PSTAMP_SELECT_NUM      => 'num.fits',
     239                           $PSTAMP_SELECT_EXPJPEG  => 'exp.jpg',
     240                           $PSTAMP_SELECT_NUMJPEG  => 'num.jpg');
    239241
    240242        my $output_mask = $options & ($PSTAMP_SELECT_IMAGE | $PSTAMP_SELECT_MASK | $PSTAMP_SELECT_VARIANCE
    241             | $PSTAMP_SELECT_JPEG | $PSTAMP_SELECT_SOURCES | $PSTAMP_SELECT_EXP | $PSTAMP_SELECT_NUM);
     243            | $PSTAMP_SELECT_JPEG | $PSTAMP_SELECT_SOURCES
     244            | $PSTAMP_SELECT_EXP | $PSTAMP_SELECT_NUM
     245            | $PSTAMP_SELECT_EXPJPEG | $PSTAMP_SELECT_NUMJPEG);
     246
    242247
    243248        foreach my $key (keys (%extensions)) {
     
    573578    $params->{exp}    = $path_base . ".exp.b1.fits";
    574579    $params->{num}    = $path_base . ".num.b1.fits";
     580    $params->{expjpeg} = $path_base . ".exp.0.b1.jpeg";
     581    $params->{numjpeg} = $path_base . ".num.0.b1.jpeg";
    575582}
    576583
     
    632639        if (!myCopy("$outputBase.num.fits", $params->{num}, 'num', 0)) {
    633640            $options &= ~$PSTAMP_SELECT_NUM;
     641        }
     642    }
     643    if ($options & $PSTAMP_SELECT_EXPJPEG) {
     644        if (!myCopy("$outputBase.exp.jpg", $params->{expjpeg}, 'exp', 0)) {
     645            $options &= ~$PSTAMP_SELECT_EXPJPEG;
     646        }
     647    }
     648    if ($options & $PSTAMP_SELECT_NUMJPEG) {
     649        if (!myCopy("$outputBase.num.jpg", $params->{numjpeg}, 'num', 0)) {
     650            $options &= ~$PSTAMP_SELECT_NUMJPEG;
    634651        }
    635652    }
Note: See TracChangeset for help on using the changeset viewer.