return spatial distance between source and receiver in meters
Definition at line 78 of file offset.cc.
References sff::SRCE::cs, sff::INFO::cs, CS_cartesian, sff::SRCE::cx, sff::INFO::cx, sff::SRCE::cy, sff::INFO::cy, sff::SRCE::cz, sff::INFO::cz, SFF_abort, and SFF_assert.
82 "ERROR (sourcedistance): inconsistent coordinate systems!");
84 "ERROR (sourcedistance): " 85 "only provided in Cartesian coordinates!");
88 double dx=srce.cx-info.cx;
89 double dy=srce.cy-info.cy;
90 double dz=srce.cz-info.cz;
91 retval=sqrt(dx*dx+dy*dy+dz*dz);
95 SFF_abort(
"ERROR (sourcedistance): unknown coordinate system!");
#define SFF_assert(C, M)
check condition
#define SFF_abort(M)
abort by throwing an exception