32 #include "config_hdf5.h"
37 #include <libdap/InternalErr.h>
40 #include "h5apicompatible.h"
45 BaseType *HDF5GMCFMissLLArray::ptr_duplicate()
50 bool HDF5GMCFMissLLArray::read()
53 BESDEBUG(
"h5",
"Coming to HDF5GMCFMissLLArray read "<<endl);
55 if (NULL == HDF5RequestHandler::get_lrdata_mem_cache())
56 read_data_NOT_from_mem_cache(
false, NULL);
60 vector<string> cur_lrd_non_cache_dir_list;
61 HDF5RequestHandler::get_lrd_non_cache_dir_list(cur_lrd_non_cache_dir_list);
66 if ((cur_lrd_non_cache_dir_list.size() == 0)
67 || (
"" == check_str_sect_in_list(cur_lrd_non_cache_dir_list, filename,
'/'))) {
69 vector<string> cur_cache_dlist;
70 HDF5RequestHandler::get_lrd_cache_dir_list(cur_cache_dlist);
71 string cache_dir = check_str_sect_in_list(cur_cache_dlist, filename,
'/');
72 if (cache_dir !=
"") {
74 cache_key = cache_dir + varname;
77 cache_key = filename + varname;
81 vector<size_t> dim_sizes;
82 Dim_iter i_dim = dim_begin();
83 Dim_iter i_enddim = dim_end();
84 while (i_dim != i_enddim) {
85 dim_sizes.push_back(dimension_size(i_dim));
89 size_t total_elems = 1;
90 for (
unsigned int i = 0; i < dim_sizes.size(); i++)
91 total_elems = total_elems * dim_sizes[i];
93 handle_data_with_mem_cache(dtype, total_elems, cache_flag, cache_key,
false);
96 read_data_NOT_from_mem_cache(
false, NULL);
102 void HDF5GMCFMissLLArray::obtain_aqu_obpg_l3_ll(
int* offset,
int* step,
int nelms,
bool add_cache,
void* buf)
105 BESDEBUG(
"h5",
"Coming to obtain_aqu_obpg_l3_ll read "<<endl);
111 throw InternalErr(__FILE__, __LINE__,
"The number of dimension for Aquarius Level 3 map data must be 1");
113 bool check_pass_fileid_key = HDF5RequestHandler::get_pass_fileid();
114 if (
false == check_pass_fileid_key) {
115 if ((fileid = H5Fopen(filename.c_str(), H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
117 eherr <<
"HDF5 File " << filename <<
" cannot be opened. " << endl;
118 throw InternalErr(__FILE__, __LINE__, eherr.str());
123 if ((rootid = H5Gopen(fileid,
"/", H5P_DEFAULT)) < 0) {
124 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
126 eherr <<
"HDF5 dataset " << varname <<
" cannot be opened. " << endl;
127 throw InternalErr(__FILE__, __LINE__, eherr.str());
130 float LL_first_point = 0.0;
132 int LL_total_num = 0;
134 if (CV_LAT_MISS == cvartype) {
135 string Lat_SWP_name = (Aqu_L3 == product_type) ?
"SW Point Latitude" :
"sw_point_latitude";
136 string Lat_step_name = (Aqu_L3 == product_type) ?
"Latitude Step" :
"latitude_step";
137 string Num_lines_name = (Aqu_L3 == product_type) ?
"Number of Lines" :
"number_of_lines";
139 float Lat_step = 0.0;
141 vector<char> dummy_str;
143 obtain_ll_attr_value(fileid, rootid, Lat_SWP_name, Lat_SWP, dummy_str);
144 obtain_ll_attr_value(fileid, rootid, Lat_step_name, Lat_step, dummy_str);
145 obtain_ll_attr_value(fileid, rootid, Num_lines_name, Num_lines, dummy_str);
146 if (Num_lines <= 0) {
148 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
149 throw InternalErr(__FILE__, __LINE__,
"The number of line must be >0");
153 LL_first_point = (float)(Lat_SWP + (Num_lines - 1) * Lat_step);
154 LL_step = (float)(Lat_step * (-1.0));
155 LL_total_num = Num_lines;
158 if (CV_LON_MISS == cvartype) {
160 string Lon_SWP_name = (Aqu_L3 == product_type) ?
"SW Point Longitude" :
"sw_point_longitude";
161 string Lon_step_name = (Aqu_L3 == product_type) ?
"Longitude Step" :
"longitude_step";
162 string Num_columns_name = (Aqu_L3 == product_type) ?
"Number of Columns" :
"number_of_columns";
164 float Lon_step = 0.0;
167 vector<char> dummy_str_value;
169 obtain_ll_attr_value(fileid, rootid, Lon_SWP_name, Lon_SWP, dummy_str_value);
170 obtain_ll_attr_value(fileid, rootid, Lon_step_name, Lon_step, dummy_str_value);
171 obtain_ll_attr_value(fileid, rootid, Num_columns_name, Num_cols, dummy_str_value);
174 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
175 throw InternalErr(__FILE__, __LINE__,
"The number of line must be >0");
179 LL_first_point = Lon_SWP;
181 LL_total_num = Num_cols;
187 if (nelms > LL_total_num) {
189 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
190 throw InternalErr(__FILE__, __LINE__,
191 "The number of elements exceeds the total number of Latitude or Longitude");
194 for (
int i = 0; i < nelms; ++i)
195 val[i] = LL_first_point + (offset[0] + i * step[0]) * LL_step;
197 if (
true == add_cache) {
198 vector<float> total_val;
199 total_val.resize(LL_total_num);
200 for (
int total_i = 0; total_i < LL_total_num; total_i++)
201 total_val[total_i] = LL_first_point + total_i * LL_step;
202 memcpy(buf, &total_val[0], 4 * LL_total_num);
205 set_value((dods_float32 *) &val[0], nelms);
207 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
211 void HDF5GMCFMissLLArray::obtain_gpm_l3_ll(
int* offset,
int* step,
int nelms,
bool add_cache,
void*buf)
215 throw InternalErr(__FILE__, __LINE__,
"The number of dimension for GPM Level 3 map data must be 1");
217 bool check_pass_fileid_key = HDF5RequestHandler::get_pass_fileid();
219 if (
false == check_pass_fileid_key) {
220 if ((fileid = H5Fopen(filename.c_str(), H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
222 eherr <<
"HDF5 File " << filename <<
" cannot be opened. " << endl;
223 throw InternalErr(__FILE__, __LINE__, eherr.str());
227 vector<char> grid_info_value;
229 float lon_start = 0.;
237 if(GPMM_L3 == product_type || GPMS_L3 == product_type) {
238 hid_t grid_grp_id = -1;
239 string grid_grp_name;
241 if ((name() ==
"nlat") || (name() ==
"nlon")) {
243 string temp_grid_grp_name(GPM_GRID_GROUP_NAME1, strlen(GPM_GRID_GROUP_NAME1));
244 temp_grid_grp_name =
"/" + temp_grid_grp_name;
245 if (H5Lexists(fileid, temp_grid_grp_name.c_str(), H5P_DEFAULT) > 0)
246 grid_grp_name = temp_grid_grp_name;
248 string temp_grid_grp_name2(GPM_GRID_GROUP_NAME2, strlen(GPM_GRID_GROUP_NAME2));
249 temp_grid_grp_name2 =
"/" + temp_grid_grp_name2;
250 if (H5Lexists(fileid, temp_grid_grp_name2.c_str(), H5P_DEFAULT) > 0)
251 grid_grp_name = temp_grid_grp_name2;
253 throw InternalErr(__FILE__, __LINE__,
"Unknown GPM grid group name ");
259 string temp_grids_group_name(GPM_GRID_MULTI_GROUP_NAME, strlen(GPM_GRID_MULTI_GROUP_NAME));
260 if (name() ==
"lnH" || name() ==
"ltH")
261 grid_grp_name = temp_grids_group_name +
"/G2";
262 else if (name() ==
"lnL" || name() ==
"ltL") grid_grp_name = temp_grids_group_name +
"/G1";
269 if(name() ==
"lnH" || name() ==
"ltH" ||
270 name() ==
"lnL" || name() ==
"ltL") {
271 string temp_grids_group_name(GPM_GRID_MULTI_GROUP_NAME,strlen(GPM_GRID_MULTI_GROUP_NAME));
274 size_t grids_group_pos = varname.find(temp_grids_group_name);
275 if(string::npos == grids_group_pos) {
276 throw InternalErr (__FILE__, __LINE__,
277 "Cannot find group Grids.");
280 string grids_cgroup_path = varname.substr(grids_group_pos+1);
281 size_t grids_cgroup_pos = varname.find_first_of(
"/");
282 if(string::npos == grids_cgroup_pos) {
283 throw InternalErr (__FILE__, __LINE__,
284 "Cannot find child group of group Grids.");
287 string temp_sub_grp_name = grids_cgroup_path.substr(0,grids_cgroup_pos);
288 if(name() ==
"lnH" || name() ==
"ltH")
289 sub_grp1_name = temp_sub_grp_name;
290 else if(name() ==
"lnL" || name() ==
"ltL")
291 sub_grp2_name = temp_sub_grp_name;
293 grid_grp_name = temp_grids_group_name +
"/" + temp_sub_grp_name;
298 if ((grid_grp_id = H5Gopen(fileid, grid_grp_name.c_str(), H5P_DEFAULT)) < 0) {
299 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
301 eherr <<
"HDF5 dataset " << varname <<
" cannot be opened. " << endl;
302 throw InternalErr(__FILE__, __LINE__, eherr.str());
306 string grid_info_name(GPM_ATTR2_NAME, strlen(GPM_ATTR2_NAME));
307 if (name() ==
"lnL" || name() ==
"ltL")
308 grid_info_name =
"G1_" + grid_info_name;
309 else if (name() ==
"lnH" || name() ==
"ltH") grid_info_name =
"G2_" + grid_info_name;
311 float dummy_value = 0.0;
313 obtain_ll_attr_value(fileid, grid_grp_id, grid_info_name, dummy_value, grid_info_value);
314 HDF5CFUtil::parser_gpm_l3_gridheader(grid_info_value, latsize, lonsize, lat_start, lon_start, lat_res, lon_res,
317 H5Gclose(grid_grp_id);
320 H5Gclose(grid_grp_id);
329 vector<char> grid_info_value1;
330 vector<char> grid_info_value2;
331 obtain_gpm_l3_new_grid_info(fileid,grid_info_value1,grid_info_value2);
332 obtain_lat_lon_info(grid_info_value1,grid_info_value2,latsize,lonsize,lat_start,lon_start,lat_res,lon_res);
335 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
338 send_gpm_l3_ll_to_dap(latsize,lonsize,lat_start,lon_start,lat_res,lon_res,offset,step,nelms,add_cache, buf);
345 float lon_start = 0.;
352 HDF5CFUtil::parser_gpm_l3_gridheader(grid_info_value, latsize, lonsize, lat_start, lon_start, lat_res, lon_res,
355 if (0 == latsize || 0 == lonsize) {
356 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
357 throw InternalErr(__FILE__, __LINE__,
"Either latitude or longitude size is 0. ");
363 if (CV_LAT_MISS == cvartype) {
365 if (nelms > latsize) {
366 H5Gclose(grid_grp_id);
367 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
368 throw InternalErr(__FILE__, __LINE__,
"The number of elements exceeds the total number of Latitude ");
371 for (
int i = 0; i < nelms; ++i)
372 val[i] = lat_start + offset[0] * lat_res + lat_res / 2 + i * lat_res * step[0];
374 if (add_cache ==
true) {
375 vector<float> total_val;
376 total_val.resize(latsize);
377 for (
int total_i = 0; total_i < latsize; total_i++)
378 total_val[total_i] = lat_start + lat_res / 2 + total_i * lat_res;
379 memcpy(buf, &total_val[0], 4 * latsize);
382 else if (CV_LON_MISS == cvartype) {
384 if (nelms > lonsize) {
385 H5Gclose(grid_grp_id);
386 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
387 throw InternalErr(__FILE__, __LINE__,
"The number of elements exceeds the total number of Longitude");
391 for (
int i = 0; i < nelms; ++i)
392 val[i] = lon_start + offset[0] * lon_res + lon_res / 2 + i * lon_res * step[0];
394 if (add_cache ==
true) {
395 vector<float> total_val;
396 total_val.resize(lonsize);
397 for (
int total_i = 0; total_i < lonsize; total_i++)
398 total_val[total_i] = lon_start + lon_res / 2 + total_i * lon_res;
399 memcpy(buf, &total_val[0], 4 * lonsize);
404 set_value((dods_float32 *) &val[0], nelms);
406 H5Gclose(grid_grp_id);
407 HDF5CFUtil::close_fileid(fileid, check_pass_fileid_key);
415 if (nelms > LL_total_num) {
418 throw InternalErr (__FILE__, __LINE__,
419 "The number of elements exceeds the total number of Latitude or Longitude");
422 for (
int i = 0; i < nelms; ++i)
423 val[i] = LL_first_point + (offset[0] + i*step[0])*LL_step;
425 set_value ((dods_float32 *) &val[0], nelms);
436 void HDF5GMCFMissLLArray::obtain_ll_attr_value(hid_t , hid_t s_root_id,
const string & s_attr_name,
437 T& attr_value, vector<char> & str_attr_value)
440 BESDEBUG(
"h5",
"Coming to obtain_ll_attr_value"<<endl);
441 hid_t s_attr_id = -1;
442 if ((s_attr_id = H5Aopen_by_name(s_root_id,
".", s_attr_name.c_str(),
443 H5P_DEFAULT, H5P_DEFAULT)) < 0) {
444 string msg =
"Cannot open the HDF5 attribute ";
447 throw InternalErr(__FILE__, __LINE__, msg);
450 hid_t attr_type = -1;
451 if ((attr_type = H5Aget_type(s_attr_id)) < 0) {
452 string msg =
"cannot get the attribute datatype for the attribute ";
456 throw InternalErr(__FILE__, __LINE__, msg);
459 hid_t attr_space = -1;
460 if ((attr_space = H5Aget_space(s_attr_id)) < 0) {
461 string msg =
"cannot get the hdf5 dataspace id for the attribute ";
466 throw InternalErr(__FILE__, __LINE__, msg);
469 hssize_t num_elm = H5Sget_simple_extent_npoints(attr_space);
472 string msg =
"cannot get the number for the attribute ";
476 H5Sclose(attr_space);
478 throw InternalErr(__FILE__, __LINE__, msg);
482 string msg =
"The number of attribute must be 1 for Aquarius level 3 data ";
486 H5Sclose(attr_space);
488 throw InternalErr(__FILE__, __LINE__, msg);
491 size_t atype_size = H5Tget_size(attr_type);
492 if (atype_size <= 0) {
493 string msg =
"cannot obtain the datatype size of the attribute ";
497 H5Sclose(attr_space);
499 throw InternalErr(__FILE__, __LINE__, msg);
502 if (H5T_STRING == H5Tget_class(attr_type)) {
503 if (H5Tis_variable_str(attr_type)) {
506 H5Sclose(attr_space);
508 throw InternalErr(__FILE__, __LINE__,
509 "Currently we assume the attributes we use to retrieve lat and lon are NOT variable length string.");
512 str_attr_value.resize(atype_size);
513 if (H5Aread(s_attr_id, attr_type, &str_attr_value[0]) < 0) {
514 string msg =
"cannot retrieve the value of the attribute ";
518 H5Sclose(attr_space);
520 throw InternalErr(__FILE__, __LINE__, msg);
526 else if (H5Aread(s_attr_id, attr_type, &attr_value) < 0) {
527 string msg =
"cannot retrieve the value of the attribute ";
531 H5Sclose(attr_space);
533 throw InternalErr(__FILE__, __LINE__, msg);
538 H5Sclose(attr_space);
542 void HDF5GMCFMissLLArray::obtain_gpm_l3_new_grid_info(hid_t file,
543 vector<char>& grid_info_value1,
544 vector<char>& grid_info_value2){
553 attr_na.value = NULL;
555 herr_t ret_o= H5OVISIT(file, H5_INDEX_NAME, H5_ITER_INC, visit_obj_cb, (
void*)&attr_na);
558 throw InternalErr(__FILE__, __LINE__,
"H5OVISIT failed. ");
568 vector<char> grid_info_value_1(attr_na.value,attr_na.value+strlen(attr_na.value));
569 vector<char> grid_info_value_2;
572 BESDEBUG(
"h5",
"Found the GPM level 3 Grid_info attribute."<<endl);
573 grid_info_value1.resize(strlen(attr_na.value));
574 memcpy(&grid_info_value1[0],attr_na.value,strlen(attr_na.value));
576 string tv(grid_info_value1.begin(),grid_info_value1.end());
577 cerr<<
"grid_info_value1 is "<<tv <<endl;
578 printf(
"attr_name 1st is %s\n",attr_na.name);
579 printf(
"attr_value 1st is %s\n",attr_na.value);
585 herr_t ret_o2= H5OVISIT(file, H5_INDEX_NAME, H5_ITER_INC, visit_obj_cb, (
void*)&attr_na);
588 throw InternalErr(__FILE__, __LINE__,
"H5OVISIT failed again. ");
598 grid_info_value2.resize(strlen(attr_na.value));
599 memcpy(&grid_info_value2[0],attr_na.value,strlen(attr_na.value));
601 string tv(grid_info_value2.begin(),grid_info_value2.end());
610 void HDF5GMCFMissLLArray::obtain_lat_lon_info(
const vector<char>& grid_info_value1,
611 const vector<char>& grid_info_value2,
612 int& latsize,
int& lonsize,
613 float& lat_start,
float& lon_start,
614 float& lat_res,
float& lon_res){
616 float lat1_start = 0;
617 float lon1_start = 0.;
623 float lat2_start = 0;
624 float lon2_start = 0.;
630 HDF5CFUtil::parser_gpm_l3_gridheader(grid_info_value1, lat1size, lon1size, lat1_start, lon1_start,
631 lat1_res, lon1_res,
false);
633 HDF5CFUtil::parser_gpm_l3_gridheader(grid_info_value2, lat2size, lon2size, lat2_start, lon2_start,
634 lat2_res, lon2_res,
false);
636 bool pick_gv1 =
true;
639 if (name() ==
"lnL" || name() ==
"ltL") {
640 if(lat1_res <lat2_res)
643 else if (name() ==
"lnH" || name() ==
"ltH") {
644 if(lat1_res >lat2_res)
648 if(
true == pick_gv1) {
651 lat_start = lat1_start;
652 lon_start = lon1_start;
659 lat_start = lat2_start;
660 lon_start = lon2_start;
668 attr_info(hid_t loc_id,
const char *name,
const H5A_info_t *ainfo,
void *_op_data)
677 attr_info_t *op_data = (attr_info_t *)_op_data;
680 if(strstr(name,GPM_ATTR2_NAME)!=NULL) {
681 hid_t attr, atype, aspace;
682 attr = H5Aopen(loc_id, name, H5P_DEFAULT);
685 atype = H5Aget_type(attr);
690 if(H5T_STRING == H5Tget_class(atype)){
696 if(strncmp(name,op_data->name,strlen(name))!=0) {
697 hid_t aspace = H5Aget_space(attr);
703 hsize_t num_elms = H5Tget_size(atype)*H5Sget_simple_extent_npoints(aspace);
705 char *attr_value = op_data->value;
706 attr_value = malloc(num_elms+1);
707 H5Aread(attr,atype,attr_value);
708 printf(
"attr_value is %s\n",attr_value);
710 char *cur_attr_value = (
char*)malloc(num_elms+1);
711 if(H5Aread(attr,atype,(
void*)cur_attr_value)<0) {
715 free(cur_attr_value);
720 if(strncmp(cur_attr_value,op_data->value,strlen(op_data->value))!=0) {
722 op_data->name = NULL;
723 op_data->name = (
char*)malloc(strlen(name)+1);
724 strncpy(op_data->name,name,strlen(name));
726 free(op_data->value);
727 op_data->value = NULL;
728 op_data->value=(
char*)malloc(num_elms+1);
729 strncpy(op_data->value,cur_attr_value,strlen(cur_attr_value));
732 free(cur_attr_value);
737 hid_t aspace = H5Aget_space(attr);
744 hsize_t num_elms = H5Tget_size(atype)*H5Sget_simple_extent_npoints(aspace);
745 op_data->name = (
char*)malloc(strlen(name)+1);
746 strncpy(op_data->name,name,strlen(name));
749 char *attr_value = op_data->value;
750 attr_value = malloc(num_elms+1);
751 H5Aread(attr,atype,attr_value);
752 printf(
"attr_value is %s\n",attr_value);
754 op_data->value = (
char*)malloc(num_elms+1);
755 if(H5Aread(attr,atype,(
void*)op_data->value)<0) {
759 free(op_data->value);
778 visit_obj_cb(hid_t group_id,
const char *name,
const H5O_info_t *oinfo,
788 attr_info_t *op_data = (attr_info_t *)_op_data;
791 if(oinfo->type == H5O_TYPE_GROUP) {
794 grp = H5Gopen2(group_id,name,H5P_DEFAULT);
797 ret = H5Aiterate2(grp, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_info, op_data);
800 printf(
"object: attr name is %s\n",op_data->name);
801 printf(
"object: attr value is %s\n",op_data->value);
817 void HDF5GMCFMissLLArray::send_gpm_l3_ll_to_dap(
const vector<char>& grid_info_value,
int* offset,
int* step,
818 int nelms,
bool add_cache,
void*buf) {
821 float lon_start = 0.;
829 void HDF5GMCFMissLLArray::send_gpm_l3_ll_to_dap(
const int latsize,
const int lonsize,
const float lat_start,
const float lon_start,
830 const float lat_res,
const float lon_res,
const int* offset,
const int* step,
831 const int nelms,
const bool add_cache,
void*buf) {
834 if (0 == latsize || 0 == lonsize) {
835 throw InternalErr(__FILE__, __LINE__,
"Either latitude or longitude size is 0. ");
841 if (CV_LAT_MISS == cvartype) {
843 if (nelms > latsize) {
844 throw InternalErr(__FILE__, __LINE__,
"The number of elements exceeds the total number of Latitude ");
847 for (
int i = 0; i < nelms; ++i)
848 val[i] = lat_start + offset[0] * lat_res + lat_res / 2 + i * lat_res * step[0];
850 if (add_cache ==
true) {
851 vector<float> total_val;
852 total_val.resize(latsize);
853 for (
int total_i = 0; total_i < latsize; total_i++)
854 total_val[total_i] = lat_start + lat_res / 2 + total_i * lat_res;
855 memcpy(buf, &total_val[0], 4 * latsize);
858 else if (CV_LON_MISS == cvartype) {
861 if (nelms > lonsize) {
862 throw InternalErr(__FILE__, __LINE__,
"The number of elements exceeds the total number of Longitude");
865 for (
int i = 0; i < nelms; ++i)
866 val[i] = lon_start + offset[0] * lon_res + lon_res / 2 + i * lon_res * step[0];
868 if (add_cache ==
true) {
869 vector<float> total_val;
870 total_val.resize(lonsize);
871 for (
int total_i = 0; total_i < lonsize; total_i++)
872 total_val[total_i] = lon_start + lon_res / 2 + total_i * lon_res;
873 memcpy(buf, &total_val[0], 4 * lonsize);
878 set_value((dods_float32 *) &val[0], nelms);
882 void HDF5GMCFMissLLArray::read_data_NOT_from_mem_cache(
bool add_cache,
void*buf)
885 BESDEBUG(
"h5",
"Coming to HDF5GMCFMissLLArray: read_data_NOT_from_mem_cache "<<endl);
897 int nelms = format_constraint(&offset[0], &step[0], &count[0]);
899 if (GPMM_L3 == product_type || GPMS_L3 == product_type || GPM_L3_New == product_type)
900 obtain_gpm_l3_ll(&offset[0], &step[0], nelms, add_cache, buf);
901 else if (Aqu_L3 == product_type || OBPG_L3 == product_type)
902 obtain_aqu_obpg_l3_ll(&offset[0], &step[0], nelms, add_cache, buf);
This class specifies the retrieval of the missing lat/lon values for general HDF5 products.
include the entry functions to execute the handlers