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

Home » Public Forums » archive » IDL color palette and tvrd
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL color palette and tvrd [message #1635] Fri, 07 January 1994 12:26
fisher is currently offline  fisher
Messages: 3
Registered: January 1994
Junior Member
Friday, January 7, 1994

I am running IDL for the Macintosh V3.5.1 and am having trouble getting
tvrd to work correctly. Let me briefly explain exactly what I am doing.

I have a radar image that is in cartesian format (384x384 bytes).
I want to overlay this image on a canvas (a 640x480 image) and then
annotate it with text. However, simply placing the text on the image does
not update the canvas array and hence I am trying load the current window
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

Any help will be greatly appreciated.

Dave
wolff@echo.gsfc.nasa.gov



+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+
+ David B. Wolff NASA/Goddard Space Flight Center +
+ Pho: (301) 286-2120 TRMM Office, Code 910.1 +
+ FaX: (301) 286-1626 Greenbelt, Maryland 20771 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+
+ wolff@echo.gsfc.nasa.gov +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Reading string data from binary f77 files?
Next Topic: How do I zoom in on a 3d data set?

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

Current Time: Sat Oct 11 12:23:12 PDT 2025

Total time taken to generate the page: 1.11853 seconds