push_back(std::string(name)); } } //here is my function and i pass a vector that i want the names to be in via reference. void getGroupNames(hid_t fileId, std::vector<std::string>& someVec) { herr_t status; status = H5Ovisit(fileId, H5_INDEX_NAME, H5_ITER_NATIVE, op_...
我在Fortran中读取一个HDF5文件,并且不知道对象(组)的先验名称。CALL H5Gget_obj_info_idx_f(group_id, groupName, ilink, objName, H5G_GROUP_F, error)在这里,我已经定义了character(len=100) :: objName HDF5?中的对象名称有最大长度吗? 浏览0提问于2017-01-10得票数 0 回答已采纳 1回答 ...
//定义文件路径stringfilename ="111.h5";//新建datasetGetHdf5DataSet getData =newGetHdf5DataSet();//获取目录数组string[] groupNames =getData.hdf5_getData(filename);//只读模式打开H5FileId fileId =H5F.open(filename, H5F.OpenMode.ACC_RDWR);//取其中某一目录H5DataSetId dataSetId = H5D.open(fi...
publicvoidhdf5_getDataSet(stringfileName,stringGroupName,stringDsName,int[,,]dataSet) { H5FileIdfileId=H5F.open(fileName,H5F.OpenMode.ACC_RDONLY); H5GroupIdgroupId=H5G.open(fileId,GroupName); H5DataSetIddataSetId=H5D.open(groupId,DsName/*"EV_Emissive"*/); H5DataTypeIdtid0=H5D....
(g_name);//获取存储空间H5::DataSet dataset = group.openDataSet(d_name);H5::DataSpace fs = dataset.getSpace();//获取维度数intdimNums = fs.getSimpleExtentNdims();hsize_t * dims =newhsize_t[dimNums];//H5::DataSpace myspace(dimNums, dims);//读取每个维度的大小fs.getSimpleExtentDims(...
Official HDF5® Library Repository. Contribute to HDFGroup/hdf5 development by creating an account on GitHub.
getString(entry.linkNameOffset); var group = new hdf5.Group(this._reader, entry, this._globalHeap, this._path, name); this._groups = []; if (this._entry) { if (this._entry.treeAddress || this._entry.heapAddress) { var heap = new hdf5.Heap(this._reader.move(this._entry.heap...
dataset_Name = H5G_GET_MEMBER_NAME(hdf_id,group,index) ;获得group中每一个dataset的名称 print,dataset_Name endfor dataset_id = H5D_OPEN(g_id,'temperature');打开dataset的id,这里是打开其中"temperature"的数据 data = H5D_READ(dataset_id) help,data print,data h5d_close,dataset_id h5g_clo...
_H5_NO_NAMESPACE_ */#define PI 3.1415926535/** Define the names of HDF5 file, groups, datasets, and attributes.* Use H5::H5std_string for name strings.*/constH5std_stringFILE_NAME("h5cpp_example.hdf5");constH5std_stringGROUP_NAME("group1");constH5std_stringDATASET_NAME("dset");...
解释:传入hdf5文件的id,那么group_path就需要从最初的group开始写。如果传入的是Group的id,那么group_path可以从该Group之后往下写。 dataset_name = h5g_get_obj_name_by_idx(group_id,dataset_index) 功能:获取数据集的名称 解释:传入数据集所在组的id,传入数据集的index。