Changeset 38748 for trunk/tools/bills/concatsmf
- Timestamp:
- Sep 16, 2015, 3:49:47 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tools/bills/concatsmf (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bills/concatsmf
r38746 r38748 33 33 my $output = shift; 34 34 35 my $stilts="java -jar $ENV{HOME}/tools/stilts.jar"; 35 # TODO: make this an option 36 my $stiltsJar = '/home/panstarrs/bills/jars/stilts.jar'; 37 38 my $stilts="java -jar $stiltsJar"; 36 39 37 40 my $ofmt = 'fits'; 38 41 39 42 my $infilename = basename($smf); 43 44 my $path; 45 if ($smf =~ /^neb:/) { 46 $path = `neb-locate -p $smf`; 47 if (!$path) { 48 die "ailed to find location of $smf\n"; 49 } 50 print $path if $verbose; 51 chomp $path; 52 } else { 53 $path = $smf; 54 } 55 40 56 my ($exp_name, $exp_id, $cam_id); 41 57 ($exp_name, $exp_id, undef, $cam_id) = split '\.', $infilename; 42 58 43 print "$exp_name $exp_id $cam_id\n" ;59 print "$exp_name $exp_id $cam_id\n" if $verbose; 44 60 my $extension = ""; 45 61 … … 50 66 } 51 67 $extension = sprintf "XY%02d.psf", $ota; 52 extract_chip($ smf, $output, $exp_id, $ota, $extension);68 extract_chip($path, $output, $exp_id, $ota, $extension); 53 69 exit 0; 54 70 } … … 69 85 my ($ofile, $out) = tempfile ("$dir/$ota.XXXX", SUFFIX => '.cmf', UNLINK => !$save_temps); 70 86 print $listfile "$out\n"; 71 extract_chip($ smf, $out, $exp_id, $ota, $extension);87 extract_chip($path, $out, $exp_id, $ota, $extension); 72 88 } 73 89 } … … 94 110 95 111 # Add a column IMAGE_ID which we can match with the imageID in the Detection table. 96 my $cmd = "$stilts tpipe in=$in'#'$extension out=$out ofmt=$ofmt cmd='addcol -after IPP_IDET IMAGE_ID $imageID;' join=1or2";112 my $cmd = "$stilts tpipe in=$in'#'$extension out=$out ofmt=$ofmt cmd='addcol -after IPP_IDET IMAGE_ID $imageID;'"; 97 113 98 114 print "$cmd\n" if $verbose;
Note:
See TracChangeset
for help on using the changeset viewer.
