Hi, new to HDF, and I found HDFql and got setup on that with the C# wrapper on Visual Studio 2013.
I just need to read some data from an existing HDF5 file and write some data values (repeatedly). I can open the file with HDFView and see the structure and types and data just fine.
The particular dataset I need to read has just a single string of length 68. It should look like this:
When I execute a SELECT command and then use the (sub)cursor to walk through the char array and concatenate the string, I sometimes get the correct string, but sometimes I get something like this:
And sometimes it is really bad:
One other odd one I got was this (just note the extra “DFql” on the end):
Each time I run the same code on the same file, I get a different result. I also used HDFql.SubcursorGetCount(), and it returns 68 every time, regardless of the extra junk. I ruled out my parsing of the char array by doing it a few times in a row and comparing the results, which were always identical.(good or bad) Repeating the execution of the SELECT command, however, gives different results for each.
My command isn’t complex, just HDFql.Execute(“SELECT FROM …”)
After that I set the cursor to first and subcursor to first, and loop through the characters, moving the subcursor to next, until I hit a null.
Otherwise just use and close the file at the beginning and end.
Any ideas what could be causing these strange characters, and why is it randomly good or bad? And what to do about it?