IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 12:45:24 PM (17 years ago)
Author:
eugene
Message:

update from mainline

Location:
branches/eam_branches/20090715
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715

  • branches/eam_branches/20090715/pstamp/test/pstamp_req_create

    r20257 r25022  
    2626
    2727pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    28 pod2usage( -msg => "Required options: --input --output",
    29            -exitval => 3) unless defined $input and defined $output;
     28pod2usage( -msg => "Required options: --input --output | --req_name",
     29           -exitval => 3) unless defined $input and (defined $output or defined $req_name);
    3030
    3131# The header kewords
     
    5555        { name => 'IMG_TYPE',   type => '16A', writetype => TSTRING },
    5656        { name => 'ID',         type => '16A', writetype => TSTRING },           
    57         { name => 'CLASS_ID',   type => '16A', writetype => TSTRING },
     57        { name => 'TESS_ID',    type => '64A', writetype => TSTRING },
     58        { name => 'COMPONENT',  type => '64A', writetype => TSTRING },
    5859
    5960
     
    9596if ($req_name) {
    9697    $header->[0]->{value} = $req_name;
    97 }
     98} else {
     99    $req_name = $header->[0]->{value};
     100}
     101
     102die "no request name defined" unless defined $req_name;
     103
     104$output = $req_name . ".fits" if !$output;
    98105
    99106my $status = make_fits_table($output, EXTNAME, $numRows, \@colData, $columns, $header);
Note: See TracChangeset for help on using the changeset viewer.