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/chip_imfile.pl

    r18360 r18562  
    2626# Parse the command-line arguments
    2727my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $verbose,
    28      $no_update, $no_op );
     28     $no_update, $no_op, $redirect );
    2929GetOptions(
    30            'exp_id=s'      => \$exp_id,    # Exposure identifier
    31            'chip_id=s'     => \$chip_id,   # Chiptool identifier
    32            'class_id=s'    => \$class_id,  # Class identifier
    33            'uri|u=s'       => \$uri,       # Input FITS file
    34            'camera|c=s'    => \$camera,    # Camera
    35            'outroot|w=s'   => \$outroot,   # output file base name
    36            'dbname|d=s'    => \$dbname,    # Database name
    37            'reduction=s'   => \$reduction, # Reduction class
    38            'verbose'       => \$verbose,   # Print to stdout
    39            'no-update'     => \$no_update, # Don't update the database?
    40            'no-op'         => \$no_op,     # Don't do any operations?
    41            ) or pod2usage( 2 );
     30    'exp_id=s'          => \$exp_id,    # Exposure identifier
     31    'chip_id=s'         => \$chip_id,   # Chiptool identifier
     32    'class_id=s'        => \$class_id,  # Class identifier
     33    'uri|u=s'           => \$uri,       # Input FITS file
     34    'camera|c=s'        => \$camera,    # Camera
     35    'outroot|w=s'       => \$outroot,   # output file base name
     36    'dbname|d=s'        => \$dbname,    # Database name
     37    'reduction=s'       => \$reduction, # Reduction class
     38    'verbose'           => \$verbose,   # Print to stdout
     39    'no-update'         => \$no_update, # Don't update the database?
     40    'no-op'             => \$no_op,     # Don't do any operations?
     41    'redirect-output'   => \$redirect,
     42    ) or pod2usage( 2 );
    4243
    4344pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
     
    5253
    5354$ipprc->define_camera($camera);
     55
     56my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);
     57
     58$ipprc->redirect_output($logDest) if $redirect;
    5459
    5560# Recipes to use based on reduction class
     
    125130my $outputStats   = $ipprc->filename("PPIMAGE.STATS",       $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);
    126131my $traceDest     = $ipprc->filename("TRACE.IMFILE",        $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);
    127 my $logDest       = $ipprc->filename("LOG.IMFILE",          $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);
    128132
    129133# Run ppImage
Note: See TracChangeset for help on using the changeset viewer.