IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2008, 4:31:47 PM (18 years ago)
Author:
eugene
Message:

adding dtime_script, dtime_addstar

File:
1 edited

Legend:

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

    r19942 r19971  
    137137        $cmdflags .= " $line";
    138138    }
     139    chomp $cmdflags;
    139140}
    140141
     
    193194}
    194195
     196my $dtime_addstar = 0;
    195197
    196198unless ($no_op) {
     
    308310            $command .= " $realFile";
    309311
     312            my $mjd_addstar_start = DateTime->now->mjd;   # MJD of starting script
     313
    310314            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    311315                run(command => $command, verbose => $verbose);
     
    314318                &my_die("Unable to perform addstar: $error_code", $cam_id, $error_code);
    315319            }
    316         }
    317     }
    318 }
     320            $dtime_addstar = 86400.0*(DateTime->now->mjd - $mjd_addstar_start);   # MJD of starting script
     321        }
     322    }
     323}
     324
     325my $dtime_script = (DateTime->now->mjd - $mjd_start) * 86400;
    319326
    320327my $fpaCommand = "$camtool -cam_id $cam_id";
     
    325332    $fpaCommand .= " $cmdflags";
    326333    $fpaCommand .= " -hostname $host" if defined $host;
    327     $fpaCommand .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
     334    $fpaCommand .= " -dtime_script $dtime_script";
     335    $fpaCommand .= " -dtime_addstar $dtime_addstar";
    328336} else {
    329337    $fpaCommand .= " -updaterun -state full";
Note: See TracChangeset for help on using the changeset viewer.