Re: hdf5 write sample code [message #42206] |
Tue, 18 January 2005 10:34 |
eddie haskell
Messages: 29 Registered: September 1998
|
Junior Member |
|
|
> IDL has had the HDF 5 read routines since IDL 5.6. Just recently, RSI
> put a DLM on their website which allows you to actually write HDF 5
> files. The DLM drops into an existing IDL 6.1 installation. The more
> exact link is here: http://www.rsinc.com/idl/addons_hdf5.asp
If you downloaded the HDF5 Write DLM, a help file
"HDF5_Write_Support.pdf" should have been installed in your
/RSI/IDL61/help/ directory. There are examples in there showing how to
create and write to HDF5 files.
Cheers,
eddie
|
|
|
Re: hdf5 write sample code [message #42210 is a reply to message #42206] |
Tue, 18 January 2005 09:11  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
>> I don't use HDF, but it appears that version 5 (of hdf) is not available
>> in the regular install of IDL v6.1.1. If you go to http://rsinc.com/ you
>> can find that you
>> can download the hdf 5 DLM.
>
>
> The IDL on-line documentation lists a bunch of routines
> named H5****** that appear to be routines to read HDF5
> files. I don't see anything that looks like it allows
> you to write these kinds of files.
IDL has had the HDF 5 read routines since IDL 5.6. Just recently, RSI
put a DLM on their website which allows you to actually write HDF 5
files. The DLM drops into an existing IDL 6.1 installation. The more
exact link is here: http://www.rsinc.com/idl/addons_hdf5.asp
-Mike
|
|
|
Re: hdf5 write sample code [message #42212 is a reply to message #42210] |
Tue, 18 January 2005 08:59  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
R.G. Stockwell writes:
> I don't use HDF, but it appears that version 5 (of hdf) is not available
> in the regular install of IDL v6.1.1. If you go to http://rsinc.com/ you
> can find that you
> can download the hdf 5 DLM.
The IDL on-line documentation lists a bunch of routines
named H5****** that appear to be routines to read HDF5
files. I don't see anything that looks like it allows
you to write these kinds of files.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: hdf5 write sample code [message #42213 is a reply to message #42212] |
Tue, 18 January 2005 08:52  |
R.G.Stockwell
Messages: 163 Registered: October 2004
|
Senior Member |
|
|
"vinesh gautam" <vineshgautam@gmail.com> wrote in message
news:f243c15.0501180028.41b959df@posting.google.com...
> Hi to all
> I am new to IDL. I want to extract data from a file and want to put
> these data to HDF5 file so that data can be showen in like
> spreadsheet. Can anybody suggest me or give me any example code
> regarding this.
>
> Regards
> Vineshgautam@gmail.com
Hello,
from IDL you can run the following commands to see what hdf library you
have.
HDF_LIB_INFO, MAJOR=MAJOR, MINOR=MINOR, VERSION=VER, RELEASE=REL
PRINT, 'IDL ', !version.release, ' uses HDF Library ', $
MAJOR, MINOR, REL, FORMAT='(A,A,A,I1,".",I1,"r",I1,A)'
PRINT, VER
end
Here is the result I get
IDL 6.1.1 uses HDF Library 4.1r5
NCSA HDF Version 4.1 Release 5, November 5, 2001
I don't use HDF, but it appears that version 5 (of hdf) is not available
in the regular install of IDL v6.1.1. If you go to http://rsinc.com/ you
can find that you
can download the hdf 5 DLM.
Anyways, there is some example code at
c:\RSI\IDL61\examples\data_access\sdf\hdf_info.pro
also look at
c:\RSI\IDL61\examples\data_access\sdf\hdf_rdwr.pro
(these paths are a likely one for a ms windows machine, if you have a
different platform, the full path will be slightly different)
Cheers,
bob
|
|
|