read WID2 information with extended format
read WID information from extended format.
- See also
- WIDXline(const sff::WID2& wid2)
Definition at line 199 of file widXio.cc.
References sff::WID2::auxid, sff::WID2::calib, sff::WID2::calper, sff::WID2::channel, sff::WID2::date, sff::WID2::dt, sff::WID2::hang, sff::WID2::instype, sff::WID2::nsamples, SFF_assert, sff::WID2::station, sff::WID2::vang, and WIDXID.
204 retval.
date=libtime::TAbsoluteTime(line.substr(5,26));
205 retval.
station=line.substr(32,5);
206 retval.
channel=line.substr(38,3);
207 retval.
auxid=line.substr(42,4);
208 retval.
instype=line.substr(47,6);
209 std::istringstream is(line.substr(54));
214 if (type ==
"r") { retval.
dt = 1./retval.
dt; }
std::string auxid
Auxiliary identification code.
double calper
calibration reference period
std::string station
Station code.
std::string instype
instrument type
std::string channel
FDSN channel code.
int nsamples
number of samples
libtime::TAbsoluteTime date
time of first sample
#define SFF_assert(C, M)
check condition
double calib
calibration factor
const char *const WIDXID
ID for extended WID2 format.
double vang
veritcal orientation
double dt
sampling interval (sec)
double hang
horizontal orientation