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

◆ convert()

template<class C >
C datrw::pdas::convert ( const Tdata data)

function to convert data

Definition at line 93 of file pdasread.h.

References datrw::mseed::key::data, and datrw::hpmo::nsamples.

94  {
95  int nsamples=data.size();
96  C retval(nsamples);
97  typedef typename C::Tvalue Toutvalue;
98  for (int i=0; i<nsamples; ++i)
99  {
100  Tvalue sample=data[i];
101  retval(i)=Toutvalue(sample);
102  }
103  return(retval);
104  }
const int nsamples
number of samples per minute block and channel
Definition: hpmodata.h:51
const char *const data
keywords for consistency checks
int Tvalue
Definition: pdasread.h:75