create line for output from values
Definition at line 112 of file seifeio.cc.
References Mdt, Mformat, Mnsamples, Mtime, and datrw::util::ntrailingdigits().
Referenced by main(), ParameterLine(), set(), and datrw::seife::Header::write().
114 libtime::TRelativeTime
116 libtime::TRelativeTime ttsec(
Mtime);
119 tmin=1440.*ttmin.days()+60.*ttmin.hour()+ttmin.minute();
120 tsec=libtime::time2double(ttsec);
121 std::ostringstream oss;
122 oss << std::setw(10) << std::left <<
Mnsamples;
123 oss << std::setw(20) << std::left <<
Mformat;
124 oss << std::setw(10) << std::left << std::showpoint <<
125 std::setprecision(3);
127 { oss << std::scientific; }
129 { oss << std::fixed; }
131 oss << std::setw(10) << std::left << std::setprecision(1)
132 << std::fixed << tmin;
133 oss << std::setw(10) << std::left << std::setprecision(6) << tsec;
unsigned int Mnsamples
number of samples
int ntrailingdigits(double v, const bool &debug)
return number of trailing digits (after decimal point)
std::string Mformat
Fortran data format.
double Mdt
sampling interval
libtime::TRelativeTime Mtime
time of first sample