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

    r19665 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 );
     
    353356    $fpaCommand .= $camStats->cmdflags();
    354357    $fpaCommand .= " -hostname $host" if defined $host;
     358    $fpaCommand .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    355359} else {
    356360    $fpaCommand .= " -updaterun -state full";
     
    387391            $command .= " -path_base $outroot";
    388392            $command .= " -path_base $outroot" if defined $outroot;
     393            $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    389394        } else {
    390395            $command .= " -updateprocessedexp";
Note: See TracChangeset for help on using the changeset viewer.