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

◆ read_0term()

bool elaboradar::Assets::read_0term ( float & zeroterm)

Read $FILE_ZERO_TERMICO.

Parametri
[out]zeroterm- height of 0°C level [m]
Restituisce
true if the file was found and read correctly, false if zeroterm was not set

Definizione alla linea 278 del file assets.cpp.

279{
280 LOG_CATEGORY("radar.class");
281 File in(logging_category);
282 if (!in.open_from_env("FILE_ZERO_TERMICO", "rt"))
283 return false;
284
285 if (fscanf(in, "%f", &zeroterm) != 1)
286 {
287 LOG_ERROR("$FILE_ZERO_TERMICO=%s cannot be read: %s", in.name(), strerror(errno));
288 return false;
289 }
290
291 return true;
292}

Referenzia radarelab::File::open_from_env().