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

◆ timeofnextsample()

libtime::TAbsoluteTime datrw::tsoft::Datasequence::timeofnextsample ( const bool &  debug = false) const

return time of next sample after last samples

Definition at line 164 of file tsoftdata.cc.

References date(), interval(), and nsamples().

Referenced by datrw::tsoft::Channeldata::push_sample().

166  {
167  if (debug)
168  {
169  std::cout << " date: " << this->date().timestring() << std::endl;
170  std::cout << " interval: " << this->interval().timestring() << std::endl;
171  std::cout << " nsamples: " << this->nsamples() << std::endl;
172  }
173  libtime::TAbsoluteTime retval=this->date();
174  retval += (this->nsamples()*this->interval());
175  return(retval);
176  } // libtime::TAbsoluteTime Datasequence::timeofnextsample() const
int nsamples() const
return number of samples
Definition: tsoftdata.h:288
libtime::TRelativeTime interval() const
return sampling interval
Definition: tsoftdata.h:294
libtime::TAbsoluteTime date() const
return time of first sample
Definition: tsoftdata.h:290
Here is the call graph for this function:
Here is the caller graph for this function: