Elaboradar 0.1
Caricamento in corso...
Ricerca in corso...
Nessun risultato

◆ read_file_hray()

double elaboradar::Assets::read_file_hray ( 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 173 del file assets.cpp.

174{
175 File fd(logging_category);
176 if (!fd.open(fname_out_pp_bloc("h_ray.txt"), "rb", "hray"))
177 throw std::runtime_error("cannot open hray file");
178 return parse_hray(fd, on_sample);
179}
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().