Re: Matlab to IDL [message #36620 is a reply to message #12606] |
Sun, 12 October 2003 16:12   |
andrew.cool
Messages: 47 Registered: July 2003
|
Member |
|
|
dino.nicola@libero.it (dino nicola) wrote in message news:<688447c0.0310121046.298717c5@posting.google.com>...
> I forgot to say that when I run the code I get this message if I use
> the TVSCL command:
>
> % Program caused arithmetic error: Floating underflow
> % Program caused arithmetic error: Floating overflow
> % Program caused arithmetic error: Floating illegal operand
>
> while I get this one using TV:
>
> % Program caused arithmetic error: Floating underflow
> % Program caused arithmetic error: Floating illegal operand
>
> Don't know if this makes sense but I' m just a beginner in IDL. Thank
> you.
Hi Dino,
How about trying this snippet of code that generates some dummy data.
On my Windows 2000 machine running IDL 6.0 it produces a window of
skewed rainbow coloured contours.
pro pcon
condensor = DIST(1025,512)
openw,lun,'c:\test.sdt',/get
writeu,lun,condensor
free_lun,lun
file='c:\test.sdt'
rad=fltarr(1024,512)
openr,lun,file,/get_lun
;point_lun,lun,0
readu,lun,rad
close,lun
window,xs=1024,ys=512
device,decomposed=0
loadct,38
tvscl,rad
end
Also, note that you need to either :-
a. specifically size the window to your data,
e.g. window,xsize=1024,ysize=512 to see all your consensor image, or
b. reduce the condensor array to the default window size using the
Congrid command.
If you don't get the same effect, there's something deeply wrong!
Perhaps your file doesn't contain what you think it contains!
Good Luck,
Andrew
------------------------------------------------------------ -------------------
Andrew D. Cool
Electromagnetics & Propagation Group
Intelligence, Surveillance & Reconnaissance Division
Defence Science & Technology Organisation
PO Box 1500, Edinburgh
South Australia 5111
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ -------------------
|
|
|