IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 10:33:17 AM (18 years ago)
Author:
eugene
Message:

implement redirect-output everywhere; cleanup logfile names; rename detrend_resid.pl to detrend_resid_imfile.pl; rename detrend_reject_imfile.pl to detrend_resid_exp.pl

File:
1 edited

Legend:

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

    r18056 r18562  
    2525my $ipprc = PS::IPP::Config->new(); # IPP configuration
    2626
    27 my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $verbose, $no_update, $no_op, $save_temps);
     27my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $verbose, $no_update, $no_op, $redirect, $save_temps);
    2828GetOptions(
    2929    'warp_id|i=s'       => \$warp_id, # Warp identifier
     
    3636    'no-update'         => \$no_update, # Don't update the database?
    3737    'no-op'             => \$no_op, # Don't do any operations?
     38    'redirect-output'   => \$redirect,
    3839    'save-temps'        => \$save_temps, # Save temporary files?
    3940) or pod2usage( 2 );
     
    5051
    5152$ipprc->define_camera($camera);
     53
     54my $logDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id);
     55
     56$ipprc->redirect_output($logDest) if $redirect;
    5257
    5358my $STATS =
     
    119124my $outputStats = $ipprc->filename("SKYCELL.STATS", $outroot, $skycell_id );
    120125my $traceDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id);
    121 my $logDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id);
    122126
    123127my $skyFile = $ipprc->filename("SKYCELL.TEMPLATE", $outroot, $skycell_id );
Note: See TracChangeset for help on using the changeset viewer.