Elaboradar  0.1

◆ load_first_level()

void elaboradar::Assets::load_first_level ( radarelab::Matrix2D< unsigned char > &  matrix)

Open the first level file.

The result is always a valid file: it throws an exception if something goes wrong.

Parametri
matrix- Matrix [unsigned char] where first_elev table is loaded

Definizione alla linea 120 del file assets.cpp.

121 {
122  const char* fname = getenv("FIRST_LEVEL_FILE");
123  if (!fname){
124  LOG_WARN("leggo datipath da conf_site..");
125  fname = conf_site->get_first_level_file_name(conf_month);
126  }
127  load_raw(fname, "mappa statica", matrix);
128 }
void load_raw(const std::string &fname, const char *desc, radarelab::Matrix2D< T > &matrix)
Load a Matrix2D, from packed row-major binary data.
Definition: assets.cpp:482
virtual const char * get_first_level_file_name(unsigned month) const =0
Return first_elev file name.

Referenzia elaboradar::Site::get_first_level_file_name(), e load_raw().

Referenziato da elaboradar::CUM_BAC::leggo_first_level().