Read in $VPR0_FILE the last vpr available.
- Parametri
-
[out] | vpr0 | - vpr profile in mmh-1 [rain intensity] |
[out] | area | - areal coverage for each layer km^2/1000 |
- Restituisce
- true if succesfull
-
false if file does not exits
Definizione alla linea 331 del file assets.cpp.
333 File in(logging_category);
334 if (!in.open_from_env(
"VPR0_FILE",
"rt"))
return false;
336 for (
unsigned i = 0; i < vpr0.size(); ++i)
338 if (fscanf(in,
"%f %li\n", &vpr0.val[i], &vpr0.area[i]) != 2)
340 LOG_ERROR(
"$VPR0_FILE=%s cannot be read: %s", in.name(), strerror(errno));
341 throw std::runtime_error(
"cannot read $VPR0_FILE");
Open a file taking its name from a given env variable.
Referenzia radarelab::File::open_from_env().
Referenziato da find_vpr0().