IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39057 for trunk


Ignore:
Timestamp:
Nov 6, 2015, 10:06:14 AM (11 years ago)
Author:
bills
Message:

use $ipprc->file_resolve() to resolve nebulous paths. Make sure cell
is a valid integer (no leading zero) before passing it to stilts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bills/joinstackcmf

    r39014 r39057  
    1616use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
    1717use Pod::Usage qw( pod2usage );
     18use PS::IPP::Config 1.01 qw( :standard );
     19
     20my $ipprc =  PS::IPP::Config->new();
    1821
    1922# It wouldn't be too hard to make ota an array and do a list of chips.
     
    4952my $infilename = basename($cmf);
    5053
    51 my $path;
    52 if ($cmf =~ /^neb:/) {
    53     $path = `neb-locate -p $cmf`;
    54     if (!$path) {
    55         die "ailed to find location of $cmf\n";
    56     }
    57     print $path if $verbose;
    58     chomp $path;
    59 } else {
    60     $path = $cmf;
     54my $path = $ipprc->file_resolve($cmf);;
     55if (!$path) {
     56    die "ailed to find location of $cmf\n";
    6157}
    6258
     
    7672    (undef, $skycell_id) = split " ", $results;
    7773    (undef, $proj, $cell) = split '\.', $skycell_id;
    78     $cell += 0;
    79     $proj += 0;
    8074}
     75$cell += 0;
     76$proj += 0;
    8177
    8278print "$stack_id $skycal_id $skycell_id\n" if $verbose;
Note: See TracChangeset for help on using the changeset viewer.