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

◆ dt()

double datrw::su::SUheader::dt ( ) const

return sampling interval

Definition at line 156 of file suheader.cc.

References datrw::su::TraceHeaderStruct::dt, isultrasonic(), and Mheader.

Referenced by wid2().

157  {
158  double factor=1.e-6;
159  if (this->isultrasonic()) { factor=1.e-9; }
160  return (static_cast<double>(Mheader.dt)*factor);
161  } // double SUheader::dt() const
unsigned short dt
sample interval; in micro-seconds
bool isultrasonic() const
true if header defines sampling of ultrasonic data
Definition: suheader.cc:166
TraceHeaderStruct Mheader
the actual data fields are provided for public access
Definition: suheader.h:239
Here is the call graph for this function:
Here is the caller graph for this function: