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

◆ set() [4/5]

void datrw::su::SUheader::set ( const ::sff::WID2 &  wid2)

set values from WID2 line

Definition at line 392 of file suheader.cc.

References DATRW_debug, datrw::su::TraceHeaderStruct::fldr, Mdebug, Mhaswid2, Mheader, Mwid2date, Mwid2dt, datrw::su::TraceHeaderStruct::ns, settimes(), datrw::su::TraceHeaderStruct::tracf, and wid2().

393  {
394  DATRW_debug(Mdebug, "SUheader::set(const ::sff::WID2 &wid2)",
395  "set WID2 values");
396  Mheader.ns=static_cast<unsigned short>(wid2.nsamples);
397  Mwid2dt=wid2.dt;
398  Mwid2date=wid2.date;
399  Mhaswid2=true;
400  {
401  std::istringstream iss(wid2.channel);
402  iss >> Mheader.tracf;
403  }
404  {
405  std::istringstream iss(wid2.auxid);
406  iss >> Mheader.fldr;
407  }
408  this->settimes();
409  } // void SUheader::set(const ::sff::WID2 &wid2)
double Mwid2dt
intermediately store sampling interval from wid2 line
Definition: suheader.h:235
int fldr
Original field record number.
::sff::WID2 wid2() const
return WID2 line
Definition: suheader.cc:309
bool Mhaswid2
we received wid2 data
Definition: suheader.h:227
bool Mdebug
be verbose
Definition: suheader.h:204
unsigned short ns
number of samples in this trace
libtime::TAbsoluteTime Mwid2date
date from WID2 line
Definition: suheader.h:233
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
int tracf
Trace number within original field record.
void settimes()
set time values correctly
Definition: suheader.cc:426
TraceHeaderStruct Mheader
the actual data fields are provided for public access
Definition: suheader.h:239
Here is the call graph for this function: