IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2007, 12:20:56 PM (19 years ago)
Author:
Paul Price
Message:

Fixing compilation errors.

File:
1 edited

Legend:

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

    r11316 r11319  
    2626
    2727# Parse the command-line arguments
    28 my ($expTag,                    # Exposure tag
    29     $classId,                   # Class Id
     28my ($exp_tag,                   # Exposure tag
     29    $class_id,                  # Class Id
    3030    $input,                     # Input FITS file
    3131    $camera,                    # Camera
     
    3535    );
    3636GetOptions(
    37     'exp_tag|e=s'   => \$expTag,
    38     'class_id|i=s'  => \$classId,
     37    'exp_tag|e=s'   => \$exp_tag,
     38    'class_id|i=s'  => \$class_id,
    3939    'uri|u=s'       => \$input,
    4040    'camera|c=s'    => \$camera,
     
    4646pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    4747pod2usage(
    48     -msg => "Required options: --exp_tag --class_id --uri --camera --outpath",
     48    -msg => "Required options: --exp_tag --class_id --uri --camera --workdir",
    4949    -exitval => 3,
    50 ) unless defined $expTag
    51     and defined $classId
     50) unless defined $exp_tag
     51    and defined $class_id
    5252    and defined $input
    5353    and defined $camera;
     
    7070
    7171### Output file name --- must match camera configuration!
    72 my $outputRoot =  $expTag . '.p2';
     72my $outputRoot =  $exp_tag . '.p2';
    7373$outputRoot = File::Spec->catfile( $workdir, $outputRoot );
    7474$outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    7575$input = $ipprc->convert_filename_absolute ( $input );
    7676
    77 my $outputImage = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $classId);
    78 my $outputBin1 = $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $classId);
    79 my $outputBin2 = $ipprc->filename("PPIMAGE.BIN2", $outputRoot, $classId);
    80 my $outputStats = $outputRoot  . '.' . $classId . '.stats';
     77my $outputImage = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $class_id);
     78my $outputBin1 = $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $class_id);
     79my $outputBin2 = $ipprc->filename("PPIMAGE.BIN2", $outputRoot, $class_id);
     80my $outputStats = $outputRoot  . '.' . $class_id . '.stats';
    8181
    8282# Run ppImage
     
    9191        run(command => $command, verbose => 1);
    9292    unless ($success) {
    93         $error_code >> 8;
     93        $error_code = $error_code >> 8;
    9494        &my_die("Unable to perform ppImage: $error_code", $exp_tag, $class_id, $error_code);
    9595    }
     
    122122    # Command to run p2tool
    123123    my $command = "$p2tool -addprocessedimfile";
    124     $command .= " -exp_tag $expTag";
    125     $command .= " -class_id $classId";
     124    $command .= " -exp_tag $exp_tag";
     125    $command .= " -class_id $class_id";
    126126    $command .= " -recip " . RECIPE;
    127127    $command .= " -uri $outputImage";
     
    136136        run(command => $command, verbose => 1);
    137137    unless ($success) {
    138         $error_code >> 8;
     138        $error_code = $error_code >> 8;
    139139        warn("Unable to perform p2tool -addprocessedimfile: $error_code\n");
    140140        exit($error_code);
     
    154154    warn($msg);
    155155    if ($exp_tag and $class_id) {
    156         my $command = "$dettool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code";
     156        my $command = "$p2tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code";
    157157        $command .= " -dbname $dbname" if defined $dbname;
    158158        system ($command);
Note: See TracChangeset for help on using the changeset viewer.