36 #ifndef DATRW_READHPMO_H_VERSION 38 #define DATRW_READHPMO_H_VERSION \ 39 "DATRW_READHPMO_H V1.0 " 47 #include<datrwxx/hpmodata.h> 91 Header(std::istream& is,
const bool& verbose=
false)
93 void readheader(std::istream& is,
const bool& verbose=
false);
94 libtime::TAbsoluteTime
time()
const {
return(
Mtime); }
98 void dump(std::ostream& os)
const;
131 libtime::TRelativeTime
dt();
134 libtime::TRelativeTime
toffset(
const int& ichannel);
140 std::string
quality(
const int& flag);
156 std::istream&
operator >> (std::istream& is, MinuteBlock& block);
167 { hd.
dump(os);
return(os); }
172 {
dump(os, block);
return(os); }
178 #endif // DATRW_READHPMO_H_VERSION (includeguard) sff::FREE qualityreports(const MinuteBlock *blocks, const int &nblocks)
prepare a report on unusual quality reports
std::vector< MinuteBlock > Tvecofblocks
within the inner reading functions, we use vector to hold minute blocks
libtime::TRelativeTime dt()
return sampling interval of HPMO data acquisition (i.e. 5 sec)
Base class for exceptions.
const char *const data
keywords for consistency checks
libtime::TRelativeTime toffset(const int &ichannel)
return time offset for channel ichannel (due to multiplexer)
Root namespace of library.
std::ostream & operator<<(std::ostream &os, const SampleBlock &data)
dump values of a sample block
hold samples of one minute-block
Tvecofblocks readfile(std::istream &is, const bool &verbose)
read a full data file
std::string quality(const int &flag)
return meaning of quality flag
void dump(std::ostream &os, const SampleBlock &block)
dump one block of samples
void check_channel_no(const int &ichannel)
check if channel number is valid
std::istream & operator>>(std::istream &is, MinuteBlock &block)
read a full minute block from C++ stream
SampleBlock readdata(std::istream &is, const bool &verbose)
read one minute block of samples