Write in $OUTPUT_Z_LOWRIS_DIR/MP_coeff the MP coefficients.
- Parametri
-
[in] | dbz | - DBZ object with MP coefficients |
Definizione alla linea 452 del file assets.cpp.
454 const char* dirname = getenv(
"OUTPUT_Z_LOWRIS_DIR");
455 if (!dirname)
throw runtime_error(
"OUTPUT_Z_LOWRIS_DIR is not set");
456 string fname(dirname);
457 fname +=
"/MP_coeff";
458 File out(logging_category);
459 out.open(fname,
"wb",
"MP coefficients");
461 unsigned char MP_coeff[2];
462 MP_coeff[0]=(
unsigned char)(dbz.aMP/10);
463 MP_coeff[1]=(
unsigned char)(dbz.bMP*10);
465 fwrite(MP_coeff,
sizeof(MP_coeff), 1, out);
Open a file taking its name from a given env variable.
Referenzia radarelab::File::open().