Elaboradar
0.1
|
Finds resources, like data files, used by the program. Continua...
#include <assets.h>
Membri pubblici | |
Assets (const Config &cfg) | |
Constructor. Continua... | |
void | configure (const Site &site, time_t acq_time) |
Configure asset lookup with the given details. Continua... | |
void | configure (const char *site, time_t acq_time) |
Configure asset lookup with the given details. Continua... | |
bool | save_acq_time (time_t acq_time=0) |
Save acq_time in $LAST_FILE, comparing it with the previous value. Continua... | |
void | load_dem (radarelab::Matrix2D< float > &matrix) |
Open the dem file. Continua... | |
void | load_first_level (radarelab::Matrix2D< unsigned char > &matrix) |
Open the first level file. Continua... | |
void | load_first_level_bb_el (radarelab::Matrix2D< unsigned char > &matrix) |
Open the first level elevation BB el file. Continua... | |
void | load_first_level_bb_bloc (radarelab::Matrix2D< unsigned char > &matrix) |
Open the first level elevation BB bloc file. Continua... | |
double | 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. Continua... | |
double | read_file_hray_inf (std::function< void(unsigned el, unsigned bin, double value)> on_sample) |
Read the hray file, calling a callback on each parsed value. Continua... | |
float | read_t_ground () const |
fornisce temperatura al suolo, da lettura file esterno Continua... | |
long int | read_profile_gap () const |
Read the gap between the time in $LAST_VPR and the current acquisition time. Continua... | |
int | read_vpr_heating () const |
Read the value of $VPR_HEATING (counter of consecutive vpr calculated, see scientific documentation) Continua... | |
void | write_vpr_heating (int value) const |
Write a new value to $VPR_HEATING (counter of consecutive vpr calculated, see scientific documentation) Continua... | |
bool | read_0term (float &zeroterm) |
Read $FILE_ZERO_TERMICO. Continua... | |
void | write_last_vpr () |
Write the acquisition time in $LAST_VPR file. Continua... | |
int | read_vpr_hmax () |
Read in $VPR_HMAX the vpr peak's height. Continua... | |
void | write_vpr_hmax (int hvprmax) |
write in $VPR_HMAX the vpr peak's height. Continua... | |
bool | read_vpr0 (radarelab::algo::VPR &vpr0) |
Read in $VPR0_FILE the last vpr available. Continua... | |
bool | read_archived_vpr (const radarelab::algo::DBZ &dbz, time_t time, radarelab::algo::VPR &vpr) |
Try to read the archived VPR at time time . Continua... | |
bool | find_vpr0 (const radarelab::algo::DBZ &dbz, radarelab::algo::VPR &vpr0, long int &gap) |
Read the gap and the vpr0, and if vpr0 is not found, look it up among the archived VPRs. Continua... | |
void | write_vpr0 (const radarelab::algo::VPR &vpr) |
Write in $VPR0_FILE the vpr calculated. Continua... | |
void | write_dbz_coefficients (const radarelab::algo::DBZ &dbz) |
Write in $OUTPUT_Z_LOWRIS_DIR/MP_coeff the MP coefficients. Continua... | |
H5::H5File | get_devel_data_output () const |
Return an open HDF5 File ( $DIR_QUALITY/devel-data.h5) to which we can write datasets used to debug run information @ return H5FILE object. Continua... | |
void | write_image (const radarelab::Matrix2D< unsigned char > &image, const char *dir_env_var, const char *ext, const char *desc) |
Write an image in a raw file in ${dir_env_var}, with the acquisition date as file name and the given extension. Continua... | |
void | write_subimage (const radarelab::Matrix2D< unsigned char > &image, unsigned image_side, const char *dir_env_var, const char *ext, const char *desc) |
Write an image in a raw file in ${dir_env_var}, with the acquisition date as file name and the given extension. Continua... | |
void | write_subimage (const radarelab::Matrix2D< unsigned char > &image, unsigned image_side, std::string algos, const char *dir_env_var, const char *ext, const char *desc) |
Write an image in a raw file in ${dir_env_var}, with the acquisition date as file name and the given extension. Continua... | |
template<typename T > | |
void | write_gdal_image (const radarelab::Matrix2D< T > &image, const char *dir_env_var, const char *name, const char *format) |
Write a graphic image with gdal. Continua... | |
std::string | fname_from_acq_time () const |
Build a basename (without extension) for a file given the current acquisition time. Continua... | |
Membri protetti | |
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. Continua... | |
template<typename T > | |
void | load_raw (const std::string &fname, const char *desc, radarelab::Matrix2D< T > &matrix) |
Load a Matrix2D, from packed row-major binary data. Continua... | |
void | load_ascii (const std::string &fname, const char *desc, radarelab::Matrix2D< float > &matrix) |
Load a Matrix2D, from space-separated column-major ascii floats. Continua... | |