DATRW++ library: seismic data I/O with multiple formats
|
void datrw::su::fixscalevalue | ( | short & | s, |
const bool & | strict = true |
||
) |
fix a SeismicUn*x scale value
fix a SeismicUn*x scale value
some code out there produces SU data with scale values understood as exponents of ten; SEGY defines the scale value to be taken as numerator or denominator of the scaling factor with values -10000, -1000, -100, -10, 1, 10, 100, 1000, 10000 only; here we allow for the non-standard setting indicated by the absolute value of scale being larger than 1 and smaller than 10
s | scale value to be fixed (input and output parameter) |
strict | if true: abort if scale does not match original definition |
Definition at line 498 of file sucomanager.cc.
References DATRW_assert, DATRW_report_assert, and datrw::su::subformat::key::strict.
Referenced by outputmodifiers(), datrw::su::SUheader::read(), datrw::su::ScalCoo::ScalCoo(), scalefactor(), scaletopower(), datrw::su::ScalCoo::set(), and datrw::su::SUheader::setdefaults().