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

Home » Public Forums » archive » Re: BYTSCL and NAN keyword
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: BYTSCL and NAN keyword [message #38352 is a reply to message #38276] Wed, 03 March 2004 07:26 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <ond67vf8sb.fsf@cow.physics.wisc.edu>,
Craig Markwardt <craigmnet@REMOVEcow.physics.wisc.edu> wrote:

> How about this non-WHERE approach?
> bb = bytscl(x, ...) + (finite(x) EQ 0)*255b

Clever idea (JD also)! The logical not operator (~) will work as well

bb = BYTSCL(x, ..., /NAN) + BYTE(255*(~FINITE(co)))

While not mandatory, the BYTE function ensures that the result bb is
type BYTE (since FINITE returns a LONG).

Ken
[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: Re: 2D-fit
Next Topic: FastDL: An MPI interface for IDL

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

Current Time: Sat Nov 29 00:19:51 PST 2025

Total time taken to generate the page: 0.56150 seconds