IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13817


Ignore:
Timestamp:
Jun 13, 2007, 4:53:48 PM (19 years ago)
Author:
eugene
Message:

adding dvodb from campendingexp

File:
1 edited

Legend:

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

    r13790 r13817  
    4141           'dbname|d=s'        => \$dbname, # Database name
    4242           'workdir|w=s'       => \$workdir, # Working directory
     43           'dvodb|w=s'         => \$dbodb,  # output DVO database
    4344           'no-update'         => \$no_update, # Update the database?
    4445           'no-op'             => \$no_op, # Don't do any operations?
     
    155156my $fpaObjects = $ipprc->filename("PSASTRO.OUTPUT.MEF", $outputRoot); # MEF psastro output
    156157
     158# convert supplied DVO database name to UNIX filename
     159if (defined $dvodb) {
     160    my $dvodbReal = $ipprc->convert_filename_absolute( $dvodb );
     161}
     162
    157163unless ($no_op) {
    158164
     
    179185        my $camdir = $ipprc->dvo_cameradir(); # Camera directory for addstar
    180186        my $command = "addstar -D CAMERA $camdir " . $ipprc->file_resolve($fpaObjects);
     187       
     188        if (define $dvodbReal) {
     189            my $command .= " -D CATDIR $dvodbReal";
     190        }
     191
    181192        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    182193            run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.