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

◆ samplinginterval()

double datrw::mseed::samplinginterval ( const short int &  srate,
const short int &  srmult 
)

calculate sampling interval from srate and smult

Definition at line 180 of file mseedread.cc.

Referenced by datrw::mseed::MiniSEEDRecord::dt().

182  {
183  double fac1 = srate < 0 ? -double(srate) : 1./double(srate);
184  double fac2 = srmult < 0 ? -double(srmult) : 1./double(srmult);
185  return(fac1*fac2);
186  } // double samplinginterval(const short int& srate,
Here is the caller graph for this function: