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

◆ set() [3/5]

void datrw::su::SUheader::set ( const ::sff::INFO &  info)

set values from INFO line

Definition at line 360 of file suheader.cc.

References DATRW_assert, DATRW_debug, DATRW_value, datrw::su::Coordinates::gelev, datrw::su::Coordinates::getvaluesfrom(), datrw::su::TraceHeaderStruct::gx, datrw::su::Coordinates::gx, datrw::su::TraceHeaderStruct::gy, datrw::su::Coordinates::gy, info(), Mdebug, Mheader, Mheadercontrol, datrw::su::TraceHeaderStruct::nvs, datrw::su::TraceHeaderStruct::scalco, datrw::su::ScalCoo::set(), datrw::su::Coordinates::setvaluesin(), and datrw::su::options::SUHeaderControl::spatialsampling.

361  {
362  DATRW_debug(Mdebug, "SUheader::set(const ::sff::INFO &info)",
363  "set INFO values:"
364  " cx: " << info.cx <<
365  " cy: " << info.cy <<
366  " cz: " << info.cz);
367  DATRW_assert(info.cs == ::sff::CS_cartesian,
368  "ERROR (SUheader::set INFO): "
369  "can only handle cartesian cooridnates");
370  DATRW_debug(Mdebug, "SUheader::set(const ::sff::INFO &info)",
371  "values upon entry:"
372  << DATRW_value(Mheader.gx) << ", "
373  << DATRW_value(Mheader.gy) << ", "
376  coo.getvaluesfrom(Mheader);
377  coo.gx.set(info.cx);
378  coo.gy.set(info.cy);
379  coo.gelev.set(info.cz);
380  coo.setvaluesin(Mheader);
381  Mheader.nvs=static_cast<short>(info.nstacks);
382  DATRW_debug(Mdebug, "SUheader::set(const ::sff::INFO &info)",
383  "values upon exit:"
384  << DATRW_value(Mheader.gx) << ", "
385  << DATRW_value(Mheader.gy) << ", "
387  } // void SUheader::set(const ::sff::INFO &info)
int gy
Group coordinate - Y.
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
full set of coordinates.This struct holds a full set of coordinates for a SEG-Y trace header...
Definition: sucomanager.h:195
::sff::INFO info() const
return INFO line
Definition: suheader.cc:292
datrw::su::options::SUHeaderControl Mheadercontrol
all options taken from the user
Definition: suheader.h:202
bool Mdebug
be verbose
Definition: suheader.h:204
short nvs
Number of vertically summed traces yielding this trace: 1 is one trace, 2 is two summed traces...
short scalco
Scalar to be applied to the next 4 entries to give the real value (see details).
int gx
Group coordinate - X.
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
#define DATRW_value(V)
report value
Definition: debug.h:65
TraceHeaderStruct Mheader
the actual data fields are provided for public access
Definition: suheader.h:239
Here is the call graph for this function: