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

Home » Public Forums » archive » Re: Function BYTSCL
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: Function BYTSCL [message #24629 is a reply to message #24627] Tue, 10 April 2001 16:43 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> What BYTSCL does is take the data, finds the minimum
> and maximum of the data, then linearly maps the min
> and max to 0 and 255. This is the scaling function.
> Then, it adds a translation to the scaled vector, so
> that the minimum value is set to zero. Then, it converts
> the whole thing to BYTE type.

I was driving home from the bookstore trying to think
of an excuse to give my wife for why I was 45 minutes
late picking up my son from school, when it suddenly
occurred to me that this problem is *exactly* like
trying to convert Fahrenheit to Celsius degrees!

Funny how and when these things come to you, isn't it. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: sec : U Re: Dual head displays
Next Topic: Re: Error on shutdown of widget !@$%

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

Current Time: Wed Oct 08 19:24:27 PDT 2025

Total time taken to generate the page: 0.12103 seconds