I am doing project in remote sensing. Working with HDF on matlab is very easy. But i want to implement this with grid computing (Ubuntu). So i am trying with octave. I have HDF4 files of chlorophyll. Normal Image processing will be done by octave easily. But i want to know about hdfread, hdftool in Octave. I am added a image packages within octave image. Can anyone tell me how to read and how to work with hdf data's. Is there any package to add. Please let me know about this.
For HDF5, Octave can load it without additional package.
For HDF4, you can convert it to NetCDF file using h4tonccf or OPeNDDAP hdf4_handler, and then load it via NetCDF call through the Octave's octcdf package. We provide a complete example with full Octave source codes here:
http://hdfeos.org/software/octave.php
The below is a sample NASA HDF4 plot created by Octave via OPeNDAP.
The hdf specific functions haven't been implemented in Octave yet. However, Octave can handle that format with the more standard load
command. Just do load path-to-hdf-file
and you'll load a struct in memory.
See these posts on the help mailing archive: How to read HDF data, and read data subsets from HDF5.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With