예제 #1
0
파일: psradd.C 프로젝트: lbaehren/lofarsoft
// ///////////////////////////////////////////////////////////////
//
// auto_add -g
//
void psradd::check_interval_within ()
{
  double gap = (total->start_time() - total->end_time()).in_seconds();

  if (verbose)
    cerr << "psradd: Auto add - gap " << gap << " seconds" << endl;

  if (fabs(gap) > max_interval_within)
  {
    if (verbose)
      cerr << "psradd: gap=" << gap << " greater than interval within="
	   << max_interval_within << endl;
    reset_total = true;
  }
}
예제 #2
0
파일: psradd.C 프로젝트: lbaehren/lofarsoft
// ///////////////////////////////////////////////////////////////
//
// auto_add -G
//
void psradd::check_interval_between (Pulsar::Archive* archive)
{   
  double gap = (archive->start_time() - total->end_time()).in_seconds();
      
  if (verbose)
    cerr << "psradd: Auto add - gap = " << gap << " seconds" << endl;
      
  if (fabs(gap) > max_interval_between)
  {
    if (verbose)
      cerr << "psradd: gap=" << gap << " greater than interval between=" 
	   << max_interval_between << endl;
    reset_total = true;
  }
}