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

◆ summarize()

Gapsummary Gapsofstream::summarize ( ) const

provide a summary for this stream

Definition at line 45 of file structgapanalysis.cc.

References Gapid::dt, gap, ID, Mearliest, Mlatest, Gapsummary::nbreaks, Gapsummary::ngaps, Gapsummary::nmissing, and Gapsummary::tmissing.

46 {
47  Gapsummary retval(this->Mearliest, this->Mlatest, this->ID.dt);
48  Tvecofgap::const_iterator I=gap.begin();
49  while (I!=gap.end())
50  {
51  if (I->isbreak()) { ++retval.nbreaks; } else { ++retval.ngaps; }
52  retval.nmissing += I->nmissing();
53  retval.tmissing += I->tmissing();
54  ++I;
55  }
56  return(retval);
57 } // Gapsummary Gapsofstream::summarize() const
struct to present a summary
libtime::TAbsoluteTime Mlatest
libtime::TRelativeTime dt
libtime::TAbsoluteTime Mearliest