Hi Ramakrishnan,
On Feb 15, 2012, at 1:21 AM, Ramakrishnan Iyer wrote:
> All,
> I attempted creating the attribute for a file as below .
> hid_t attr = H5Acreate(fileid,"Save Status", H5T_NATIVE_HBOOL, space,
> H5P_DEFAULT);
> space is defined as
> hsize_t dims[1]={1};
> hid_t space = H5Screate_simple(1, dims, NULL);
> On execution I get this error
> HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0. Back
> trace follows.
> #000: ..\..\src\H5A.c line 178 in H5Acreate(): location is not valid for an
> attribute
> major(01): Function arguments
> minor(03): Inappropriate type
>
> Can someone let me if at all we can create attributes with a file identifier
> ?. If yes, how ?
This should work, with later versions of the 1.6 or 1.8 release
branches.
Quincey
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org