42 #define DATRW_SU_CC_VERSION \ 49 #include <datrwxx/suformat.h> 54 const std::ios_base::openmode
60 const std::string& modifier,
62 Tbase(is, true, true, false, debug),
63 Mnextheader(Mheadercontrol, debug)
71 "ERROR (isustream::isustream): input stream is bad");
82 return(datrw::util::convert<Tfseries, Tdseries>(this->
fseries()));
91 char *ipointer=
reinterpret_cast<char *
>(series.pointer());
93 "ERROR (isustream::fseries): reading SU samples",
96 "read " << series.size() <<
" samples" 97 <<
" which are " << (series.size()*
sizeof(float))
101 this->
wid2().line() <<
"\n" << this->
info().line());
113 "ERROR (isustream::skipseries): calling seekg()",
124 "ERROR (isustream::readheader): reached end of file");
133 "ERROR (isustream::readheader): " 134 "current source differs from previous");
158 "SeismicUn*x reading functions" << std::endl <<
159 "-----------------------------" << std::endl <<
162 "This module provides reading of SeismicUn*x binary data files." 168 "Valid format modifiers are:\n";
171 "Abort if scalco violates the definition of SeismicUn*x.\n";
172 mh() <<
"The default is to tolerate spatial sampling\n";
173 mh() <<
"scaling factors being zero or being small\n";
174 mh() <<
"powers of ten.\n";
virtual Tfseries fseries()
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
macro function for debugging output (prototypes)
void setinfo(const sff::INFO &info)
aff::Series< float > Tfseries
virtual Tdseries dseries()
datrw::su::options::SUHeaderControl Mheadercontrol
options::SUHeaderControl inputmodifiers(const std::string &modifier, const bool &debug)
evaluate input stream format modifiers
static bool report_on_construct_flag()
return report on construct flag
void setsrce(const sff::SRCE &srce)
#define DATRW_Xassert(C, M, E)
Check an assertion and report by throwing an exception.
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
aff::Series< double > Tdseries
isustream(std::istream &is, const std::string &modifier="", const bool &debug=false)
exception class declaration for libdatrwxx (prototypes)
Base class for exceptions.
datrw::su::SUheader Mnextheader
void setwid2(const sff::WID2 &wid2)
static void help(std::ostream &os=std::cout)
Root namespace of library.
#define DATRW_SU_CC_VERSION
utilities used by more than one type of data reader (prototypes)
static const std::ios_base::openmode openmode
#define DATRW_debug(C, N, M)
produce debug output
virtual void report() const
Screen report.
read Seismic Unix data (prototypes)
virtual void skipseries()