Dear Elena,
Thank you for your explanation on the issue. It has crucial importance
for me to opt for portable code. I have one more question. Is it
possible to specify the exact number of digits to be stored in an HDF5
file after the decimal point?
Thank you in advance.
Best regards,
Ekin
On 03/29/2012 01:00 AM, Elena Pourmal wrote:
Ekin,
On Mar 26, 2012, at 2:48 PM, Ekin Akoglu wrote:
Thank you for your help. Now it works. In the meantime, I managed to
read the data with the attached script without initializing the
FORTRAN interface and without defining the compound data type.
Your program still has h5open_f call (the call is required! :-)
This seems a shorter approach but I wonder whether this approach
might lead to some erroneous results or not while reading data. Is
the other one preferable over this one?
The program works because you are reading data on the same machine it
was written. In general, HDF5 file datatype (returned by
h5dget_type_f) cannot be used to describe memory buffer (memory
datatype) in the h5dread_f call; this is not portable and may not work
if the program runs on another system.
The original program is correct (except the missing h5open_f call) and
portable.
Elena
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Regards,
Ekin
On 03/26/2012 06:09 PM, [email protected]
<mailto:[email protected]> wrote:
CALL h5open_f(hdferr)
<read_complexcompound.f95>_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected] <mailto:[email protected]>
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
--
*Ekin Akoglu*
Research Assistant
Institute of Marine Sciences
Middle East Technical University
P.O. Box 28, 33731
Erdemli, Mersin
Turkey
Web: www.ims.metu.edu.tr
Email: [email protected] <mailto:[email protected]>
Phone: +90 324 521 34 34
GSM: +90 506 554 03 90
Fax: +90 324 521 23 27
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org