conv/many suite: convert (m)any seismic data format(s)

◆ isinbin()

bool CompletenessBins::isinbin ( const libtime::TAbsoluteTime &  d,
const unsigned int &  i 
) const

check if d is in bin

Parameters
ddate and time to check
ibin number to check for
Returns
true if d falls into bin i

Definition at line 94 of file completenessbins.cc.

References bin(), and nextbin().

Referenced by bin(), and seriesofmissingsamples().

96 {
97  libtime::TAbsoluteTime thisbin=this->bin(i);
98  libtime::TAbsoluteTime nextbin=this->nextbin(i);
99  return((d>=thisbin) && (d<nextbin));
100 } // bool CompletenessBins::isinbin(const libtime::TAbsoluteTime& d,
libtime::TAbsoluteTime bin(const unsigned int &i) const
beginnig of bin (according to bin raster)
libtime::TAbsoluteTime nextbin(const unsigned int &i) const
start of bin (will be earliest for fisrt bin)
Here is the call graph for this function:
Here is the caller graph for this function: