I'm attempting to Import datasets from a *.hdf5 file into Mathematica 12.2 in Win 7.
After looking at the syntax in the Wolfram Documentation Center and displaying the StructureGraph, I had no problem importing some of the datasets, from various levels, using
Import["file.hdf5",elem]
However, the one dataset I'm really interested with, just gives me $Failed
, with no additional explanations. Suggestions?
I can look at the data in this dataset using an app called HDFView. It looks fine, a spreadsheet similar to those in the datasets that were imported.
using
Import[file, {{"Dimensions", "DataFormat"}}]
I do notice one thing that is perhaps a problem? The format of one column is "bitfield". Using HDFView, this column includes values of either 01 or 00. Is this the problem and can it be solved?
Two of the other datasets in this files I also can't import, but at least I get a warning message:
LibraryFunction::fpexc: Numeric data containing a floating point exception (NaN or Inf) encountered.
When looking at these datasets with HDFView, they indeed contain some NaN values. Is there a way to import them?
h5
dataset generated bypandas
; which works fine with MMA12.1 but fails in MMA12.2. I understand this dataset was produced withnumpy.nan
involved, so my workaround for MMA12.2 was to replace thosenp.nan
s with a numeric value, say-9999
. $\endgroup$NaN
part is related to this thread $\endgroup$