Changeset 25027 for branches/pap/pstamp/test/pstamp_req_create
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp/test/pstamp_req_create (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/pstamp/test/pstamp_req_create
r20257 r25027 26 26 27 27 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 28 pod2usage( -msg => "Required options: --input --output ",29 -exitval => 3) unless defined $input and defined $output;28 pod2usage( -msg => "Required options: --input --output | --req_name", 29 -exitval => 3) unless defined $input and (defined $output or defined $req_name); 30 30 31 31 # The header kewords … … 55 55 { name => 'IMG_TYPE', type => '16A', writetype => TSTRING }, 56 56 { 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 }, 58 59 59 60 … … 95 96 if ($req_name) { 96 97 $header->[0]->{value} = $req_name; 97 } 98 } else { 99 $req_name = $header->[0]->{value}; 100 } 101 102 die "no request name defined" unless defined $req_name; 103 104 $output = $req_name . ".fits" if !$output; 98 105 99 106 my $status = make_fits_table($output, EXTNAME, $numRows, \@colData, $columns, $header);
Note:
See TracChangeset
for help on using the changeset viewer.
