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

◆ write_series()

void datrw::seife::write_series ( std::ostream &  os,
const Tseries::Tcoc &  s 
)

write samples to file

Parameters
osoutput stream to write to
sseries to be written

Definition at line 189 of file seifeio.cc.

References seife_standard_columns, seife_standard_precision, and seife_standard_width.

Referenced by main(), and datrw::oseifestream::writetrace().

190  {
191  unsigned int j=1;
192  for (int i=s.f();i<=s.l();++i)
193  {
194  os << std::scientific;
195  os << std::setprecision(seife_standard_precision);
196  os << std::setw(seife_standard_width);
197  os << s(i) << " ";
198  ++j;
200  {
201  j=1;
202  os << std::endl;
203  }
204  }
205  if (j != 1) { os << std::endl; }
206  } // void write_series(std::ostream& os, const Tseries::Tcoc& s)
const unsigned int seife_standard_columns
Definition: seifeio.cc:50
const unsigned int seife_standard_width
Definition: seifeio.cc:49
const unsigned int seife_standard_precision
Definition: seifeio.cc:48
Here is the caller graph for this function: