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

Home » Public Forums » archive » WRITING HDF FILES
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
WRITING HDF FILES [message #34188] Thu, 20 February 2003 19:07
MC is currently offline  MC
Messages: 50
Registered: September 1996
Member
I am new to HDF.

In c:\'file1.txt'

'file1' contains over 1.3 million lines of data. Each line containing one
number.

PRO write_my_hdf
an_array=make_array([108,80,159],/float) ;big enough to hold all in
'file1'
sd_id=HDF_SD_START('c:\file1.hdf',/CREATE)
sds_id=HDF_SD_CREATE(sd_id,'my data',[108,80,159],/FLOAT)
HDF_SD_ADDDATA, sds_id, an_array
HDF_SD_ENDACCESS,sds_id
HDF_SD_END,sd_id
END

The above was modified from an example in IDL.

It came back with: "The array is not big enough".

Why?

Thanks in advance,
Mark
[Message index]
 
Read Message
Previous Topic: Re: Sort an Array of Structures...
Next Topic: Re: WRITING HDF FILES

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

Current Time: Fri Oct 10 15:32:00 PDT 2025

Total time taken to generate the page: 3.04180 seconds