IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2009, 12:02:57 PM (17 years ago)
Author:
Paul Price
Message:

Add muggle option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/warp_inputs.pl

    r21427 r25458  
    2323my ($skycell_id);               # Skycell of interest
    2424my ($image, $mask, $variance); # Files to contain input lists
     25my ($muggle);                   # No magicked inputs?
    2526
    2627GetOptions(
     
    3435           'mask=s' => \$mask,  # File with masks
    3536           'variance=s' => \$variance, # File with variances
     37           'muggle'   => \$muggle, # No magicked inputs?
    3638           ) or die "Unable to parse arguments.\n";
    3739die "Unknown option: @ARGV\n" if @ARGV;
     
    108110    my $file = shift;           # File to copy
    109111
     112    if (defined $muggle) {
     113        my @file = split /\//, $file;
     114        my $last = pop @file;
     115        push @file, "SR_$last";
     116        $file = join '/', @file;
     117    }
     118
    110119    my $source = `ipp_datapath.pl $file` or die "Unable to locate $file\n"; # Actual file
    111120    chomp $source;
Note: See TracChangeset for help on using the changeset viewer.