IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2006, 12:16:03 PM (20 years ago)
Author:
Paul Price
Message:

Changing 'exp id' to 'exp tag' throughout, following corresponding change in database.

File:
1 edited

Legend:

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

    r9091 r9097  
    1515use Pod::Usage qw( pod2usage );
    1616
    17 my ($exp_id, $class_id, $uri, $no_update);
     17my ($exp_tag, $class_id, $uri, $no_update);
    1818
    1919GetOptions(
    20     'exp_id|e=s'    => \$exp_id,
     20    'exp_tag|e=s'    => \$exp_tag,
    2121    'class_id|i=s'  => \$class_id,
    2222    'uri|u=s'       => \$uri,
     
    2626pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    2727pod2usage(
    28     -msg => "Required options: --exp_id --class_id --uri",
     28    -msg => "Required options: --exp_tag --class_id --uri",
    2929    -exitval => 3,
    30 ) unless defined $exp_id
     30) unless defined $exp_tag
    3131    and defined $class_id
    3232    and defined $uri;
     
    6060# Switches for p0tool
    6161use constant P0TOOL_MODE => '-updateimfile'; # Mode for p0tool
    62 use constant P0TOOL_EXPID => '-exp_id'; # Switch to specify the exposure id
     62use constant P0TOOL_EXPTAG => '-exp_tag'; # Switch to specify the exposure id
    6363use constant P0TOOL_CLASSID => '-class_id'; # Switch to specify the class id
    6464use constant P0TOOL_BG_MEAN => '-bg'; # Switch to add the background
     
    7878    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    7979        run(command => $command, verbose => 1);
    80     die "Unable to perform ppStats on exposure id $exp_id: $error_code\n" if not $success;
     80    die "Unable to perform ppStats on exposure id $exp_tag: $error_code\n" if not $success;
    8181   
    8282    # Parse the output
     
    9292# Push the results into the database
    9393unless ($no_update) {
    94     my $command = $p0tool . " " . P0TOOL_MODE() . " " . P0TOOL_EXPID() . " " . $exp_id . " " .
     94    my $command = $p0tool . " " . P0TOOL_MODE() . " " . P0TOOL_EXPTAG() . " " . $exp_tag . " " .
    9595        P0TOOL_CLASSID() . " " . $class_id; # Command to run p0tool
    9696   
Note: See TracChangeset for help on using the changeset viewer.