IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 12:45:24 PM (17 years ago)
Author:
eugene
Message:

update from mainline

Location:
branches/eam_branches/20090715
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715

  • branches/eam_branches/20090715/tools/stack_inputs.pl

    r21427 r25022  
    2424my ($stack_id);                 # Stack of interest
    2525my ($input);                    # Input list
     26my ($muggle);                   # No magicked inputs?
    2627
    2728GetOptions(
     
    3233           'stack_id=s' => \$stack_id, # Stack identifier
    3334           'input=s'  => \$input, # Input list to generate
     35           'muggle'   => \$muggle, # No magicked inputs?
    3436           ) or die "Unable to parse arguments.\n";
    3537die "Unknown option: @ARGV\n" if @ARGV;
     
    7072    print $list "INPUT METADATA\n" if defined $input;
    7173    foreach my $type ( keys %{EXTENSIONS()} ) {
     74        my $path = $warp_path;
     75        if (defined $muggle and $type ne "PSF") {
     76            my @warp = split /\//, $warp_path;
     77            my $last = pop @warp;
     78            push @warp, "SR_$last";
     79            $path = join '/', @warp;
     80        }
    7281        my $ext = ${EXTENSIONS()}{$type}; # Extension
    73         my $file = "$warp_path$ext"; # File
     82        my $file = "$path$ext"; # File
    7483        my $source = `ipp_datapath.pl $file` or die "Unable to locate $file\n"; # Resolved file name
    7584        chomp $source;
Note: See TracChangeset for help on using the changeset viewer.