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

Home » Public Forums » archive » Re: tv and tvscl problems
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: tv and tvscl problems [message #47509] Tue, 14 February 2006 13:17
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JJMeyers2@gmail.com writes:

> I am trying to display an image using tv and atv and I have some
> problems.
> First, I read my .fits file using readfits:
>
> device,decomposed=0 (because I have a 24-bit display mode)
> IDL>img1=readfits('example.fits',h)
>
> and then I try to use tv:
> IDL>tv,img1
> What I get from the tv command is:
> % Program caused arithmetic error: Floating illegal operand
> and a small part of my image appears zoomed in, in the idl window but
> not the whole image.
> When I type:
> IDL>tvscl,img1
> the result is that my idl window turns completely white and nothing
> shows up on it.
>
> Any suggestions on what might be the problem?

Sounds to me like your image has values in it you
weren't expecting. What are the minimum and maximum
values in the data? Do you, perhaps, need to byte swap
your data? (This is the usual case when the data is
SO not what you expect!)

From your description, it sounds like there is a VERY
low value in this data set, so that when the data is
scaled, most of the data you are interested in a
scrunched into the lightest possible colors. Learn
to scale the data yourself with BYTSCL, and become
familiar with the MAX and MIN keyword. They are your
friends. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: tv and tvscl problems
Next Topic: Scope_VarFetch Bug or Feature?

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

Current Time: Sat Oct 11 11:14:40 PDT 2025

Total time taken to generate the page: 0.95898 seconds