'Reading HDF files and Converting them into Binary in Bash/Mac command line [closed]
I am having trouble downloading hdf files from a directory in an ssh server and opening with HDFView 3.0 on Mac.
I used the sftp to connect to the server and then navigated to the directory with the files using the Terminal. Afterwards I did mget *.hdf to download all the files. However, the files cannot be opened in the HDFView.
Does anyone know what might be causing this issue?
Solution 1:[1]
Stack Overflow is for coding questions. To get started, you need to understand HDF5 and the the data schema for FPAR. Begin with "Introduction to HDF5" at the HDF Group: Learning HDF5. Once you understand groups and datasets, there are several ways to view the schema:
- HDFView: There is a MacOS build for 3.0 "Release 1". You need to create a (free) account with The HDF Group and login to access it. Ref: HDFView Downloads
- h5dump utility: This is a command line utility. I think you need to install HDF5 to get it. Ref: HDF5 Downloads
- ptdump utility: This is a command line utility that is part of PyTables package (aka tables).
- You can also use Python packages h5py or PyTables to open and query the file for basic schema info (the group and dataset names and contents).
You will have to invest some time before you start coding. This should get you started.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Glorfindel |