[Fortran] How to open .hdf5 file extension

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
sketos
Messages
55
Reaction score
0
Hello, i am relatively new linux user so please be as thoroughly descriptive as you can.

i am starting a project and i have a file "file.hdf5" which contains velocity data i need to process in my fortran program. What do i have to do in order to use the data inside this file?

i normally use .dat extensions and i simply do:

open(unit=1,file="file1.dat",status="replace")

do i=1,N
read(1,*)...
enddo

In this case what procedure should i follow?? Is it possible to do it directly from fortran or i must extract them using python?? I need any libraries for this and if so how do i install and use them ( haven't used any libraries before).

if anyone has the courage to explain i would appreciate!
 
Physics news on Phys.org