|
Deleted User New Member
Posts:55  
03 Apr 2015 02:02 PM |
|
What is the error message you are receiving?
|
|
|
|
Zachary Norman Basic Member
Posts:173  
03 Apr 2015 03:59 PM |
|
Would it be possible to include a small bit of code that you are using the open the file?
|
|
|
|
MariM Veteran Member
Posts:2396  
|
Deleted User New Member
Posts:  
06 Apr 2015 12:17 PM |
|
Trying on any of the files accessible from the link I posted above, I'm getting "Not a valid h5 file"
result=H5_browser('SVM01_npp_d20120103_t0020159_e0021401_b00945_obpg_ops.h5')
same thing with:
result=H5_parse('SVM01_npp_d20120103_t0020159_e0021401_b00945_obpg_ops.h5',/read)
|
|
|
|
MariM Veteran Member
Posts:2396  
06 Apr 2015 02:13 PM |
|
Do you have access to IDL 8.4? I believe they updated the libraries for HDF5. I downloaded the first file in your link and unpacked the HDF5 files. I could open them without error in IDL 8.4.
|
|
|
|
Zachary Norman Basic Member
Posts:173  
06 Apr 2015 02:13 PM |
|
Matteo,
Try using something like the following and specify the exact file path using root_dir as below. That worked for me.
result=H5_browser(FILEPATH('SVM01_npp_d20120102_t2058156_e2059397_b00943_obpg_ops.h5', root_dir=['filepath goes here']))
|
|
|
|
Deleted User New Member
Posts:  
06 Apr 2015 02:53 PM |
|
Nope, not even including the root_dir works...still complaining that the file is not a valid HDF5 file. Would be nice if I had access to 8.4...
|
|
|
|
Zachary Norman Basic Member
Posts:173  
06 Apr 2015 03:37 PM |
|
Are you using a customized library for the HDF5 functionality? I tested your code with the files in IDL7.1, 8.1, and 8.4.1 and it worked just fine. You may want to re-download the files and unzip them again in case it is corrupted somewhere. You could also to try and use H5_list, Dialog_pickfile() to explicitly choose the file you want to open and see if IDL can at least read the file.
|
|
|
|
Deleted User New Member
Posts:  
06 Apr 2015 04:51 PM |
|
It works on my Mac laptop too (7.1), weird!
I notice now that HDFView doesn't open them either. I had already tried re-downloading and unpacking with both WinZIP and 7-ZIP, to no avail. With Level-2 H5 files I don't have any problem.
No specialized libraries, just H5_parse. Dialog_pickfile() works, H5_LIST still gives me the same error message.
|
|
|
|