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

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:hdf-forum-bounces@lists.hdfgroup.org] 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.

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

mainz01_144615.hdf5 (475 KB)

···

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 []
Samer Afach
Wednesday, July 22, 2015 12:56 PM
HDF Users Discussion List
[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.
Twitter:

mailto:hdf-forum-bounces@lists.hdfgroup.orgOn Behalf Of
Sent:
To:
Subject:

Hdf-forum@lists.hdfgroup.orghttp://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.orghttps://twitter.com/hdf5

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:hdf-forum-bounces@lists.hdfgroup.org] 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.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

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


_______________________________________________
Hdf-forum is for HDF software users discussion.
Twitter:
          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 []
Samer Afach
Wednesday, July 22, 2015 12:56 PM
HDF Users Discussion List
[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.
Twitter:

mailto:hdf-forum-bounces@lists.hdfgroup.orgOn Behalf Of
Sent:
To:
Subject:

Hdf-forum@lists.hdfgroup.orghttp://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.orghttps://twitter.com/hdf5
Hdf-forum@lists.hdfgroup.orghttp://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.orghttps://twitter.com/hdf5

Samer,

"MagneticField" is not 'data', it is a compound type's field name... a compound type is much like a struct in C. And the field name is equivalent to a member in the struct. It's just that your 'struct' has only one element. It is used in a 1D dataset. So is equivalent to an array of one element structs. Make sense?

More here:
https://www.hdfgroup.org/HDF5/Tutor/compound.html

Including this (multi field) example:
https://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/hdf5-examples/1_8/C/H5T/h5ex_t_cmpd.c

S

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Samer Afach
Sent: Wednesday, July 22, 2015 1:51 PM
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:hdf-forum-bounces@lists.hdfgroup.org] 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.

Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Twitter: https://twitter.com/hdf5

_______________________________________________

Hdf-forum is for HDF software users discussion.

Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>

http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Twitter: https://twitter.com/hdf5

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:hdf-forum-bounces@lists.hdfgroup.org>mailto:hdf-forum-bounces@lists.hdfgroup.org] 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.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Thanks for the explanation. Have a nice day!

···

On 7/22/2015 8:15 PM, Mitchell, Scott -
Exelis wrote:

Samer,

        �MagneticField�

is not �data�, it is a compound type�s field name� a
compound type is much like a struct in C. And the field name
is equivalent to a member in the struct. It�s just that your
�struct� has only one element. It is used in a 1D dataset.
So is equivalent to an array of one element structs. Make
sense?

        More

here:

        Including

this (multi field) example:

S

From:
Hdf-forum []
Samer Afach
Wednesday, July 22, 2015 1:51 PM
HDF Users Discussion List
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:hdf-forum-bounces@lists.hdfgroup.org ]
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.
Hdf-forum@lists.hdfgroup.org[http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)
Twitter: [https://twitter.com/hdf5](https://twitter.com/hdf5)

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
[http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)
Twitter: [https://twitter.com/hdf5](https://twitter.com/hdf5)



_______________________________________________
Hdf-forum is for HDF software users discussion.
Twitter:

https://www.hdfgroup.org/HDF5/Tutor/compound.html

https://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/hdf5-examples/1_8/C/H5T/h5ex_t_cmpd.c

mailto:hdf-forum-bounces@lists.hdfgroup.orgOn Behalf Of
Sent:
To:
Subject:

Hdf-forum@lists.hdfgroup.orghttp://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.orghttps://twitter.com/hdf5