Re: [Hdf-forum] Utility to do this?

2013-04-10 Thread Roy Mendelssohn - NOAA Federal
Thanks Ted. We learned more about NcML than we ever cared to know and were able to do a work around that way. BTW - do you know anything about the status of Fast HDF. That technology interests me. Hope the new job is going well. -Roy On Apr 10, 2013, at 5:21 AM, TedHabermann

Re: [Hdf-forum] c# read different datatypes

2013-04-10 Thread Insane
I got stuck with it.When i use calls1[0].a.ToString() ,it returns ,the rest of the data wich distinguishes from CharArray is not also correct.How should i define the datatype of the dataset in another way?Should i define the datatype only for string data and is it possible?

Re: [Hdf-forum] c# read different datatypes

2013-04-10 Thread Mitchell, Scott - IS
It looks ok at first glance. Do you define s1? I have no code I can extract for a simple example, but I have many where I use strings in a compound data type. S -Original Message- From: Hdf-forum [mailto:hdf-forum-boun...@hdfgroup.org] On Behalf Of Insane Sent: Wednesday, April

Re: [Hdf-forum] c# read different datatypes

2013-04-10 Thread Insane
The only thing I saw in examples was next: H5DataTypeId typeId = H5T.copy(H5T.H5Type.C_S1); But i don't actually know how it can help.Can u explain exactly how it should be defined ? -- View this message in context:

Re: [Hdf-forum] c# read different datatypes

2013-04-10 Thread Mitchell, Scott - IS
You need to allocate a buffer where H5D.read() stores the data. H5Array doesn't do that, it's just a wrapper. You should have something like: Metadata[] s1 = new Metadata[datasetSize]; H5DataSetId dsetId = H5D.open(fileID, /metadata/songs); H5DataTypeId

Re: [Hdf-forum] c# read different datatypes

2013-04-10 Thread Insane
Ah,i have done it already,i just didn't get your question from the very beginning. Sure, i defined s1 metadata[] s1 = new metadata[1]; After H5D.read ,i have data in s1 but the data is not correct. -- View this message in context:

Re: [Hdf-forum] c# read different datatypes

2013-04-10 Thread Insane
example of h5 file,i took it from million song dataset TRAAAVO128F93133D4.h5 http://hdf-forum.184993.n3.nabble.com/file/n4026076/TRAAAVO128F93133D4.h5 table is /metadata/songs even when i debug ToString the data is wrong. Should i set fixed sizes for strings or do smth else? -- View this