35 #define DATRW_ISEIFESTREAM_CC_VERSION \ 36 "DATRW_ISEIFESTREAM_CC V1.1" 39 #include <datrwxx/seifeio.h> 45 const std::ios_base::openmode
51 const std::string& modifier,
53 Tbase(is, true, true, false, debug), Mmodifier(modifier)
69 libtime::TAbsoluteTime date(subformat.
value(
"date",
"2000/1/1"));
70 wid2.date=libtime::TAbsoluteTime(date.year(), date.month(), date.day());
73 wid2.station=subformat.
value(
"station",
"NSP");
74 wid2.channel=subformat.
value(
"channel",
"NSP");
75 wid2.auxid=subformat.
value(
"auxid",
"NSP");
76 wid2.instype=subformat.
value(
"instype",
"NSP");
82 "iseifestream::settraceheader()");
91 return(datrw::util::readasciidouble<datrw::Tdseries>(
Mis,
102 return(datrw::util::readasciidouble<datrw::Tfseries>(
Mis,
121 "seife reading functions" << std::endl <<
122 "-----------------------" << std::endl <<
126 "This module reads seismic time series data in the format\n" 127 "used by programs provided by Erhard Wielandt. See his web site\n" 128 "http://www.software-for-seismometry.de for details.\n" 129 "In its current version, the input stream does not evaluate the\n" 130 "Fortran format specification in the file header. It simply expects\n" 131 "a sequence of the announced number of floating point values\n" 132 "separated by whitespace." 135 "The seife input stream can be controlled by format modifiers:\n" 136 "date=2012/7/2 sets the recording date to 2.7.2012\n" 137 "station=BFO sets the recording station to BFO\n" 138 "channel=LXX sets the recording channel to LXX\n" 139 "auxid=LOC0 sets the recording auxid to LOC0\n" 140 "instype=STS2 sets the recording instrument type to STS2\n" 141 "Choose appropriate parameter values for your case." seife format header parameter line
libtime::TRelativeTime time() const
return time of first sample as offset from midnight
unsigned int nsamples() const
return number of samples
seife reading and writing module (prototypes)
aff::Series< float > Tfseries
virtual void skipseries()
std::string Mmodifier
format modifier
aff::Series< double > Tdseries
const int nsamples
number of samples per minute block and channel
void setwid2(const sff::WID2 &wid2)
static const std::ios_base::openmode openmode
Root namespace of library.
utilities used by more than one type of data reader (prototypes)
std::string format() const
return Fortran data format
void settracefree(const sff::FREE &free)
double dt() const
return sumpling interval
#define DATRW_ISEIFESTREAM_CC_VERSION
virtual Tdseries dseries()
static void help(std::ostream &os=std::cout)
iseifestream(std::istream &is, const std::string &modifier="", const bool &debug=false)
virtual Tfseries fseries()