IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2008, 9:52:57 AM (18 years ago)
Author:
Paul Price
Message:

Adding outroot instead of workdir for chip and camera; adding verbose flags.

File:
1 edited

Legend:

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

    r14372 r16336  
    1313
    1414my ($dbname,                    # Database name to use
    15     $workdir,                   # Working directory
     15    $workdir_default,           # Default working directory
     16    $verbose,                   # Verbose operations?
    1617    $no_op,                     # No operations?
    1718    $no_update,                 # No updating?
    1819    );
    1920GetOptions(
    20            'dbname|d=s' => \$dbname,
    21            'workdir|w=s' => \$workdir,
     21           'dbname=s' => \$dbname,
     22           'workdir=s' => \$workdir_default,
     23           'verbose' => \$verbose,
    2224           'no-op' => \$no_op,
    2325           'no-update' => \$no_update,
     
    2830          -exitval => 3,
    2931          ) unless defined $dbname;
     32
     33$workdir_default = `pwd` unless defined $workdir_default;
    3034
    3135my $mdcParser = PS::IPP::Metadata::Config->new; # Metadata config parser
     
    5256    my $exp_tag = $item->{exp_tag};
    5357    my $camera = $item->{camera};
     58    my $workdir = $item->{workdir};
    5459   
     60    $workdir = $workdir_default unless (defined $workdir or $workdir ne "NULL");
     61    my $outroot = $workdir . '/' . ${exp_tag} . '/' . ${exp_tag} . '.cm.' . ${cam_id};
     62
    5563    my $command = "$camera_exp --cam_id $cam_id --exp_tag $exp_tag --camera $camera --dbname $dbname";
     64    $command .= " --verbose" if defined $verbose;
    5665    $command .= " --no-op" if defined $no_op;
    5766    $command .= " --no-update" if defined $no_update;
Note: See TracChangeset for help on using the changeset viewer.