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

Home » Public Forums » archive » Re: Colour maps ... (BYTE_SCALE)
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: Colour maps ... (BYTE_SCALE) [message #14659] Mon, 15 March 1999 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
David Foster wrote:
>

>
> I wrote BYTE_SCALE() because I wanted to be able to specify a minimum
> value for scaling as well as maximum.

If this is the only reason for a new routine BYTE_SCALE: why don't you
call

im = bytscl(data, top=cmax-cmin)+cmin

That's what I do when I need a minimum value.

Just 1/2 cent,
Regards,
Martin.

--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Previous Topic: Building sharable object libraries for CALL_EXTERNAL
Next Topic: Re: Strange Bug with numeric double constants

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

Current Time: Wed Oct 08 15:34:42 PDT 2025

Total time taken to generate the page: 0.00452 seconds