Re: Having trouble with code for data to image. [message #64103 is a reply to message #63985] |
Wed, 26 November 2008 12:50   |
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.")
|
|
|