DATRW++ library: seismic data I/O with multiple formats

◆ delay()

libtime::TRelativeTime datrw::su::SUheader::delay ( ) const

recording delay

return recording delay

libtime::TRelativeTime has microsecond resolution such that the return type of the function is also appropriate for ultrasonic data

Definition at line 250 of file suheader.cc.

References absdelrt(), and isultrasonic().

Referenced by dateoffirstsample(), and main().

251  {
252  double factor=1.e-3;
253  if (this->isultrasonic()) { factor=1.e-6; }
254  return(libtime::double2time(factor
255  *static_cast<double>(this->absdelrt())));
256  } // libtime::TRelativeTime SUheader::delay() const
int absdelrt() const
absolute (always positive) delay value
Definition: suheader.cc:238
bool isultrasonic() const
true if header defines sampling of ultrasonic data
Definition: suheader.cc:166
Here is the call graph for this function:
Here is the caller graph for this function: