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

Home » Public Forums » archive » Re: IDL color palette and tvrd
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: IDL color palette and tvrd [message #1633] Mon, 10 January 1994 07:59
ian is currently offline  ian
Messages: 26
Registered: February 1992
Junior Member
Word has it that fisher@echo.gsfc.nasa.gov (Brad L. Fisher) may have said:
> into a new array and then display. Only problem is is that the colors come
> out wrong. It seems that maybe tv is somehow scaling the data into the new
> array this ruining my indexed color image.
> .
> .
> tvlct,r,g,b ; r,g,b already read in from a file
> radar_img(0:383,0:383)
> canvas (10:393,86:480) = radar_img
> tv,canvas
> xyouts,400,100,"This is text"
> tvrd(),canvas2
> tv,canvas2
> .
> .
> end

Hmmm. What data types are radar_img and canvas? I'm just wondering if
you're getting "data wrap" on your data. As in, if your data goes over
255, then it is displayed mod 256. The tvrd() will just read the values
on the screen, not the actual data values. First thing I'd try would be
to use "tv, bytscl(canvas,min=???,max=???)", where the ??? are minimum
and maximum values that make it look good, in place of "tv,canvas". This
will set all of the data into the 0-255 range.

+-Ian Novack (Particle Man and Comatose Reader)------ian@gomez.jpl.nasa.gov---+
| "My whole problem is my lips move when Jet Propulsion Lab |
| I think." -- Calvin, after getting slugged Pasadena, CA |
+---Disclaimer: Had this been an actual opinion, it would still be mine.------+
[Message index]
 
Read Message
Previous Topic: overlapping plots
Next Topic: Error messages about editable text widgets on Sun workstation

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

Current Time: Fri Oct 10 13:45:48 PDT 2025

Total time taken to generate the page: 1.52145 seconds