ncdigest V1 #1119

Quincey Koziol koziol at hdfgroup.org
Thu Aug 9 05:05:28 MDT 2007


Hi Jeff,

On Aug 8, 2007, at 10:25 PM, ncdigest wrote:

>
> ncdigest          Wednesday, August 8 2007          Volume 01 :  
> Number 1119
>
>
>
> Today's Topics:
> arrays of fixed-length strings
>
> ----------------------------------------------------------------------
>
> Date: Wed, 08 Aug 2007 11:26:40 -0600
> From: Jeff Whitaker <jswhit at fastmail.fm>
> Subject: arrays of fixed-length strings
>
> In netcdf-4.0, I don't see how to create variables which are arrays of
> strings with length > 1.  I see how to create arrays of
> single-characters, and arrays of variable-length strings, but not
> strings of a specified length.
>
> Am I missing something, or is this not supported by HDF5?

	Yes, fixed-length arrays are supported in HDF5.  You need to use  
something like the following HDF5 calls:

	tid = H5Tcopy(H5T_C_S1);
	H5Tset_size(tid, <string length>);

	Quincey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2448 bytes
Desc: not available
Url : http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/attachments/20070809/0391b110/attachment.bin 


More information about the netcdfgroup mailing list