IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2013, 11:33:03 AM (13 years ago)
Author:
bills
Message:

change default stage from chip to stack. Make wholefile an option rather
than using width and height == 0 as trigger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/psmkreq

    r36182 r36250  
    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,
     
    141143        pod2usage( -msg => "--ra --dec --x --y are not used with --list", -exitval =>1 )
    142144            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;
    149145    } else {
    150         pod2usage( -msg => "Required options for stamp requests: --x and --y or --list", -exitval =>1 )
    151                 unless (defined $x and defined $y);
     146        if ($whole_file) {
     147            $pixcenter = 1;
     148            $x = 0;
     149            $y = 0;
     150            $width = 0;
     151            $height = 0;
     152        }
     153        if (!$pixcenter) {
     154            pod2usage( -msg => "Required options for stamp requests: --ra and --dec or --list", -exitval =>1 )
     155                unless (defined $ra and defined $dec);
     156            # to simplify code we just use $x and $y from here
     157            $x = $ra;
     158            $y = $dec;
     159        } else {
     160            pod2usage( -msg => "Required options for stamp requests: --x and --y or --list", -exitval =>1 )
     161                    unless (defined $x and defined $y);
     162        }
    152163    }
    153164} else {
     
    209220        $option_mask |= $PSTAMP_SELECT_PSF      if $psf;
    210221        $option_mask |= $PSTAMP_SELECT_BACKMDL  if $backmdl;
    211         $option_mask |= $PSTAMP_SELECT_UNCOMPRESSED   if $uncompressed;
     222        $option_mask |= $PSTAMP_SELECT_UNCOMPRESSED if $uncompressed;
    212223        $option_mask |= $PSTAMP_SELECT_UNCONV   if $unconvolved;
    213224        $option_mask |= $PSTAMP_USE_IMFILE_ID   if $use_imfile_id;
Note: See TracChangeset for help on using the changeset viewer.