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

Home » Public Forums » archive » Re: unwanted color bands in image display
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: unwanted color bands in image display [message #31329 is a reply to message #31328] Wed, 03 July 2002 10:57 Go to previous messageGo to previous message
astib is currently offline  astib
Messages: 15
Registered: June 2002
Junior Member
Hi,

Thanks for the replies. I have faced this problem both on Linux/Unix
Sun machines and Macintosh. Thanks Liam for suggesting patch for
Linux.

In the code color table is loaded after "SET_PLOT". This is the data
converted to ASCII format from binary files and then plotted in
different plots. But this problem is only in TV,TVSCL and viewing PS
files made with the code. The lines/bands colors are not constant,
although red is prominent. The graphics part of the code is -

CASE outtype(plotype-1) OF
'BWPS' : BEGIN
SET_PLOT,'PS'
fileN = 'psfile'
fn = 'B&WVec'+fileN+'.ps'
DEVICE, /COLOR, BITS=8, filename=fn, /landscape, YOFFSET=26.5, $
YSIZE=19.0, XSIZE=24.0, /HELVETICA, /BOLD, bits_per_pixel =
8
END

'COLRPS' : BEGIN
SET_PLOT,'PS'
fn = ' '
read,fn,prompt='Enter name of output file:'
device, /portrait,/color,bits=8,xoffset=2.,yoffset=2.,
$
xsize=17.,ysize=25.,file=fn
END

'SCR' : BEGIN
PRINT, ' Screen plot'
SET_PLOT,'MAC'
LOADCT,25 ; 25=MAC, 2=G R Bl Wh
WINDOW, colors=16, Title='IDI Winds', xsize=760, ysize=520
TVLCT, [0,255,0,0], [0,0,255,0], [0,0,0,255]
END

Again, this is somebody else's code. But I have noticed this
behaviour earlier also. I was using an IDL program called SIS_Browser.
There I encountered this thing for first time, and I thought they are
part of the data ! Then I used TV procedures in my code and got
similar red bands, so I gave up and used LIVE TOOLS instead. I think
it has to do with which color table I load, because bands change color
sometimes if I change color table. Any suggestions ?

Thanks a lot,
Asti
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Inside rectangle
Next Topic: Re: widget_slider with odd integers

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

Current Time: Sun Oct 12 02:07:22 PDT 2025

Total time taken to generate the page: 0.48828 seconds