IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2013, 2:13:58 PM (13 years ago)
Author:
heather
Message:

adds delstar to minidvodb_premerge.pl

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r33030 r35306  
    156156            $merge_command = "rsync -rvat $minidvodb_path/* $mergedvodb_path";
    157157        } else {
    158             $merge_command = "$dvomerge $minidvodb_path into $mergedvodb_path";
     158            $merge_command = "$dvomerge -parallel $minidvodb_path into $mergedvodb_path";
    159159        }
    160160        print "\n$merge_command\n";
  • trunk/ippScripts/scripts/minidvodb_premerge.pl

    r33030 r35306  
    1616my $dtime_relphot;
    1717my $dtime_script;
     18my $dtime_delstar;
    1819
    1920use vars qw( $VERSION );
     
    3334my $dvomerge = can_run('dvomerge') or (warn "Can't find dvomerge" and $missing_tools = 1);
    3435my $addtool = can_run('addtool') or (warn "Can't find addtool" and $missing_tools = 1);
     36my $delstar = can_run('delstar') or (warn "Can't find delstar" and $missing_tools = 1);
    3537my $addstar = can_run('addstar') or (warn "Can't find addstar" and $missing_tools = 1);
    3638my $relphot = can_run('relphot') or (warn "Can't find relphot" and $missing_tools = 1);
    3739my $relastro = can_run('relastro') or (warn "Can't find relastro" and $missing_tools = 1);
     40
    3841my $dvoverify = can_run('dvoverify') or (warn "Can't find dvoverify" and $missing_tools = 1);
    3942
     
    8083unless ($no_op) {
    8184   
    82         #this is chopped into several parts: addstar, relphot
     85        #this is chopped into several parts: delstar,addstar, relphot, relastro, dvoverify
     86        #delstar - first step: are there duplicates, if so remove them
     87        {
     88            my $command  = "$delstar -update -dup-images ";
     89            #$command .= " -D CAMERA $camera";
     90            $command .= " -D CATDIR $minidvodb";
     91            my $mjd_delstar_start = DateTime->now->mjd;   # MJD of starting script
     92            print "\n$command\n";
     93            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     94                run(command => $command, verbose => $verbose);
     95            unless ($success) {
     96                $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     97                &my_die("Unable to perform delstar: $error_code", $minidvodb_id, $error_code);
     98            }
     99            print $full_buf;
     100            $dtime_delstar = 86400.0*(DateTime->now->mjd - $mjd_delstar_start); 
     101            # MJD of starting script
     102            print "delstar time $dtime_delstar\n";
     103        }
     104
     105
     106
    83107        #addstar
    84108        {
     
    94118                &my_die("Unable to perform addstar: $error_code", $minidvodb_id, $error_code);
    95119            }
    96             $dtime_addstar = 86400.0*(DateTime->now->mjd - $mjd_addstar_start);  $dtime_resort = $dtime_addstar;
    97             # MJD of starting script
     120            $dtime_addstar = 86400.0*(DateTime->now->mjd - $mjd_addstar_start); 
     121            # MJD of starting script
    98122            $dtime_resort = $dtime_addstar;
    99123            print "addstar -resort time $dtime_addstar\n";
Note: See TracChangeset for help on using the changeset viewer.