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

◆ setdefaults()

void datrw::su::SUheader::setdefaults ( )

set defaults to struct

Definition at line 135 of file suheader.cc.

References datrw::su::options::SpatialSampling::bestrict, datrw::su::TraceHeaderStruct::cdpt, clear(), datrw::su::TraceHeaderStruct::corr, datrw::su::TraceHeaderStruct::counit, datrw::su::fixscalevalue(), datrw::su::TraceHeaderStruct::gain, datrw::su::TraceHeaderStruct::igc, datrw::su::TraceHeaderStruct::igi, Mheader, Mheadercontrol, datrw::su::options::SpatialSampling::scalco, datrw::su::TraceHeaderStruct::scalco, datrw::su::TraceHeaderStruct::scalel, datrw::su::options::SUHeaderControl::spatialsampling, and datrw::su::TraceHeaderStruct::trid.

Referenced by SUheader().

136  {
137  this->clear();
144  Mheader.trid=1;
145  Mheader.cdpt=1;
146  Mheader.counit=1;
147  Mheader.gain=1;
148  Mheader.igc=1;
149  Mheader.igi=1;
150  Mheader.corr=1;
151  } // void SUheader::setdefaults()
short scalel
Scalar to be applied to the previous 7 entries to give the real value (see details).
short gain
Gain type of field instruments code (see dateils).
short igi
instrument early or initial gain
bool bestrict
if true: strictly use header definition by SeismicUnix source
Definition: suformat.h:133
void clear()
clear header struct
Definition: suheader.cc:123
short scalco
preferred scalco value
Definition: suformat.h:131
short corr
correlated: 1 = no, 2 = yes
datrw::su::options::SUHeaderControl Mheadercontrol
all options taken from the user
Definition: suheader.h:202
short igc
instrument gain constant
short trid
Trace identification code (see details).
short scalco
Scalar to be applied to the next 4 entries to give the real value (see details).
int cdpt
Trace number within the ensemble.
void fixscalevalue(short &s, const bool &strict)
fix a SeismicUn*x scale value
Definition: sucomanager.cc:498
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: