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

◆ readheader()

void datrw::ibonjerstream::readheader ( )
private

Definition at line 104 of file ibonjerstream.cc.

References datrw::bonjer::header::component, datrw::bonjer::header::date, datrw::bonjer::header::filename, datrw::idatstream::Mis, datrw::idatstream::newtrace(), datrw::bonjer::header::nsamples, datrw::bonjer::header::rate, datrw::bonjer::readheader(), datrw::bonjer::header::sensitivity, datrw::idatstream::setlast(), datrw::idatstream::settracefree(), datrw::idatstream::setwid2(), datrw::bonjer::header::station, datrw::bonjer::header::units, and datrw::idatstream::wid2().

Referenced by dseries(), fseries(), iseries(), and skipseries().

105  {
107  sff::FREE tracefree;
108  sff::WID2 wid2;
109  this->newtrace();
110  wid2.station=hd.station;
111  tracefree.append("station: " + hd.station);
112  wid2.nsamples=hd.nsamples;
113  tracefree.append("file: " + hd.filename);
114  wid2.auxid=hd.component;
115  wid2.channel=hd.component.substr(4);
116  tracefree.append("component: " + hd.component);
117  wid2.date=hd.date;
118  tracefree.append("date: " + hd.date.timestring());
119  wid2.dt=1./hd.rate;
120  tracefree.append("sensitivity: " + hd.sensitivity);
121  tracefree.append("units: " + hd.units);
122  this->setlast();
123  this->settracefree(tracefree);
124  this->setwid2(wid2);
125  }
std::string station
Definition: readbonjer.h:60
sff::WID2 wid2() const
Definition: datread.h:111
std::string filename
Definition: readbonjer.h:62
std::istream & Mis
Definition: datread.h:126
void setwid2(const sff::WID2 &wid2)
Definition: datread.cc:113
libtime::TAbsoluteTime date
Definition: readbonjer.h:64
void settracefree(const sff::FREE &free)
Definition: datread.cc:105
std::string sensitivity
Definition: readbonjer.h:66
hold file header contents
Definition: readbonjer.h:59
header readheader(std::istream &is, const bool &verbose)
function to read the file header
Definition: readbonjer.cc:76
std::string units
Definition: readbonjer.h:67
std::string component
Definition: readbonjer.h:63
Here is the call graph for this function:
Here is the caller graph for this function: