comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Read HDF format file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Read HDF format file [message #11067] Tue, 03 March 1998 00:00
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Sophie Fabre wrote:
> I have a file in HDF format.
> What are the functions in IDL langage that will allow me to read this
> file ?

In IDL 5.0.3 for Unix, the example program

/usr/local/rsi/idl_5.0.3/examples/misc/sdf/hdf_info.pro

may be used to get a rough idea of what is contained in a HDF file, e.g.

IDL> hdf_info, 'myfile.hdf'

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
Re: Read HDF format file [message #11074 is a reply to message #11067] Tue, 03 March 1998 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
Sophie Fabre wrote:
>
> Hi,
>
> I have a file in HDF format.
> What are the functions in IDL langage that will allow me to read this
> file ?


It all depends upon what type of data model was used in creating the
HDF file. Most likely the scientific data model, but it could be
any one of 8 data models. Here is a helpful list from the on-line
documentation along with the routine prefixes used to access the data...

24-bit raster HDF_DF24_
annotation data HDF_DFAN_
palette data HDF_DFP_
8-bit raster HDF_DFR8_
scientific data HDF_DFSD_
multi-file scientific data HDF_SD_
VData HDF_VD_
VGroup HDF_VG_

'Hope this helps.

--
Andrew F. Loughe |
afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 |
http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707
fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
Re: Read HDF format file [message #11076 is a reply to message #11067] Tue, 03 March 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Sophie Fabre (sfabre@onecert.fr) writes:

> I have a file in HDF format.
> What are the functions in IDL langage that will allow me to read this
> file ?

There are several. Certainly too many to explain in a newsgroup
article. You can get a table of the functions and two
example programs that show you how to use them in the
File I/O section of the Tips on my web page.

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cluster analysis code
Next Topic: Function names (was mean and sdev)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 06:02:27 PDT 2025

Total time taken to generate the page: 1.51906 seconds