37 #define TSXX_OVTAPER_CC_VERSION \ 38 "TSXX_OVTAPER_CC V1.2" 60 "Picks::read: error while reading taper definition");
61 }
while (line.substr(0,9)!=
"taper set");
64 "found data line:\n" << line);
66 std::istringstream iss(line.substr(17,4));
70 "read " << n <<
" picks");
74 "Picks::read: error while reading taper definition");
75 for (
int i=0; i<n; ++i)
79 "Picks::read: error while reading taper definition");
82 "#" << i <<
" x=" << p.
x <<
", t=" << p.
t);
95 Tlistofpick::const_iterator P=
Mpicks.begin();
102 Tlistofpick::const_iterator Pp=P;
103 while ((P!=
Mpicks.end()) && (*P<p)) { Pp=P; P++; }
114 p.
t=Pp->t+(P->t-Pp->t)*(p.
x-Pp->x)/(P->x-Pp->x);
135 const double& T)
const 138 "OffsetVariableTaper::taper: " 139 "taper is undefined");
147 t2 =
t2 >= 1.e-6 ?
t2 : 1.e-6;
148 t3 =
t3 <= .99999 ?
t3 : .99999;
174 std::ifstream is(filename.c_str());
176 "OffsetVariableTaper::read(): " 177 "error when opening taper file");
double time(const double &offset) const
return time for interpolated pick at given offset
ts::tapers::FourPoint taper(const double &offset, const double &T0, const double &T) const
bool Mdebug
produce debug output if true
ovtaper::Picks t1() const
void read(std::istream &is)
error handling for libtsxx (prototypes)
Pick pick(const double &offset) const
return interpolated pick for given offset
#define TSXX_debug(C, N, M)
produce debug output
offset variable taper (prototypes)
ovtaper::Picks Mt1
taper picks
All stuff in this library will be placed within namespace ts.
ovtaper::Picks t3() const
#define TSXX_assert(C, M)
Check an assertion and report by throwing an exception.
basic modules of time series library in C++ (prototypes)
ovtaper::Picks t4() const
ovtaper::Picks t2() const
Provides a 4-point taper.
bool Mvalid
true if taper definition is present
void read(std::istream &is)
read from file in refract taper file format