DATRW++ library: seismic data I/O with multiple formats
datrw::hpmo Namespace Reference

All classes and functions to extract data from HPMO files. More...

Classes

class  Header
 Read, hold and handle one minute block header line. More...
 
struct  MinuteBlock
 hold one minute block More...
 
class  NoHeaderException
 this excpetion will be thrown by the Header reading function, in case it does not find something that look like a header (i.e. a line with more or less than 44 characters) More...
 
struct  SampleBlock
 hold samples of one minute-block More...
 

Typedefs

typedef std::vector< MinuteBlockTvecofblocks
 within the inner reading functions, we use vector to hold minute blocks More...
 

Functions

void check_channel_no (const int &ichannel)
 check if channel number is valid More...
 
libtime::TRelativeTime dt ()
 return sampling interval of HPMO data acquisition (i.e. 5 sec) More...
 
void dump (std::ostream &os, const SampleBlock &data)
 dump one block of samples More...
 
void dump (std::ostream &os, const MinuteBlock &block)
 dump one MinueBlock More...
 
std::ostream & operator<< (std::ostream &os, const SampleBlock &data)
 dump values of a sample block More...
 
std::ostream & operator<< (std::ostream &os, const Header &hd)
 dump header values More...
 
std::ostream & operator<< (std::ostream &os, const MinuteBlock &block)
 dump a minute block More...
 
std::istream & operator>> (std::istream &is, Header &hd)
 read header from C++ stream More...
 
std::istream & operator>> (std::istream &is, SampleBlock &data)
 read a sample block from C++ stream More...
 
std::istream & operator>> (std::istream &is, MinuteBlock &block)
 read a full minute block from C++ stream More...
 
std::string quality (const int &flag)
 return meaning of quality flag More...
 
sff::FREE qualityreports (const MinuteBlock *blocks, const int &nblocks)
 prepare a report on unusual quality reports More...
 
SampleBlock readdata (std::istream &is, const bool &verbose=false)
 read one minute block of samples More...
 
Tvecofblocks readfile (std::istream &is, const bool &verbose=false)
 read a full data file More...
 
libtime::TRelativeTime toffset (const int &ichannel)
 return time offset for channel ichannel (due to multiplexer) More...
 

Variables

const int nchannels =20
 number of channels in HP MO data acquisition system More...
 
const int nminutes =60
 number of minute blocks per file (1h) More...
 
const int nsamples =12
 number of samples per minute block and channel More...
 
const double sampling_interval =5.
 sampling interval in seconds More...
 
const bool isbinary =false
 Format properties. More...
 
const char *const streamID ="hpmo"
 Format properties. More...
 

Detailed Description

All classes and functions to extract data from HPMO files.