IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2008, 4:48:03 PM (17 years ago)
Author:
bills
Message:

various changes this script doesn't work yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_mask.pl

    r18784 r20673  
    2929
    3030# Parse the command-line arguments
    31 my ($magic_id, $camera, $dbname, $outroot, $save_temps, $verbose, $no_update, $no_op, $redirect);
     31my ($magic_id, $camera, $dbname, $outroot, $save_temps, $verbose, $no_update, $no_op, $logfile);
    3232GetOptions(
    3333           'magic_id=s'      => \$magic_id,   # Magic identifier
     
    3939           'no-update'       => \$no_update,  # Don't update the database?
    4040           'no-op'           => \$no_op,      # Don't do any operations?
    41            'redirect-output' => \$redirect,   # Redirect output?
     41           'logfile=s'       => \$logfile,   # Redirect output?
    4242           ) or pod2usage( 2 );
    4343
     
    5151$ipprc->define_camera($camera);
    5252
    53 my $logDest = $ipprc->filename("LOG.EXP", $outroot, $magic_id) or
    54     &my_die("Missing entry from camera config", $magic_id, $PS_EXIT_CONFIG_ERROR);
    55 $ipprc->redirect_output($logDest) if $redirect;
     53$ipprc->redirect_output($logfile) if $logfile;
    5654
    5755# Look for programs we need
    5856my $missing_tools;
    5957my $magictool = can_run('magictool') or (warn "Can't find magictool" and $missing_tools = 1);
    60 my $streaks = can_run('RemoveStreaks') or (warn "Can't find RemoveStreaks" and $missing_tools = 1);
     58my $streaksremove = can_run('streaksremove') or (warn "Can't find streaksremove" and $missing_tools = 1);
    6159if ($missing_tools) {
    6260    warn("Can't find required tools.");
Note: See TracChangeset for help on using the changeset viewer.