Changeset 38887 for trunk/tools
- Timestamp:
- Oct 20, 2015, 12:09:18 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tools/bills/joinstkcmf (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bills/joinstkcmf
r38757 r38887 21 21 22 22 my ($stack_id, $skycal_id); 23 my $test; 23 24 my ($save_temps, $verbose); 24 25 my $ofmt; … … 26 27 GetOptions( 27 28 "stack_id|s=s" => \$stack_id, 29 "test" => \$test, 28 30 "ofmt=s" => \$ofmt, 29 "ve bose|v" => \$verbose,31 "verbose|v" => \$verbose, 30 32 "save-temps" => \$save_temps, 31 33 ) or pod2usage( 2 ); … … 56 58 } 57 59 58 my ($proj, $cell); 59 (undef, undef, undef, $proj, $cell, undef, $stack_id, undef, $skycal_id) = split '\.', $infilename;; 60 my ($proj, $cell, $skycell_id); 61 if (!$test) { 62 (undef, undef, undef, $proj, $cell, undef, $stack_id, undef, $skycal_id) = split '\.', $infilename;; 60 63 61 my $skycell_id = sprintf "skycell.%04d.%03d", $proj, $cell; 64 $skycell_id = sprintf "skycell.%04d.%03d", $proj, $cell; 65 } else { 66 (undef, $stack_id) = split '\.', $infilename; 67 $stack_id += 0; 68 $skycal_id = $stack_id; 69 my $results = `ftlist $path k include=SKYCELL | head -1`; 70 chomp $results; 71 print "$results\n"; 72 (undef, undef, $skycell_id) = split " ", $results; 73 (undef, $proj, $cell) = split '\.', $skycell_id; 74 $cell += 0; 75 $proj += 0; 76 } 62 77 63 78 print "$stack_id $skycal_id $skycell_id\n" if $verbose;
Note:
See TracChangeset
for help on using the changeset viewer.
