gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
277 stars 61 forks source link

Error with routine H5F_OPEN: Unable to open file #1899

Open zwang888 opened 3 weeks ago

zwang888 commented 3 weeks ago

Hello,

I am switching from IDL to GDL. The code works well under IDL. However, when I run it under GDL (v1.0.6), the line "hdfid = h5f_open(nc_filename)" causes an error:

H5F_OPEN: Unable to open file

Looks like H5 library works fine for IDL, but not works for GDL. Do you have any suggestions on how to fix it?

Thank you very much!

GillesDuvert commented 3 weeks ago

@zwang888 such a simple bug would have been seen before as the HDF5 functions are maintained by @ogressel, whose last patch was Feb, 29. The problem may arise from what nc_filename contains, some pathnames are not treated the same beween GDL and IDL. what is the value of nc_filename? I assign @ogressel for information

zwang888 commented 3 weeks ago

Thanks @GillesDuvert for your response. I will take a look at the previous post on Feb 29.

nc_filename = MYD04_L2.A2020001.1025.007.2024170225317.nc

(I couldn't upload the data). attached please find two snapshots for data structure and variable values.

File_Structure File_value

Thank you very much

GillesDuvert commented 2 weeks ago

Hi, I do not see anything strange in the name, and I checked, the error is returned by the HDF5 library (libhdf5.so) This may be a problem of HDF5 library version, in which case you probably need to install the last HDF5 version and then recompile GDL?