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/stack_skycell.pl

    r19689 r19932  
    1010print "\n\n";
    1111print "Starting script $0 on $host\n\n";
     12
     13use DateTime;
     14my $mjd_start = DateTime->now->mjd;   # MJD of starting script
    1215
    1316use vars qw( $VERSION );
     
    264267            $command .= " -uri $outputName -path_base $outroot";
    265268            $command .= " -hostname $host" if defined $host;
     269            $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    266270        } else {
    267271            $mode = "-updaterun -state full";
     
    294298            $command .= " -addsumskyfile";
    295299            $command .= " -hostname $host" if defined $host;
     300            $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    296301        } else {
    297302            $command .= " -updatesumskyfile";
Note: See TracChangeset for help on using the changeset viewer.