42 #ifndef DATRW_SUCOMANAGER_H_VERSION 44 #define DATRW_SUCOMANAGER_H_VERSION \ 45 "DATRW_SUCOMANAGER_H V1.1" 47 #include<datrwxx/suheaderstruct.h> 48 #include<datrwxx/suformat.h> 127 const bool& debug=
false)
153 void set(
const short& s,
const int& c);
155 void set(
const double& v);
164 double value()
const;
198 const bool& debug=
false)
199 :
sx(ctrl, debug),
sy(ctrl, debug),
gx(ctrl, debug),
gy(ctrl, debug),
232 #endif // DATRW_SUCOMANAGER_H_VERSION (includeguard) datrw::su::options::SpatialSampling Mcontrol
control parameters
int scaletopower(short s, const bool &strict)
convert a SeismicUn*x scale value to a decimal power
void adjustscale()
adjust scale to optimal representation of significant digits
full set of coordinates.This struct holds a full set of coordinates for a SEG-Y trace header...
ScalCoo gy
receiver y coordinate
scaled coordinate.This struct holds one coordinate together with a scale value. It provides functions...
bool bestrict
if true: strictly use header definition by SeismicUnix source
ScalCoo sx
source x coordinate
short scale
scale like scalco
options to control the way spatial sampling header variables are handeled.
ScalCoo gx
receiver x coordinate
Root namespace of library.
ScalCoo gelev
source y coordinate
static double effectivezero
lower limit of values
ScalCoo sdepth
source z coordinate
datrw::su::options::SpatialSampling Mcontrol
control parameters
int smallestpower(const short &desiredscale=datrw::su::subformat::def::scalco) const
smallest possible power larger or equal desired
void equalizescaling()
equalize scaling
short powertoscale(const int &p)
convert a decimal power to a SeismicUn*x scale value
void scaletopower(const int &p)
scale to given scaling factor as defined by decimal power
ScalCoo sy
source y coordinate
double value() const
return coordinate value
int power() const
return decimal power of scaling factor
ScalCoo(const datrw::su::options::SpatialSampling &ctrl, const bool &debug=false)
constructor
static int maxnsigdigits
maximum number of significant digits to be used
void fixscalevalue(short &s, const bool &strict)
fix a SeismicUn*x scale value
Coordinates(const datrw::su::options::SpatialSampling &ctrl, const bool &debug=false)
constructor
void setvaluesin(TraceHeaderStruct &h)
set values in SU header
void getvaluesfrom(const TraceHeaderStruct &h)
read values from SU header
double scalefactor(short s, const bool &strict)
convert scale value to a factor to be applied