IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26379


Ignore:
Timestamp:
Dec 10, 2009, 6:47:06 AM (16 years ago)
Author:
Paul Price
Message:

Adding muggle option to get non-magicked data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/warp_outputs.pl

    r25859 r26379  
    2424my ($input);                    # Input list
    2525my ($products);                 # Products of interest
     26my ($muggle);                   # No magicked inputs?
    2627
    2728GetOptions(
     
    3334           'skycell_id=s' => \$skycell_id, # Skycell identifier
    3435           'products=s' => \$products, # Products of interest
    35            ) or die "Unable to parse arguments.\n";
     36           'muggle'   => \$muggle, # No magicked inputs?
     37           ) or
     38die "Unable to parse arguments.\n";
    3639die "Unknown option: @ARGV\n" if @ARGV;
    3740die "Required options: --dbhost --dbname --dbuser --dbpass --warp_id\n"
     
    8083
    8184    my $file = "$path$ext"; # File
     85
     86    if (defined $muggle and $ext ne ".psf") {
     87        my @file = split /\//, $file;
     88        my $last = pop @file;
     89        push @file, "SR_$last";
     90        $file = join '/', @file;
     91    }
     92
    8293    my $source = `ipp_datapath.pl $file` or die "Unable to locate $file\n"; # Actual file
    8394    chomp $source;
Note: See TracChangeset for help on using the changeset viewer.