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

Home » Public Forums » archive » Re: save an IDLanROI to file? (newbie question)
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: save an IDLanROI to file? (newbie question) [message #40776] Thu, 26 August 2004 08:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeff writes:

> Saving the data size info before the actual data is a neat trick, wish
> I'd thought of it :)

Well, after I hit the SEND button I realized I really
didn't show you the neatest trick of all. The data
array should really be created with the Make_Array
function like this:

OpenR, lun, filename, /Get_LUN
sizeInfo = LonArr(5)
ReadU, lun, sizeInfo
data = Make_Array(Size=sizeInfo)
ReadU, lun, data
Free_Lun, lun

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: linetool for measuring the distance between 2 points
Next Topic: Re: linetool for measuring the distance between 2 points

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

Current Time: Sat Nov 29 11:06:56 PST 2025

Total time taken to generate the page: 0.64237 seconds