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

◆ readdata()

Tdata datrw::bonjer::readdata ( std::istream &  is,
const header hd 
)

function to read the file data

Definition at line 153 of file readbonjer.cc.

References datrw::bonjer::header::nsamples.

154  {
155  Tdata retval(hd.nsamples);
156  for (int i=0; i<hd.nsamples; ++i)
157  {
158  if (!is.good()) throw;
159  is >> retval(i);
160  }
161  return(retval);
162  } // function readdata
aff::Series< double > Tdata
we read the data to a vector
Definition: readbonjer.h:71