40 #define DATRW_OSUSTREAM_CC_VERSION \ 41 "DATRW_OSUSTREAM_CC V1.4" 47 #include <datrwxx/suformat.h> 48 #include <datrwxx/sucomanager.h> 53 const std::ios_base::openmode
59 const std::string& modifier,
65 "new instance established");
76 "SeismicUn*x writing functions" << std::endl <<
77 "-----------------------------" << std::endl <<
80 "This module provides writing of SeismicUn*x binary data files." 86 "Valid format modifiers are:\n";
89 "Force writing of ultrasonic data header\n";
90 mh() <<
"The default is to write standard SeismicUn*x\n";
91 mh() <<
"headers for seismic sampling intervals.\n";
93 "Force writing of seismic data header even\n";
94 mh() <<
"is sampling interval is too small.\n";
95 mh() <<
"Choosing both modifiers at once is an\n";
96 mh() <<
"inconsistency and causes abort().\n";
98 "\"s\" is used as the preferred scalco and scalel value.\n";
99 mh() <<
"It is used only if it does not cause round-off truncation.\n";
100 mh() <<
"The default is " 104 "Limits the maximum number of significant digits in\n";
105 mh() <<
"spatial coordinates to \"n\". Coordinate values with\n";
106 mh() <<
"more digits will be truncated.\n";
107 mh() <<
"The default is " 122 "empty function; must be provided for consistent interface");
130 this->
writetrace(::datrw::util::convert<Tdseries::Tcoc,Tfseries>(series));
138 this->
writetrace(::datrw::util::convert<Tiseries::Tcoc,Tfseries>(series));
147 "actually write trace");
151 wid2.nsamples=series.size();
163 info.cx=
static_cast<double>(
Mitrace);
170 Mos.write(reinterpret_cast<const char *>(series.pointer()),
173 "wrote " << series.size() <<
" samples of " 175 <<
"Mos.good() returns " <<
Mos.good());
bool hasinfo() const
info is available
macro function for debugging output (prototypes)
bool hassrce() const
srce is available
sff::WID2 wid2() const
return WID2 data
static const std::ios_base::openmode openmode
std::ostream & Mos
output stream to be used by this class
#define DATRW_OSUSTREAM_CC_VERSION
exception class declaration for libdatrwxx (prototypes)
sff::INFO info() const
return SRCE data
virtual void writetrace(const Tdseries::Tcoc &series)
write double data by passing samples to float function
Root namespace of library.
sff::SRCE srce() const
return SRCE data
utilities used by more than one type of data reader (prototypes)
static void help(std::ostream &os=std::cout)
virtual void writefileheader()
Should write file header, but SU does not have one.
#define DATRW_debug(C, N, M)
produce debug output
bool Mdebug
global debug flag
osustream(std::ostream &os, const std::string &modifier="", const bool &debug=false)
datrw::su::options::SUHeaderControl Mheadercontrol
read Seismic Unix data (prototypes)
options::SUHeaderControl outputmodifiers(const std::string &modifier, const bool &debug)
evaluate output stream format modifiers