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

◆ dump() [1/2]

void datrw::hpmo::dump ( std::ostream &  os,
const SampleBlock block 
)

dump one block of samples

Definition at line 161 of file readhpmo.cc.

References nchannels, and nsamples.

Referenced by main(), operator<<(), and reportseries().

162  {
163  for (int ic=1; ic<=datrw::hpmo::nchannels; ic++)
164  {
165  os.width(1);
166  os << "K";
167  os.setf(std::ios_base::fixed,std::ios_base::basefield);
168  os.width(2);
169  os.fill('0');
170  os << ic << " ";
171  for (int is=1; is<=datrw::hpmo::nsamples/2; is++)
172  {
173  os.flags(std::ios_base::showpos);
174  os.setf(std::ios_base::fixed,std::ios_base::floatfield);
175  os.width(6);
176  os << block(ic, is) << " ";
177  }
178  os.width(4);
179  os << std::endl << " ";
180  for (int is=datrw::hpmo::nsamples/2+1;
181  is<=datrw::hpmo::nsamples; is++)
182  {
183  os.flags(std::ios_base::showpos);
184  os.setf(std::ios_base::fixed,std::ios_base::floatfield);
185  os.width(6);
186  os << block(ic, is) << " ";
187  }
188  os.unsetf(std::ios_base::showpos);
189  os << std::endl;
190  }
191  } // void dump(std::ostream& os, const SampleBlock& block)
const int nchannels
number of channels in HP MO data acquisition system
Definition: hpmodata.h:49
const int nsamples
number of samples per minute block and channel
Definition: hpmodata.h:51
Here is the caller graph for this function: