Elaboradar  0.1

◆ read_file_hray_inf()

double elaboradar::Assets::read_file_hray_inf ( std::function< void(unsigned el, unsigned bin, double value)>  on_sample)

Read the hray file, calling a callback on each parsed value.

Returns the value of dtrs.

Definizione alla linea 181 del file assets.cpp.

182 {
183  File fd(logging_category);
184  if (!fd.open(fname_out_pp_bloc("h_rayinf.txt"), "rb", "hray inf"))
185  throw std::runtime_error("cannot open hray inf file");
186  return parse_hray(fd, on_sample);
187 }
std::string fname_out_pp_bloc(const char *suffix) const
Compute the file name of a date/time based file in $DIR_OUT_PP_BLOC.
Definition: assets.cpp:189
Open a file taking its name from a given env variable.
Definition: utils.h:22

Referenzia fname_out_pp_bloc(), e radarelab::File::open().