dataset extend

Hello All,

I have made some changes to the file from yesterday. The h5dextend_f call is
causing the error but I dont understand why it is so.

I am attaching the source file, which i have made from the calls I am using in
the actual code. The code is working fine. But if I uncomment the calls to
h5dextend_f, h5dget_space_f, h5sselect_hyperslab_f, h5screate_simple_f,
h5dwrite_f, i get the following error.

HDF5-DIAG: Error detected in HDF5 (1.8.0) thread 0:
  #000: H5D.c line 1007 in H5Dset_extent(): unable to set extend dataset
    major: Dataset
    minor: Unable to initialize object
  #001: H5Dint.c line 2276 in H5D_set_extent(): no write intent on file
    major: Dataset
    minor: Write failed
dataset extend failed
HDF5-DIAG: Error detected in HDF5 (1.8.0) thread 0:
  #000: H5Dio.c line 420 in H5Dwrite(): file selection+offset not within extent
    major: Dataspace
    minor: Out of range

Can someone point out the error ? It looks to be something small but I still
cant find it.

Thanks.

Regards,
Nikhil

···

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Sorry i forgot to attach the file.

Forwarded Message:

mychunk1.f90 (3.7 KB)

···

To: hdf forum <hdf-forum@hdfgroup.org>
From: "Nikhil Laghave" <nikhill@iastate.edu>
Subject: dataset extend
Date: Thu, 12 Jun 2008 13:55:52 -0500 (CDT)
-----
Hello All,

I have made some changes to the file from yesterday. The h5dextend_f call is
causing the error but I dont understand why it is so.

I am attaching the source file, which i have made from the calls I am using in
the actual code. The code is working fine. But if I uncomment the calls to
h5dextend_f, h5dget_space_f, h5sselect_hyperslab_f, h5screate_simple_f,
h5dwrite_f, i get the following error.

HDF5-DIAG: Error detected in HDF5 (1.8.0) thread 0:
  #000: H5D.c line 1007 in H5Dset_extent(): unable to set extend dataset
    major: Dataset
    minor: Unable to initialize object
  #001: H5Dint.c line 2276 in H5D_set_extent(): no write intent on file
    major: Dataset
    minor: Write failed
dataset extend failed
HDF5-DIAG: Error detected in HDF5 (1.8.0) thread 0:
  #000: H5Dio.c line 420 in H5Dwrite(): file selection+offset not within extent
    major: Dataspace
    minor: Out of range

Can someone point out the error ? It looks to be something small but I still
cant find it.

Thanks.

Regards,
Nikhil

Nikhil,

You are opening the file with the H5F_ACC_RDONLY_F flag. No wonder you cannot write to it.

Please use H5F_ACC_RDWR_F instead.

Elena

···

On Jun 12, 2008, at 1:56 PM, Nikhil Laghave wrote:

Sorry i forgot to attach the file.

Forwarded Message:

To: hdf forum <hdf-forum@hdfgroup.org>
From: "Nikhil Laghave" <nikhill@iastate.edu>
Subject: dataset extend
Date: Thu, 12 Jun 2008 13:55:52 -0500 (CDT)
-----
Hello All,

I have made some changes to the file from yesterday. The h5dextend_f call is
causing the error but I dont understand why it is so.

I am attaching the source file, which i have made from the calls I am using in
the actual code. The code is working fine. But if I uncomment the calls to
h5dextend_f, h5dget_space_f, h5sselect_hyperslab_f, h5screate_simple_f,
h5dwrite_f, i get the following error.

HDF5-DIAG: Error detected in HDF5 (1.8.0) thread 0:
#000: H5D.c line 1007 in H5Dset_extent(): unable to set extend dataset
   major: Dataset
   minor: Unable to initialize object
#001: H5Dint.c line 2276 in H5D_set_extent(): no write intent on file
   major: Dataset
   minor: Write failed
dataset extend failed
HDF5-DIAG: Error detected in HDF5 (1.8.0) thread 0:
#000: H5Dio.c line 420 in H5Dwrite(): file selection+offset not within extent
   major: Dataspace
   minor: Out of range

Can someone point out the error ? It looks to be something small but I still
cant find it.

Thanks.

Regards,
Nikhil

<mychunk1.f90>----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.