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

Home » Public Forums » archive » Having trouble with code for data to image.
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: Having trouble with code for data to image. [message #64103 is a reply to message #63985] Wed, 26 November 2008 12:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mbweller@gmail.com writes:

> In trying to run:
>
> erase
> loadct, 10 ; or whatever you want - the Brewer tables would probably
> be useful
> location =3D [0.1,0.1,0.9,0.9]
> tvimage, bytscl(image,top=3D250)+4, position=3Dlocation
> plot, /noerase, /nodata, [0],[0], position=3Dlocation, xrange=3Dxrange,
> yrange=3Dyrange
>
> I get an error that I don't quite understand (probably my relative
> inexperience)>
> Is this a problem within TVImage, or something I failed to do
> correctly?

It looks to me like you don't have the Coyote library on
your IDL path, since it looks like FSC_COLOR is not being
found. (It is called from inside TVIMAGE on line 662.)

I would download the entire library, and add it to your
IDL path. Instructions for doing so can be found here:

http://www.dfanning.com/documents/programs.html

Note, too, that if you want to put axes around your image,
it is quite easy to do it directly with TVIMAGE. You don't
need to bother with the plot command. You could, for example,
do this:

tvimage, bytscl(image, top=250, position=location, /axes, $
xrange=xrange, yrange=yrange

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Memory allocation problem
Next Topic: Re: inverse gradient

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

Current Time: Fri Oct 10 19:40:20 PDT 2025

Total time taken to generate the page: 0.96211 seconds