about object reference in HDF5

hi,
  in my hdf5 file, there includes object reference, i want to read this "object reference " value out,
so i invoke the subroutine as follows
                 ref_size(1)=size(ref_out)
                call h5dread_f(dset,H5T_STD_REF_DSETREG,ref_out,ref_size,hdferr)
but after i compile the code, there is an error prompt:
                error #6285: There is no matching specific subroutine for this generic subroutine call. [H5DREAD_F]
                call h5dread_f(dset,H5T_STD_REF_DSETREG,ref_out,ref_size,hdferr)
the code i made referred to http://www.hdfgroup.org/HDF5/Tutor/reftoreg.html
can anybody give me advice about how to read the "object reference" in hdf5 files?

any help will be appreciated!
thanks

dyjbean

did you declare the correct types for dset,ref_out,ref_size,hdferr?

   INTEGER(HID_T) :: dset
   what type is your ref_out??? :: ref_out
   INTEGER(HSIZE_T) :: ref_size
   INTEGER :: hdferr

···

On 08.12.2011 22:06, dyjbean wrote:

hi,
in my hdf5 file, there includes object reference, i want to read
this "object reference " value out,
so i invoke the subroutine as follows

ref_size(1)=size(ref_out)
call h5dread_f(dset,H5T_STD_REF_DSETREG,ref_out,ref_size,hdferr)
but after i compile the code, there is an error prompt:
error #6285: There is no matching specific subroutine for this
generic subroutine call. [H5DREAD_F]
call h5dread_f(dset,H5T_STD_REF_DSETREG,ref_out,ref_size,hdferr)
the code i made referred to
can anybody give me advice about how to read the "object reference"
in hdf5 files?

any help will be appreciated!
thanks

-------------------------

dyjbean

yes, i did declare the variable like you,
error #6285: There is no matching specific subroutine for this generic subroutine call. [H5DREAD_F]

but the above error occurred yet

and i have another question ,which subroutine in FORTRAN can invoke the correct object reference,
  the origin data's object reference value in one of variables is 38140612, i didn't know which subroutine was called to produce the correct object value, so i read the
h5 file and write those variable to another file except that one variable was multiplied with a factor, examine the result , the object of
corresponding variable's object reference is 976, but the other value is the same with the original data.

then i tried to find to the correct subroutine to be invoked in fortran code , but there found nothing, the syntax "h5dread_f(dset,H5T_STD_REF_DSETREG,ref_out,ref_size,hdferr)"
comes from the http://www.hdfgroup.org/HDF5/Tutor/reftoobj.html , and the above error made it.

the attachment is my read hdf5 fortran code, can you give me some advice

dyjbean

h5pro_readobjref.f90 (23.8 KB)

···

From: brtnfld
Date: 2011-12-09 23:26
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] about object reference in HDF5
did you declare the correct types for dset,ref_out,ref_size,hdferr?

   INTEGER(HID_T) :: dset
   what type is your ref_out??? :: ref_out
   INTEGER(HSIZE_T) :: ref_size
   INTEGER :: hdferr

On 08.12.2011 22:06, dyjbean wrote:

hi,
in my hdf5 file, there includes object reference, i want to read
this "object reference " value out,
so i invoke the subroutine as follows

ref_size(1)=size(ref_out)
call h5dread_f(dset,H5T_STD_REF_DSETREG,ref_out,ref_size,hdferr)
but after i compile the code, there is an error prompt:
error #6285: There is no matching specific subroutine for this
generic subroutine call. [H5DREAD_F]
call h5dread_f(dset,H5T_STD_REF_DSETREG,ref_out,ref_size,hdferr)
the code i made referred to
can anybody give me advice about how to read the "object reference"
in hdf5 files?

any help will be appreciated!
thanks

-------------------------

dyjbean

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org