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

Home » Public Forums » archive » Re: Need help with HDF_VD_WRITE!!!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Need help with HDF_VD_WRITE!!! [message #32497 is a reply to message #32491] Fri, 11 October 2002 09:03 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
> Brian Huether wrote:
>
> I thought I had it. But man this is so complicated. Say I have one
> column of data with one field. All the following fail:
>
> IDL> fileid=HDF_OPEN('e:\huether\test7.hdf',/CREATE)
> IDL> Vdat = HDF_VD_ATTACH(fileID, -1, /WRITE)
> IDL> HDF_VD_WRITE, Vdat, 'PX', indgen(1,10)
[stuff deleted]

Have you considered using the HDF Scientific Data Set model instead?
It's much more flexible and easy to use IMHO. For example:

;- Create the file
hdfid = hdf_sd_start('test.hdf', /create)
varid = hdf_sd_create(hdfid, 'SS', [10, 10], /float)
hdf_sd_adddata, varid, findgen(10, 10)
hdf_sd_endaccess, varid
hdf_sd_end, hdfid

;- Read the file
hdfid = hdf_sd_start('test.hdf')
index = hdf_sd_nametoindex(hdfid, 'SS')
varid = hdf_sd_select(hdfid, index)
hdf_sd_getdata, varid, data
hdf_sd_endaccess, varid
hdf_sd_end, hdfid

For more details see my book Chapter 4, pp. 182-192, or the HDF routines
at

http://www.gumley.com/PIP/Free_Software.html

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: varimax rotation
Next Topic: droplist doesn't work under Linux

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

Current Time: Sat Oct 11 15:07:39 PDT 2025

Total time taken to generate the page: 0.40396 seconds