X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Apr 2015 01:40 PM by  anon
Can not open HDF5 data
 9 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:55
New Member


--
03 Apr 2015 01:40 PM
    Question: Can not open HDF5 data from the below link http://oceandata.sci.gsfc...v/VIIRS/L1/2012/002/ Windows IDL 8.3

    Deleted User



    New Member


    Posts:55
    New Member


    --
    03 Apr 2015 02:02 PM
    What is the error message you are receiving?

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    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
    Veteran Member


    --
    06 Apr 2015 06:44 AM
    Have you looked at IDL's H5_browser and H5 routines? http://www.exelisvis.com/docs/H5_BROW... http://www.exelisvis.com/docs/routine...

    Deleted User



    New Member


    Posts:
    New Member


    --
    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
    Veteran Member


    --
    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
    Basic Member


    --
    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:
    New Member


    --
    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
    Basic Member


    --
    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:
    New Member


    --
    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.
    You are not authorized to post a reply.