36 #define DATRW_OSEIFESTREAM_CC_VERSION \ 37 "DATRW_OSEIFESTREAM_CC V1.2" 40 #include <datrwxx/seifeio.h> 47 const std::ios_base::openmode
53 const std::string& modifier,
56 Mtracewritten(false), Mmodifier(modifier)
59 "new instance established");
68 "write file header to file");
77 "write series of type double to file");
87 "write series of type float to file");
90 datrw::util::convert<Tfseries, Tdseries>(series));
98 "WARNING in (oseifestream::writetraceheader):\n" 99 "More than one trace will be written to the same " 101 "seife format only supports single trace files.\n");
106 libtime::TAbsoluteTime theday(
wid2.date.year(),
wid2.date.month(),
112 header.
set(parameters);
123 "seife writing functions" << std::endl <<
124 "-----------------------" << std::endl <<
128 "This module writes seismic time series data in the format\n" 129 "used by programs provided by Erhard Wielandt. See his web site\n" 130 "http://www.software-for-seismometry.de for details.\n" 131 "Notice that this format only supports a single trace per file.\n" 132 "The actual number format currently is fixed to the Fortran format\n" seife format header parameter line
static void help(std::ostream &os=std::cout)
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)
const char *const seife_standard_format
static const std::ios_base::openmode openmode
macro function for debugging output (prototypes)
sff::WID2 wid2() const
return WID2 data
std::ostream & Mos
output stream to be used by this class
bool Mtracewritten
true, if a trace has be written
Root namespace of library.
utilities used by more than one type of data reader (prototypes)
void write_series(std::ostream &os, const Tseries::Tcoc &s)
write samples to file
std::string format() const
return Fortran data format
virtual void writetrace(const Tdseries::Tcoc &series)
write double data
sff::FREE free() const
return FREE data
virtual void writefileheader()
actually write the file header
double dt() const
return sumpling interval
oseifestream(std::ostream &os, const std::string &modifier="", const bool &debug=false)
void writetraceheader(const unsigned int &n)
#define DATRW_debug(C, N, M)
produce debug output
bool Mdebug
global debug flag
#define DATRW_OSEIFESTREAM_CC_VERSION
bool hasfree() const
free is available
#define DATRW_report_assert(C, M)
Check an assertion and report only.