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

◆ nsamples()

unsigned int datrw::thiesdl1::FileHeader::nsamples ( ) const

number of samples

Definition at line 208 of file thiesdl1file.cc.

References DATRW_assert, datrw::thiesdl1::dl1samplinginterval, earliestdate, latestdate, and readsuccessfully.

Referenced by datrw::thiesdl1::File::nsamples(), datrw::thiesdl1::File::read(), and wid2line().

209  {
211  "FileHeader::nsamples: Data is not set ready");
212  return((this->latestdate-this->earliestdate)/dl1samplinginterval);
213  } // unsigned int FileHeader::nsamples() const
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
bool readsuccessfully
true if header data was read successfully
Definition: thiesdl1file.h:106
const libtime::TRelativeTime dl1samplinginterval
expected sampling interval of DL1
libtime::TAbsoluteTime latestdate
latest date
Definition: thiesdl1file.h:102
libtime::TAbsoluteTime earliestdate
earliest date
Definition: thiesdl1file.h:100
Here is the caller graph for this function: