Bytarr? [message #1994] |
Wed, 13 April 1994 17:25 |
yinghe
Messages: 1 Registered: April 1994
|
Junior Member |
|
|
Hi:
A friend of mine ask me the question about using a kind of software
to draw something on computer. Though I am a student in CS dept, I have
no idea about that. Please email me if you can help.
Thanks very much.
ying
Email: yinghe@leland.stanford.edu
Here is more info about the question: .
> Actually I am working on a chaotic pattern problem. By numerical
> calculation, I got the density distribution F, which is a huge 2-d float
> array, as a function of coordinate (X,Y), so I need to associate the colour
> with F in order to show the pattern. I am trying to use IDL's image
> function to do it, but it accepts only bytarr. In fact I just figured
> out that if we could input a fltarr in to IDL, then under the IDL prompt
> we might use cast function BYTE to tranfer it into a bytarr, but another
> problem arises here. As an example, my try.dat is a 500 by 500 flt file,
> I tried to read it in , and the system gave:
> IDL> openr,1,'try.dat'
> IDL> N=200
> IDL> B=fltarr(N,N)
> IDL> Bx=bytarr(N,N)
> IDL> readf,1,B
> % Input line is too long for input buffer of 2048 characters.
> % READF: Error encountered reading from file. Unit: 1
> File: try.dat
> % Execution halted at $MAIN$ (READF).
> Thus I think probably we need to convert the try.dat file into a byte file,
> which will be only of 500 chars per line, before we get into IDL such that
> we can input it but without losing the proper resolution needed.
> So much for now. If you do catch any fellow who is using it, I'll be
> more than happy to get the answer and a set of sample programs including
> the raw data file, the idl command file and maybe the postscript file for
> the result image aand I would really appreciate your help.
>
>
>
|
|
|