equalize scaling
Definition at line 411 of file sucomanager.cc.
References DATRW_assert, DATRW_debug, gelev, gx, gy, Mcontrol, datrw::su::options::SpatialSampling::scalco, datrw::su::ScalCoo::scale, datrw::su::ScalCoo::scaletopower(), sdepth, datrw::su::ScalCoo::smallestpower(), sx, and sy.
Referenced by main(), and setvaluesin().
418 <<
" sdepth.scale " << this->sdepth.scale);
430 int pnew = psx > psy ? psx : psy;
431 pnew = pnew > pgx ? pnew : pgx;
432 pnew = pnew > pgy ? pnew : pgy;
445 (this->sy.scale==this->gx.scale) &&
446 (this->gx.scale==this->gy.scale)),
447 "ERROR: inconsistent coordinate scaling");
459 pnew = psdepth > pgelev ? psdepth : pgelev;
467 "ERROR: inconsistent coordinate scaling");
datrw::su::options::SpatialSampling Mcontrol
control parameters
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
ScalCoo gy
receiver y coordinate
ScalCoo sx
source x coordinate
short scale
scale like scalco
short scalco
preferred scalco value
ScalCoo gx
receiver x coordinate
ScalCoo gelev
source y coordinate
ScalCoo sdepth
source z coordinate
int smallestpower(const short &desiredscale=datrw::su::subformat::def::scalco) const
smallest possible power larger or equal desired
#define DATRW_debug(C, N, M)
produce debug output
void scaletopower(const int &p)
scale to given scaling factor as defined by decimal power
ScalCoo sy
source y coordinate