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

Home » Public Forums » archive » Help in Image Analysis
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: Help in Image Analysis [message #47720 is a reply to message #47615] Thu, 23 February 2006 01:04 Go to previous messageGo to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
Bharani wrote:
> I have a File with extension .RKD extesion..the Size of this file is
> Approximately 10MB.. this is the Data File that i have with me ... and
> i want to know how i can read this data File into IDL and then Proceed
> further....

Find out the format of the data points (is it bytes, unsigned 2 byte
integers, IEEE floating point or whatever) and allocate an array big
enough for the file (i.e., if it's got 10 million byte size data points
you'll want data=BYTARR(10000000), if it's 5 million two-byte signed
integers you'll want data=INTARR(5000000) and so on).

Then use OPENR to open the file for reading and use READU to put the
contents of the file in the array (don't forget to CLOSE the data file).
Once it's there you have your data in IDL and can start exploring.
You may want to use REFORM to make the 1D array you have to start with
either 2 or 3 D as appropriate.

Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idl array operations
Next Topic: Re: Problems compiling shared libraries

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

Current Time: Sat Oct 11 10:22:28 PDT 2025

Total time taken to generate the page: 1.44393 seconds