Re: Help with HDF Format [message #35201 is a reply to message #35185] |
Thu, 15 May 2003 14:20  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Gautam Bisht (bishtgautam@yahoo.com) writes:
> I am a new user of IDL and facing trouble trying to open MODIS images
> and its products, which are in HDF and HDF EOS format. I am able to
> see that ENVI can open those files but I want to write a code to
> extract the values in those files. Could someone help me out with
> this? maybe by pointing out some sources where I could get more info.
Hopefully those MODIS files are in HDF5 format, so
you can use the new H5_BROWSER function to look at them.
If not (and the MODIS files I have hanging around here
are not), then you will have to use the clunkier
HDF_BROWSER to read them. The H5_BROWSER is slick
and works the way I expect it to. (Did RSI write this!?)
The HDF_BROWSER works too, but I always have to muck
around with it to get what I want. (The boys who
wrote this didn't take that class on GUI design, I
guess.)
If you can't get what you want that way, I found a file
named MAS_READ on one of the MODIS web pages, which
reads "a single band of MODIS Airborne Simulator (MAS)
image data from a Level 1B HDF file". You can probably
get the crux of the HDF matter from this file. It really
is not too hard to figure it all out, at least if you
start with a good example.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|