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

◆ getvaluesfrom()

void datrw::su::Coordinates::getvaluesfrom ( const TraceHeaderStruct h)

read values from SU header

Definition at line 360 of file sucomanager.cc.

References DATRW_debug, datrw::su::TraceHeaderStruct::gelev, gelev, datrw::su::TraceHeaderStruct::gx, gx, datrw::su::TraceHeaderStruct::gy, gy, datrw::su::TraceHeaderStruct::scalco, datrw::su::TraceHeaderStruct::scalel, datrw::su::TraceHeaderStruct::sdepth, sdepth, datrw::su::ScalCoo::set(), datrw::su::TraceHeaderStruct::sx, sx, datrw::su::TraceHeaderStruct::sy, and sy.

Referenced by datrw::su::SUheader::set().

361  {
362  bool debug=false;
363  DATRW_debug(debug, "Coordinates::getvaluesfrom:",
364  "values in header on entry:"
365  << " scalco: " << h.scalco
366  << " scalel: " << h.scalel
367  << " sx: " << h.sx
368  << " sy: " << h.sy
369  << " gx: " << h.gx
370  << " gy: " << h.gy
371  << " sdepth: " << h.sdepth
372  << " gelev: " << h.gelev);
373  this->sx.set(h.scalco, h.sx);
374  this->sy.set(h.scalco, h.sy);
375  this->gx.set(h.scalco, h.gx);
376  this->gy.set(h.scalco, h.gy);
377  this->sdepth.set(h.scalel, h.sdepth);
378  this->gelev.set(h.scalel, h.gelev);
379  } // Coordinates::getvaluesfrom(const TraceHeaderStruct& h)
ScalCoo gy
receiver y coordinate
Definition: sucomanager.h:217
ScalCoo sx
source x coordinate
Definition: sucomanager.h:211
ScalCoo gx
receiver x coordinate
Definition: sucomanager.h:215
ScalCoo gelev
source y coordinate
Definition: sucomanager.h:221
ScalCoo sdepth
source z coordinate
Definition: sucomanager.h:219
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
ScalCoo sy
source y coordinate
Definition: sucomanager.h:213
void set(const short &s, const int &c)
set from header fields
Definition: sucomanager.cc:124
Here is the call graph for this function:
Here is the caller graph for this function: