bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
Static Public Member Functions | |
static void | add_missing_cf_attrs (const HDFSP::File *f, libdap::DAS &das) |
static void | add_obpg_special_attrs (const HDFSP::File *f, libdap::DAS &das, const HDFSP::SDField *spsds, const std::string &scaling, float &slope, const bool &global_slope_flag, float &intercept, const bool &global_intercept_flag) |
static void | check_obpg_global_attrs (HDFSP::File *f, std::string &scaling, float &slope, bool &global_slope_flag, float &intercept, bool &global_intercept_flag) |
static void | close_fileid (int32 sdfd, int32 file_id, int32 gridfd, int32 swathfd, bool pass_fileid_key) |
static void | correct_fvalue_type (libdap::AttrTable *at, int32 dtype) |
static void | correct_scale_offset_type (libdap::AttrTable *at) |
static void | dtoa (double, char *, int) |
static std::string | escattr_fvalue (std::string s) |
static void | gen_unique_name (std::string &str, std::set< std::string > &namelist, int &clash_index) |
Obtain the unique name for the clashed names and save it to set namelist. | |
static std::string | get_CF_string (std::string s) |
Change special characters to "_". | |
static std::string | get_double_str (double, int, int) |
static std::string | get_int_str (int) |
static void | handle_merra_ceres_attrs_with_bes_keys (const HDFSP::File *f, libdap::DAS &das, const std::string &filename) |
static void | Handle_NameClashing (std::vector< std::string > &newobjnamelist) |
General routines to handle name clashings. | |
static void | Handle_NameClashing (std::vector< std::string > &newobjnamelist, std::set< std::string > &objnameset) |
static void | handle_otherhdf_special_attrs (const HDFSP::File *f, libdap::DAS &das) |
static void | handle_vdata_attrs_with_desc_key (const HDFSP::File *f, libdap::DAS &das) |
static bool | insert_map (std::map< std::string, std::string > &m, std::string key, std::string val) |
static int | int_to_str (int, char str[], int) |
template<typename T> | |
static void | LatLon2DSubset (T *outlatlon, int ydim, int xdim, T *latlon, const int32 *offset, const int32 *count, const int32 *step) |
static void | map_eos2_objects_attrs (libdap::DAS &das, const string &filename) |
static void | map_eos2_one_object_attrs (libdap::DAS &das, int32 file_id, int32 obj_attr_group_id, const string &vgroup_name) |
static void | map_eos2_one_object_attrs_wrapper (libdap::DAS &das, int32 file_id, int32 vgroup_id, const string &vgroup_name, bool is_grid) |
static std::string | obtain_cache_fname (const std::string &fprefix, const std::string &fname, const std::string &vname) |
static size_t | obtain_dds_cache_size (const HDFSP::File *) |
static short | obtain_type_size (int32) |
Obtain datatype size. | |
static void | parser_trmm_v7_gridheader (const std::vector< char > &value, int &latsize, int &lonsize, float &lat_start, float &lon_start, float &lat_res, float &lon_res, bool check_reg_orig) |
static std::string | print_attr (int32, int, void *) |
Print attribute values in string. | |
static std::string | print_type (int32) |
Print datatype in string. | |
static ssize_t | read_buffer_from_file (int fd, void *buf, size_t) |
static void | read_sp_sds_dds_cache (FILE *, libdap::DDS *dds_ptr, const std::string &filename, const std::string &hdf_filename) |
static ssize_t | read_vector_from_file (int fd, vector< double > &, size_t) |
static void | rev_str (char *str, int len) |
static void | Split (const char *s, int len, char sep, std::vector< std::string > &names) |
static void | Split (const char *sz, char sep, std::vector< std::string > &names) |
Assume sz is Null terminated string. | |
static void | write_sp_sds_dds_cache (const HDFSP::File *, FILE *, size_t, const std::string &fname) |
Definition at line 67 of file HDFCFUtil.h.
|
static |
Definition at line 2099 of file HDFCFUtil.cc.
|
static |
Definition at line 1867 of file HDFCFUtil.cc.
|
static |
Definition at line 1791 of file HDFCFUtil.cc.
|
static |
Close HDF4 and HDF-EOS2 file IDs. For performance reasons, we want to keep HDF-EOS2/HDF4 IDs open for one operation(DDS,DAS or DATA). In case of exceptions, these IDs need to be closed.
Definition at line 3559 of file HDFCFUtil.cc.
|
static |
CF requires the _FillValue attribute datatype is the same as the corresponding field datatype. For some NASA files, this is not true. So we need to check if the _FillValue's datatype is the same as the attribute's. If not, we need to correct them.
Definition at line 477 of file HDFCFUtil.cc.
|
static |
CF requires the scale_factor and add_offset attribute datatypes hold the same datatype. So far we haven't found that scale_factor and add_offset attributes hold different datatypes in NASA files. But just in case, we implement a BES key to give users a chance to check this. By default, the key is always off.
Definition at line 540 of file HDFCFUtil.cc.
|
static |
Definition at line 3453 of file HDFCFUtil.cc.
|
static |
Definition at line 3239 of file HDFCFUtil.cc.
|
static |
Obtain the unique name for the clashed names and save it to set namelist.
Definition at line 130 of file HDFCFUtil.cc.
|
static |
Change special characters to "_".
Definition at line 100 of file HDFCFUtil.cc.
Definition at line 3484 of file HDFCFUtil.cc.
Definition at line 3516 of file HDFCFUtil.cc.
|
static |
Definition at line 2657 of file HDFCFUtil.cc.
|
static |
General routines to handle name clashings.
Definition at line 194 of file HDFCFUtil.cc.
|
static |
Definition at line 152 of file HDFCFUtil.cc.
|
static |
Definition at line 2006 of file HDFCFUtil.cc.
|
static |
Definition at line 2702 of file HDFCFUtil.cc.
|
static |
This is a safer way to insert and update a c++ map value. Otherwise, the local testsuite at The HDF Group will fail for HDF-EOS2 data under iMac machine platform.
Definition at line 84 of file HDFCFUtil.cc.
Definition at line 3433 of file HDFCFUtil.cc.
|
static |
Definition at line 433 of file HDFCFUtil.cc.
|
static |
Definition at line 2911 of file HDFCFUtil.cc.
|
static |
Definition at line 3094 of file HDFCFUtil.cc.
|
static |
Definition at line 3035 of file HDFCFUtil.cc.
|
static |
Definition at line 3579 of file HDFCFUtil.cc.
|
static |
Definition at line 3598 of file HDFCFUtil.cc.
|
static |
Obtain datatype size.
Definition at line 384 of file HDFCFUtil.cc.
|
static |
Definition at line 3252 of file HDFCFUtil.cc.
Print attribute values in string.
Definition at line 202 of file HDFCFUtil.cc.
|
static |
Print datatype in string.
Definition at line 323 of file HDFCFUtil.cc.
Definition at line 3552 of file HDFCFUtil.cc.
|
static |
Definition at line 3753 of file HDFCFUtil.cc.
Definition at line 3544 of file HDFCFUtil.cc.
|
static |
Definition at line 3415 of file HDFCFUtil.cc.
|
static |
From a string separated by a separator to a list of string, for example, split "ab,c" to {"ab","c"}
Definition at line 58 of file HDFCFUtil.cc.
|
static |
Assume sz is Null terminated string.
Definition at line 66 of file HDFCFUtil.cc.
|
static |
Definition at line 3637 of file HDFCFUtil.cc.