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

◆ set() [1/2]

void datrw::su::ScalCoo::set ( const short &  sin,
const int &  c 
)

set from header fields

set from header fields

checked 29.3.2011

Definition at line 124 of file sucomanager.cc.

References datrw::su::options::SpatialSampling::bestrict, coo, datrw::su::fixscalevalue(), Mcontrol, and scale.

Referenced by datrw::su::Coordinates::getvaluesfrom(), main(), and datrw::su::SUheader::set().

125  {
126  // make a copy to allow modification
127  short s=sin;
129  this->scale=s;
130  this->coo=c;
131  } // void ScalCoo::set(const short& s, const int& c)
bool bestrict
if true: strictly use header definition by SeismicUnix source
Definition: suformat.h:133
int coo
coordinate
Definition: sucomanager.h:171
short scale
scale like scalco
Definition: sucomanager.h:169
datrw::su::options::SpatialSampling Mcontrol
control parameters
Definition: sucomanager.h:173
void fixscalevalue(short &s, const bool &strict)
fix a SeismicUn*x scale value
Definition: sucomanager.cc:498
Here is the call graph for this function:
Here is the caller graph for this function: