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

◆ dseries()

Tdseries datrw::ihpmostream::dseries ( )
virtual

Reimplemented from datrw::idatstream.

Definition at line 67 of file ihpmostream.cc.

References datrw::hpmo::MinuteBlock::Mdata, Mdatafile, Mindex, Mnextblock, Mnextchannel, datrw::hpmo::nsamples, and set_next_header().

Referenced by fseries().

68  {
69  const int firstblock=Mindex[Mnextblock];
70  const int lastblock=Mindex[Mnextblock+1]-1;
71  const int nblocks=lastblock-firstblock+1;
72  const int nsamp=nblocks*datrw::hpmo::nsamples;
73  Tdseries retval(nsamp);
74  int isample=0;
75  for (int iblock=firstblock; iblock<=lastblock; ++iblock)
76  {
77  for (int i=1; i<=datrw::hpmo::nsamples; ++i)
78  {
79  retval(isample)=Mdatafile[iblock].Mdata(Mnextchannel, i);
80  ++isample;
81  }
82  }
83  this->set_next_header();
84  return(retval);
85  }
aff::Series< double > Tdseries
Definition: types.h:45
const int nsamples
number of samples per minute block and channel
Definition: hpmodata.h:51
datrw::hpmo::MinuteBlock Mdatafile[datrw::hpmo::nminutes]
buffer to hold one data file
Definition: hpmo.h:79
void set_next_header()
set header for next request
Definition: ihpmostream.cc:172
int Mnextchannel
Definition: hpmo.h:83
int Mindex[datrw::hpmo::nminutes]
Definition: hpmo.h:80
int Mnextblock
Definition: hpmo.h:82
Here is the call graph for this function:
Here is the caller graph for this function: