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

◆ info()

sff::INFO datrw::su::SUheader::info ( ) const

return INFO line

Definition at line 292 of file suheader.cc.

References datrw::su::TraceHeaderStruct::counit, DATRW_assert, datrw::su::TraceHeaderStruct::gelev, datrw::su::TraceHeaderStruct::gx, datrw::su::TraceHeaderStruct::gy, Mheader, datrw::su::TraceHeaderStruct::nvs, scalcof(), and scalelf().

Referenced by main(), datrw::isustream::readheader(), and set().

293  {
294  DATRW_assert((Mheader.counit == 1) || (Mheader.counit == 0),
295  "ERROR (SUheader::info): coordinate units not supported");
296  ::sff::INFO retval;
297  double scalcof=this->scalcof();
298  retval.cs=::sff::CS_cartesian;
299  retval.cx=static_cast<double>(Mheader.gx)*scalcof;
300  retval.cy=static_cast<double>(Mheader.gy)*scalcof;
301  retval.cz=static_cast<double>(Mheader.gelev)*this->scalelf();
302  retval.nstacks=Mheader.nvs;
303  return(retval);
304  } // ::sff::INFO SUheader::info() const
int gy
Group coordinate - Y.
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
int gelev
Receiver group elevation from sea level (all elevations above the Vertical datum are positive and bel...
double scalelf() const
return factor defined by scalel
Definition: suheader.cc:197
short nvs
Number of vertically summed traces yielding this trace: 1 is one trace, 2 is two summed traces...
int gx
Group coordinate - X.
double scalcof() const
return factor defined by scalco
Definition: suheader.cc:206
short counit
Coordinate units (see details).
TraceHeaderStruct Mheader
the actual data fields are provided for public access
Definition: suheader.h:239
Here is the call graph for this function:
Here is the caller graph for this function: