IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2008, 2:03:10 PM (18 years ago)
Author:
Paul Price
Message:

Adding dtime_script calculation. Updating the database tables.

File:
1 edited

Legend:

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

    r19561 r19932  
    99print "\n\n";
    1010print "Starting script $0 on $host\n\n";
     11
     12use DateTime;
     13my $mjd_start = DateTime->now->mjd;   # MJD of starting script
    1114
    1215use vars qw( $VERSION );
     
    252255            $command .= " -ignore"           if not $accept; # Completed succesfully, but can't produce product
    253256            $command .= " -uri $outputImage" if $accept;
     257            $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    254258            $command .= $stats->cmdflags()   if $accept;
    255259            $command .= " -hostname $host"   if defined $host;
     
    305309        $command .= " -warp_id $warp_id";
    306310        $command .= " -skycell_id $skycell_id";
     311        $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    307312        $command .= " -code $exit_code";
    308313        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.