- Timestamp:
- Oct 29, 2015, 11:01:22 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tools/bills/joinstkcmf (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bills/joinstkcmf
r38887 r39001 29 29 "test" => \$test, 30 30 "ofmt=s" => \$ofmt, 31 "verbose|v" => \$verbose,31 "verbose|v" => \$verbose, 32 32 "save-temps" => \$save_temps, 33 33 ) or pod2usage( 2 ); … … 38 38 my $output = shift; 39 39 40 # TODO: make this an option 41 my $stiltsJar = '/home/panstarrs/bills/jars/stilts.jar'; 40 my $jardir = $ENV{JARDIR}; 41 if (!$jardir) { 42 $jardir = "/home/panstarrs/bills/jars"; 43 } 44 my $stiltsJar = "$jardir/stilts.jar"; 42 45 43 46 my $stilts="java -jar $stiltsJar"; … … 60 63 my ($proj, $cell, $skycell_id); 61 64 if (!$test) { 62 (undef, undef, undef, $proj, $cell, undef, $stack_id, undef, $skycal_id) = split '\.', $infilename; ;65 (undef, undef, undef, $proj, $cell, undef, $stack_id, undef, $skycal_id) = split '\.', $infilename; 63 66 64 67 $skycell_id = sprintf "skycell.%04d.%03d", $proj, $cell; … … 67 70 $stack_id += 0; 68 71 $skycal_id = $stack_id; 69 my $results = ` ftlist $path k include=SKYCELL | head -1`;72 my $results = `echo $path | fields SKYCELL`; 70 73 chomp $results; 71 print "$results\n"; 72 (undef, undef, $skycell_id) = split " ", $results; 74 print "$results\n" if $verbose; 75 # (undef, undef, $skycell_id) = split " ", $results; 76 (undef, $skycell_id) = split " ", $results; 73 77 (undef, $proj, $cell) = split '\.', $skycell_id; 74 78 $cell += 0; … … 87 91 . " fixcols=all suffix1='' suffix2=_exp suffix3=_dev suffix4=_ser suffix5='_xsrc'" 88 92 . " out=$output" 89 90 93 . " in1=$path#$exthead.psf join1=always" 91 94 . " icmd1='" … … 108 111 ; 109 112 113 $cmd .= " ofmt=$ofmt" if $ofmt; 114 110 115 print "$cmd\n" if $verbose; 111 116
Note:
See TracChangeset
for help on using the changeset viewer.
