Hi Corey,
The sentence you pointed out is one of the limitations of Fortran support in HDF5 *prior* to HDF5-1.8.8.
With HDF5-1.8.8 we added support for Fortran 2003, so now this is not a limitation in HDF5. (See Section
3 in that document for the Fortran 2003 features in HDF5.)
On the "Examples by API" page, there are many Fortran examples that use Fortran 2003, including an
example that reads 64-bit integers (h5ex_t_int_F03.f90):
http://www.hdfgroup.org/HDF5/examples/api18-fortran.html
(I attached h5ex_t_int_F03.f90 to this message.)
Please note that if you wish to use the F2003 features in HDF5, you need to have a Fortran compiler that supports
Fortran 2003, and you need to have built HDF5 with F2003 support enabled. The NewFeatures_F2003.pdf document
discusses this, as well.
For example, to build HDF5 with Fortran 2003 support on Unix you would specify these options with configure:
--enable-fortran --enable-fortran2003
If you have further questions, let me know!
-Barbara
h5ex_t_int_F03.f90 (3.01 KB)
···
====================
Barbara Jones
The HDF Helpdesk
The HDF Group
help@hdfgroup.org
-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Corey Bettenhausen
Sent: Thursday, November 14, 2013 11:21 AM
To: HDF Users Discussion List
Subject: [Hdf-forum] Reading 64-bit integers from Fortran
Hello,
I'm trying to read some 64-bit integer VIIRS data in HDF5 format via Fortran. After a quick search I found this document:
http://www.hdfgroup.org/HDF5/doc/fortran/NewFeatures_F2003.pdf
"For example, if an HDF5 dataset stores 64-bit integers, data cannot be read by an HDF5 Fortran application into the buffer of the appropriate type like INTEGER*8 or INTEGER(KIND=big_enough_to_store) because there is no interface provided by the HDF5 Fortran Library."
Is this still the case with version 1.8.12? I couldn't find any documentation to suggest otherwise, but wanted to confirm.
Thanks,
-Corey
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org