IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36822 for tags/ipp-20130712


Ignore:
Timestamp:
Jun 6, 2014, 4:30:00 PM (12 years ago)
Author:
bills
Message:

from trunk: add --wholefile and --restorebackground options.
The old method of retrieving entire images with --pixcenter --width 0 --height 0 still works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130712/pstamp/scripts/psmkreq

    r36181 r36822  
    2929my ($ra, $dec, $x, $y, $list, $output, $req_name, $req_name_base);
    3030
    31 my ($image, $mask, $variance, $jpeg, $cmf, $psf, $backmdl, $inverse);
     31my ($image, $mask, $variance, $jpeg, $cmf, $psf, $backmdl, $inverse, $restorebackground);
    3232my ($convolved, $unconvolved, $uncompressed, $use_imfile_id, $no_wait);
    3333
     
    3939my $job_type     = 'stamp';
    4040my $req_type     = 'bycoord';
    41 my $stage        = 'chip';
     41my $stage        = 'stack';
    4242my $option_mask;
    4343my $width        = $default_size;
    4444my $height       = $default_size;
     45my $whole_file   = 0;
    4546my $project      = 'gpc1';
    4647my $coord_mask;
     
    8182    'width=i'           => \$width,
    8283    'height=i'          => \$height,
     84    'whole-file'        => \$whole_file,
    8385    'pixcenter'         => \$pixcenter,
    8486    'arcseconds'        => \$arcseconds,
     
    118120    'convolved'         => \$convolved,
    119121    'uncompressed'      => \$uncompressed,
     122    'restorebackground' => \$restorebackground,
    120123    'use_imfile_id'     => \$use_imfile_id,
    121124    'do_not_wait'       => \$no_wait,
     
    141144        pod2usage( -msg => "--ra --dec --x --y are not used with --list", -exitval =>1 )
    142145            if defined $x or defined $y;
    143     } elsif (!$pixcenter) {
    144         pod2usage( -msg => "Required options for stamp requests: --ra and --dec or --list", -exitval =>1 )
    145             unless (defined $ra and defined $dec);
    146         # to simplify code we just use $x and $y from here
    147         $x = $ra;
    148         $y = $dec;
    149146    } else {
    150         pod2usage( -msg => "Required options for stamp requests: --x and --y or --list", -exitval =>1 )
    151                 unless (defined $x and defined $y);
     147        if ($whole_file) {
     148            $pixcenter = 1;
     149            $x = 0;
     150            $y = 0;
     151            $width = 0;
     152            $height = 0;
     153        }
     154        if (!$pixcenter) {
     155            pod2usage( -msg => "Required options for stamp requests: --ra and --dec or --list", -exitval =>1 )
     156                unless (defined $ra and defined $dec);
     157            # to simplify code we just use $x and $y from here
     158            $x = $ra;
     159            $y = $dec;
     160        } else {
     161            pod2usage( -msg => "Required options for stamp requests: --x and --y or --list", -exitval =>1 )
     162                    unless (defined $x and defined $y);
     163        }
    152164    }
    153165} else {
     
    209221        $option_mask |= $PSTAMP_SELECT_PSF      if $psf;
    210222        $option_mask |= $PSTAMP_SELECT_BACKMDL  if $backmdl;
    211         $option_mask |= $PSTAMP_SELECT_UNCOMPRESSED   if $uncompressed;
     223        $option_mask |= $PSTAMP_SELECT_UNCOMPRESSED if $uncompressed;
    212224        $option_mask |= $PSTAMP_SELECT_UNCONV   if $unconvolved;
    213225        $option_mask |= $PSTAMP_USE_IMFILE_ID   if $use_imfile_id;
    214226        $option_mask |= $PSTAMP_SELECT_INVERSE  if $inverse;
     227        $option_mask |= $PSTAMP_RESTORE_BACKGROUND  if $restorebackground;
    215228    }
    216229    $option_mask |= $PSTAMP_NO_WAIT_FOR_UPDATE if $no_wait;
Note: See TracChangeset for help on using the changeset viewer.