Hi Samer, Yes, that's a field name. The field name is part of the type of a dataset and can't be changed once the dataset is created. If you want a different name, you'll need to create a new dataset and copy the values from the original dataset.
John From: Hdf-forum on behalf of Samer Afach Reply-To: HDF Users Discussion List Date: Wednesday, July 22, 2015 at 10:51 AM To: HDF Users Discussion List Subject: Re: [Hdf-forum] Dataset table column title Dear John: Thank you for your answer. I'm very grateful. I have a follow-up question, if you don't mind. So in the program called "HDF View", I see that "MagneticField" is at the top column, and I can't edit it (as I would be able to modify the other columns' elements), it has no number, and when I click on it, the whole column is selected. How can I create such a thing? Is this what Scott called "field name"? All the best, Samer On 7/22/2015 7:42 PM, John Readey wrote: Hi Samer, I took a look at your file. The MagneticFields dataset has a compound type – it just has one field though named "MagneticField". Cheers, John From: Hdf-forum on behalf of Samer Afach Reply-To: HDF Users Discussion List Date: Wednesday, July 22, 2015 at 10:34 AM To: HDF Users Discussion List Subject: Re: [Hdf-forum] Dataset table column title Dear Scott: I would be surprised if this is a compound type. This somehow doesn't make sense. Why would the title have a different type. Normally when nothing is entered, those titles take integer values. Could you please take a look at the attached file? Does that title of the column "MagneticField" (not the name of the dataset, which is MagneticFields) make a compound type? Thanks. All the best, Samer On 7/22/2015 7:26 PM, Mitchell, Scott - Exelis wrote: Samer, I _think_ what you’re looking at is a dataset containing a Compound type. When you define that compound type H5T.insert takes a field name, offset, & type info. That is where it is defined. I’m not sure it can be modified after creation. Scott From: Hdf-forum [<mailto:[email protected]>mailto:[email protected]] On Behalf Of Samer Afach Sent: Wednesday, July 22, 2015 12:56 PM To: HDF Users Discussion List Subject: [Hdf-forum] Dataset table column title Dear pros: This could probably sound like a stupid question, but I really couldn't find the answer anywhere and I wish you could help me. The terminology is probably the problem. I'm using the C interface of HDF5. In a dataset, I'm trying to change the title of a dataset. The title is the first element of each column. My colleague was able to set that in Labview, but I can't in C. What is the function that does that? I have to point out that all the examples in the HDF5 website for datasets don't have this. All the best, Samer ________________________________ This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail. _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected]<mailto:[email protected]>http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected]<mailto:[email protected]>http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
