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

◆ qualityreports()

sff::FREE datrw::hpmo::qualityreports ( const MinuteBlock blocks,
const int &  nblocks 
)

prepare a report on unusual quality reports

Definition at line 125 of file readhpmo.cc.

References datrw::hpmo::MinuteBlock::Mquality_flag, and quality().

Referenced by datrw::ihpmostream::read(), and datrw::ihpmostream::set_next_header().

126  {
127  sff::FREE retval;
128  for (int i=0; i<nblocks; ++i)
129  {
130  const int& qf=blocks[i].Mquality_flag;
131  if (qf != 0)
132  {
133  std::ostringstream oss;
134  oss << qf;
135  retval.append("quality flag @ " + blocks[i].Mtime.timestring()
136  + ": " + oss.str());
137  retval.append(" this means: " + quality(qf));
138  }
139  }
140  return(retval);
141  } // sff::FREE qualityreports(const MinuteBlock* blocks, const int& nblocks)
std::string quality(const int &flag)
return meaning of quality flag
Definition: readhpmo.cc:109
Here is the call graph for this function:
Here is the caller graph for this function: