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

◆ push_data()

void datrw::tsoft::Datacontainer::push_data ( const std::string &  line,
const double &  undetval,
const libtime::TRelativeTime &  dt,
const bool &  debug = false 
)

push a data line

Definition at line 297 of file tsoftdata.cc.

References channel(), datrw::hpmo::dt(), Mreaderconfig, datrw::tsoft::Dataline::nsamples(), datrw::tsoft::Channeldata::push_sample(), datrw::tsoft::Dataline::sample(), and datrw::tsoft::Dataline::time().

Referenced by datrw::tsoft::TSOFTfile::read().

301  {
302  Dataline thedata(line);
303  if (debug)
304  {
305  std::cout << "the line: " << line << std::endl;
306  std::cout << " time: " << thedata.time().timestring() << std::endl;
307  std::cout << " dt: " << dt.timestring() << std::endl;
308  std::cout << " undetval: " << theundetval << std::endl;
309  }
310  // std::cout << "nsamples " << thedata.nsamples() << std::endl;
311  for (int ich=0; ich<thedata.nsamples(); ++ich)
312  {
313  double thesample=thedata.sample(ich);
314  // std::cout << "ich " << ich << " sample " << thesample << std::endl;
315  if (debug)
316  {
317  std::cout << " sample: " << thesample << std::endl;
318  }
319  this->channel(ich).push_sample(thedata.time(),
320  thesample,
321  theundetval,
322  dt, Mreaderconfig,
323  debug);
324  }
325  } // Datacontainer::push_data
void push_sample(const libtime::TAbsoluteTime &time, const double &value, const double &undetval, const libtime::TRelativeTime &dt, const ReaderConfig &rc, const bool &debug=false)
push a sample
Definition: tsoftdata.cc:228
ReaderConfig Mreaderconfig
reader configuration
Definition: tsoftdata.h:441
libtime::TRelativeTime dt()
return sampling interval of HPMO data acquisition (i.e. 5 sec)
Definition: readhpmo.cc:83
Channeldata & channel(const unsigned int &i, const bool &debug=false)
return data for specific channel
Definition: tsoftdata.h:397
Here is the call graph for this function:
Here is the caller graph for this function: