IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39001


Ignore:
Timestamp:
Oct 29, 2015, 11:01:22 AM (11 years ago)
Author:
bills
Message:

various cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bills/joinstkcmf

    r38887 r39001  
    2929    "test"              =>  \$test,
    3030    "ofmt=s"            =>  \$ofmt,
    31     "verbose|v"          =>  \$verbose,
     31    "verbose|v"         =>  \$verbose,
    3232    "save-temps"        =>  \$save_temps,
    3333) or pod2usage( 2 );
     
    3838my $output = shift;
    3939
    40 # TODO: make this an option
    41 my $stiltsJar = '/home/panstarrs/bills/jars/stilts.jar';
     40my $jardir = $ENV{JARDIR};
     41if (!$jardir) {
     42    $jardir = "/home/panstarrs/bills/jars";
     43}
     44my $stiltsJar = "$jardir/stilts.jar";
    4245
    4346my $stilts="java -jar $stiltsJar";
     
    6063my ($proj, $cell, $skycell_id);
    6164if (!$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;
    6366
    6467    $skycell_id = sprintf "skycell.%04d.%03d", $proj, $cell;
     
    6770    $stack_id += 0;
    6871    $skycal_id = $stack_id;
    69     my $results = `ftlist $path k include=SKYCELL | head -1`;
     72    my $results = `echo $path | fields SKYCELL`;
    7073    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;
    7377    (undef, $proj, $cell) = split '\.', $skycell_id;
    7478    $cell += 0;
     
    8791    . " fixcols=all suffix1='' suffix2=_exp suffix3=_dev suffix4=_ser suffix5='_xsrc'"
    8892    . " out=$output"
    89 
    9093    . " in1=$path#$exthead.psf  join1=always"
    9194    . " icmd1='"
     
    108111    ;
    109112
     113$cmd .= " ofmt=$ofmt" if $ofmt;
     114
    110115print "$cmd\n" if $verbose;
    111116
Note: See TracChangeset for help on using the changeset viewer.