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

◆ dateoffirstsample()

libtime::TAbsoluteTime datrw::su::SUheader::dateoffirstsample ( ) const

return date of first sample

Definition at line 215 of file suheader.cc.

References dateofshot(), delay(), and delayispositive().

Referenced by main(), and wid2().

216  {
217  libtime::TAbsoluteTime date=this->dateofshot();
218  if (this->delayispositive())
219  {
220  date += this->delay();
221  } else {
222  date -= this->delay();
223  }
224  return(date);
225  } // libtime::TAbsoluteTime SUheader::dateoffirstsample() const
bool delayispositive() const
is delay positive recording delay
Definition: suheader.cc:230
libtime::TRelativeTime delay() const
recording delay
Definition: suheader.cc:250
libtime::TAbsoluteTime dateofshot() const
return date of shot
Definition: suheader.cc:261
Here is the call graph for this function:
Here is the caller graph for this function: