34 #define TF_SFFVERBOSE_CC_VERSION \ 35 "TF_SFFVERBOSE_CC V1.0 " 69 os << std::setw(format.
width);
70 os << std::setprecision(format.
precision);
71 if (format.
scientific) { os << std::scientific; }
72 else { os << std::fixed; }
73 if (format.
showpos) { os << std::showpos; }
74 else { os << std::noshowpos; }
75 if (format.
showpoint) { os << std::showpoint; }
76 else { os << std::noshowpoint; }
83 void yesno(std::ostream& os,
const bool& f)
85 if (f) { os <<
"YES"; }
else { os <<
"NO"; }
98 os <<
"contents of SFF WID2 line:" << std::endl;
99 os <<
" date and time of first sample: " 100 << wid2.
date.timestring() << std::endl;
101 os <<
" station code: " 103 os <<
" channel code: " 105 os <<
" auxilliary code: " 106 << wid2.
auxid << std::endl;
107 os <<
" instrument code: " 109 os <<
" number of samples: " 110 << npformat(11,7,
false) << wid2.
nsamples << std::endl;
111 os <<
" sampling interval: " 112 << npformat(11,7,
false) << wid2.
dt <<
" s" << std::endl;
113 os <<
" calibration factor: " 114 << format(10,7,
false) << wid2.
calib << std::endl;
115 os <<
" calibration period: " 116 << format(10,7,
false) << wid2.
calper << std::endl;
117 os <<
" horizontal orientation clockwise from north (hang): " 118 << format(10,7,
false) << wid2.
hang <<
" deg" << std::endl;
119 os <<
" vertical orientation from vertical (vang): " 120 << format(19,7,
false) << wid2.
vang <<
" deg" << std::endl;
128 os <<
"contents of SFF SRCE line:" << std::endl;
129 os <<
" type of source (type): " 130 << srce.
type << std::endl;
131 os <<
" coordinate system (cs): ";
143 os <<
" X-coordinate (c1):" 144 << format(19,8) << srce.
cx <<
" m" << std::endl;;
145 os <<
" Y-coordinate (c2):" 146 << format(19,8) << srce.
cy <<
" m" << std::endl;;
147 os <<
" Z-coordinate (c3):" 148 << format(19,8) << srce.
cz <<
" m" << std::endl;;
152 os <<
" latitude (c1): " 153 << format(19,8) << srce.
cx <<
" deg" << std::endl;;
154 os <<
" longitude (c2):" 155 << format(19,8) << srce.
cy <<
" deg" << std::endl;;
156 os <<
" height (c3): " 157 << format(19,8) << srce.
cz <<
" m" << std::endl;;
160 os <<
" source date and time: " 161 << srce.
date.timestring() << std::endl;
169 os <<
"contents of SFF DAST line:" << std::endl;
170 os <<
" number of characters in encoded data set (nchar):" 171 << format(8,8) << dast.
nchar << std::endl;
172 os <<
" scaling factor (ampfac):" 173 << format(20,10) << dast.
ampfac << std::endl;
174 os <<
" trace has FREE block (code):" << format(8,10);
176 os <<
" trace has INFO line (code):" << format(9,10);
178 os <<
" is last trace in file (code):" << format(7,10);
187 os <<
"contents of SFF INFO line:" << std::endl;
188 os <<
" coordinate system (cs): ";
200 os <<
" X-coordinate (c1):" 201 << format(19,8) << info.
cx <<
" m" << std::endl;;
202 os <<
" Y-coordinate (c2):" 203 << format(19,8) << info.
cy <<
" m" << std::endl;;
204 os <<
" Z-coordinate (c3):" 205 << format(19,8) << info.
cz <<
" m" << std::endl;;
209 os <<
" latitude (c1): " 210 << format(19,8) << info.
cx <<
" deg" << std::endl;;
211 os <<
" longitude (c2):" 212 << format(19,8) << info.
cy <<
" deg" << std::endl;;
213 os <<
" height (c3): " 214 << format(19,8) << info.
cz <<
" m" << std::endl;;
217 os <<
" number of stacks (nstacks):" 218 << format(8,5) << info.
nstacks << std::endl;
225 os <<
"contents of SFF FREE block:" << std::endl;
226 sff::FREE::Tlines::const_iterator I=free.
lines.begin();
227 while (I != free.
lines.end())
229 os <<
" " << *I << std::endl;;
239 os <<
"contents of SFF STAT line:" << std::endl;
240 os <<
" time stamp: " 242 os <<
" file has FREE block (code):" << format(4,3);
244 os <<
" file has SRCE line (code):" << format(5,3);
252 os <<
"contents of SFF file header:" << std::endl;
255 else { os <<
"file header contains no SRCE line" << std::endl; }
257 else { os <<
"file header contains no FREE block" << std::endl; }
264 os <<
"contents of SFF trace header:" << std::endl;
268 else { os <<
"trace header contains no INFO line" << std::endl; }
270 else { os <<
"trace header contains no FREE block" << std::endl; }
std::string auxid
Auxiliary identification code.
double calper
calibration reference period
std::string station
Station code.
void yesno(std::ostream &os, const bool &f)
std::string instype
instrument type
std::string channel
FDSN channel code.
int nsamples
number of samples
libtime::TAbsoluteTime date
time of first sample
std::ostream & operator<<(std::ostream &os, const MyFormat &format)
double calib
calibration factor
libtime::TAbsoluteTime date
time of source
double vang
veritcal orientation
double dt
sampling interval (sec)
double hang
horizontal orientation
void verbose(std::ostream &os, const WID2 &wid2)