Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with routine H5F_OPEN: Unable to open file #1899

Open
zwang888 opened this issue Oct 31, 2024 · 3 comments
Open

Error with routine H5F_OPEN: Unable to open file #1899

zwang888 opened this issue Oct 31, 2024 · 3 comments
Assignees
Labels
hdf5 help wanted Extra attention is needed ON HOLD : Please Answer question GDL Team is Waiting for external input

Comments

@zwang888
Copy link

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
Copy link
Contributor

@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
Copy link
Author

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hdf5 help wanted Extra attention is needed ON HOLD : Please Answer question GDL Team is Waiting for external input
Projects
None yet
Development

No branches or pull requests

3 participants