hdfql

conflicting declaration error when compiling in Rcpp, but g++ works fine

北城以北 提交于 2019-12-11 14:49:14
问题 I am trying to compile an Rcpp package that relies on the external library HDFql. First, I tried compiling a plain .cpp file following the directions in the reference manual, which worked fine : g++ example.cpp -I./include/HDFql ./HDFql/libHDFql.a -fopenmp -ldl where the ./include/HDFql folder contains the header files and ./HDFql/libHDFql.a is the static library. Then I tried doing the equivalent in an Rcpp package. My package directory structure is |- R |- script. r |- src |- HDFql |-

Filter HDF dataset from H5 file using attribute

旧城冷巷雨未停 提交于 2019-12-10 21:17:53
问题 I have an h5 file containing multiple groups and datasets. Each dataset has associated attributes. I want to find/filter the datasets in this h5 file based upon the respective attribute associated with it. Example: dataset1 =cloudy(attribute) dataset2 =rainy(attribute) dataset3 =cloudy(attribute) I want to find the datasets having weather attribute/metadata as cloudy What will be the simplest approach to get this done in pythonic way. 回答1: There are 2 ways to access HDF5 data with Python: