[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h5md-user] Species Data Type
From: |
Peter Colberg |
Subject: |
Re: [h5md-user] Species Data Type |
Date: |
Wed, 7 Aug 2013 00:37:08 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Nicolas,
On Tue, Aug 06, 2013 at 08:58:51PM +0200, Nicolas Höft wrote:
> Is it possible to read/write an enum type as int type? What I mean
> is: Is this backwards-compatible? Can a program that does not know
> about HDF5 enums simply read the int's and continue as usual?
>
> I really like the solution, though :-)
It is compatible with readers expecting an integer data type. An
enumerated-type dataset can be read using, e.g., H5T_NATIVE_INT as
the memory datatype.
For writing, however, the memory datatype needs to be an enumerated
type. A program extending an existing enumerated-type dataset needs
to be aware of this.
Peter
- [h5md-user] Species Data Type, Nicolas Höft, 2013/08/05
- Message not available
- Re: [h5md-user] Species Data Type, Peter Colberg, 2013/08/05
- Re: [h5md-user] Species Data Type, Peter Colberg, 2013/08/06
- Re: [h5md-user] Species Data Type, Nicolas Höft, 2013/08/06
- Re: [h5md-user] Species Data Type,
Peter Colberg <=
- Re: [h5md-user] Species Data Type, Olaf Lenz, 2013/08/07
- Re: [h5md-user] Species Data Type, Peter Colberg, 2013/08/09
- Re: [h5md-user] Species Data Type, Olaf Lenz, 2013/08/09
- Re: [h5md-user] Species Data Type, Peter Colberg, 2013/08/09
- Re: [h5md-user] Species Data Type, Pierre de Buyl, 2013/08/20
- Re: [h5md-user] Species Data Type, Pierre de Buyl, 2013/08/20
- Re: [h5md-user] Species Data Type, Felix Höfling, 2013/08/21
Re: [h5md-user] Species Data Type, Nicolas Höft, 2013/08/06