DATRW++ library: seismic data I/O with multiple formats

◆ read()

void datrw::mseed::Record::read ( std::istream &  is,
const bool &  dumpascii = false,
const bool &  estimateNframes = false,
const ConsistencyChecks checks = ConsistencyChecks(true, true) 
)

read and decode a record to SFF

Definition at line 46 of file mseed_record_read.cc.

References datrw::mseed::MiniSEEDRecord::checks(), data, datrw::mseed::MiniSEEDRecord::debug(), datrw::mseed::key::dumpascii, datrw::mseed::key::estimateNframes, datrw::mseed::MiniSEEDRecord::estimateNframes(), datrw::mseed::Debug::report_ascii_data_to_stdout, valid, wid2, and xm1.

Referenced by datrw::imseedstream::imseedstream(), and datrw::imseedstream::read().

50  {
52  seedrecord.checks(checks);
53  seedrecord.estimateNframes(estimateNframes);
55  is >> seedrecord;
56  this->wid2.date=seedrecord.date();
57  this->wid2.station=seedrecord.station();
58  this->wid2.channel=seedrecord.channel();
59  this->wid2.auxid=seedrecord.network()+":"+seedrecord.location();
60  this->wid2.nsamples=seedrecord.nsamples();
61  this->wid2.dt=seedrecord.dt();
62  this->data=seedrecord.data();
63  this->valid=seedrecord.valid();
64  this->xm1=seedrecord.xm1();
65  } // void Record::read(std::istream& is, const bool& dumpascii)
void checks(const ConsistencyChecks &flags)
adjust flags consistency checks
Definition: mseedread.h:219
Tiseries data
Definition: mseed.h:146
const char *const dumpascii
keywords for format modifiers
::sff::WID2 wid2
Definition: mseed.h:144
Debug & debug()
return reference to debug flags
Definition: mseedread.h:214
void estimateNframes(const bool &flag)
adjust flag for estimation of frame count
Definition: mseedread.h:216
bool report_ascii_data_to_stdout
report ASCII lines
Definition: mseedread.h:136
const char *const estimateNframes
keywords for format modifiers
Here is the call graph for this function:
Here is the caller graph for this function: