IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19938


Ignore:
Timestamp:
Oct 6, 2008, 4:11:11 PM (18 years ago)
Author:
Paul Price
Message:

Let's do the time warp again!

Location:
trunk/ippScripts/scripts
Files:
6 edited

Legend:

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

    r19937 r19938  
    349349    $fpaCommand .= $camStats->cmdflags();
    350350    $fpaCommand .= " -hostname $host" if defined $host;
    351     $fpaCommand .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     351    $fpaCommand .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    352352} else {
    353353    $fpaCommand .= " -updaterun -state full";
     
    384384            $command .= " -path_base $outroot";
    385385            $command .= " -path_base $outroot" if defined $outroot;
    386             $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     386            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    387387        } else {
    388388            $command .= " -updateprocessedexp";
  • trunk/ippScripts/scripts/chip_imfile.pl

    r19932 r19938  
    237237    $command .= " -dbname $dbname" if defined $dbname;
    238238    $command .= $stats->cmdflags();
    239     $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     239    $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    240240} else {
    241241    $command = "$chiptool -tofullimfile";
     
    276276            $command .= " -path_base $outroot";
    277277            $command .= " -hostname $host" if defined $host;
    278             $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     278            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    279279        } else {
    280280            $command .= "$chiptool -updateprocessedimfile";
  • trunk/ippScripts/scripts/diff_skycell.pl

    r19932 r19938  
    244244        my $command = "$difftool -adddiffskyfile -diff_id $diff_id -uri $outputName -path_base $outroot";
    245245        $command .= $stats->cmdflags();
    246         $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     246        $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    247247        $command .= " -hostname $host" if defined $host;
    248248        $command .= " -dbname $dbname" if defined $dbname;
     
    267267    if (defined $diff_id and not $no_update) {
    268268        my $command = "$difftool -adddiffskyfile -diff_id $diff_id -code $exit_code";
    269         $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     269        $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    270270        $command .= " -hostname $host" if defined $host;
    271271        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/fake_imfile.pl

    r19932 r19938  
    197197$command .= " -path_base $outroot";
    198198$command .= " -dbname $dbname" if defined $dbname;
    199 $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     199$command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    200200# XXX add this after defined
    201201# $command .= $stats->cmdflags();
     
    229229        $command .= " -class_id $class_id";
    230230        $command .= " -path_base $outroot";
    231         $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     231        $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    232232        $command .= " -code $exit_code";
    233233        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/stack_skycell.pl

    r19932 r19938  
    267267            $command .= " -uri $outputName -path_base $outroot";
    268268            $command .= " -hostname $host" if defined $host;
    269             $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     269            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    270270        } else {
    271271            $mode = "-updaterun -state full";
     
    298298            $command .= " -addsumskyfile";
    299299            $command .= " -hostname $host" if defined $host;
    300             $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     300            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    301301        } else {
    302302            $command .= " -updatesumskyfile";
  • trunk/ippScripts/scripts/warp_skycell.pl

    r19932 r19938  
    255255            $command .= " -ignore"           if not $accept; # Completed succesfully, but can't produce product
    256256            $command .= " -uri $outputImage" if $accept;
    257             $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     257            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    258258            $command .= $stats->cmdflags()   if $accept;
    259259            $command .= " -hostname $host"   if defined $host;
     
    309309        $command .= " -warp_id $warp_id";
    310310        $command .= " -skycell_id $skycell_id";
    311         $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
     311        $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    312312        $command .= " -code $exit_code";
    313313        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.