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

◆ setvaluesin()

void datrw::su::Coordinates::setvaluesin ( TraceHeaderStruct h)

set values in SU header

Definition at line 384 of file sucomanager.cc.

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

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

385  {
386  bool debug=false;
387  this->equalizescaling();
388  h.scalco=this->sx.scale;
389  h.sx=this->sx.coo;
390  h.sy=this->sy.coo;
391  h.gx=this->gx.coo;
392  h.gy=this->gy.coo;
393  h.scalel=this->sdepth.scale;
394  h.sdepth=this->sdepth.coo;
395  h.gelev=this->gelev.coo;
396  DATRW_debug(debug, "Coordinates::setvaluesin:",
397  "values in header on finish:"
398  << " scalco: " << h.scalco
399  << " scalel: " << h.scalel
400  << " sx: " << h.sx
401  << " sy: " << h.sy
402  << " gx: " << h.gx
403  << " gy: " << h.gy
404  << " sdepth: " << h.sdepth
405  << " gelev: " << h.gelev);
406  } // Coordinates::setvaluesin(TraceHeaderStruct& h) const
ScalCoo gy
receiver y coordinate
Definition: sucomanager.h:217
ScalCoo sx
source x coordinate
Definition: sucomanager.h:211
int coo
coordinate
Definition: sucomanager.h:171
short scale
scale like scalco
Definition: sucomanager.h:169
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
void equalizescaling()
equalize scaling
Definition: sucomanager.cc:411
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
ScalCoo sy
source y coordinate
Definition: sucomanager.h:213
Here is the call graph for this function:
Here is the caller graph for this function: