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

Home » Public Forums » archive » Re: Is there no NULL in IDL??
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: Is there no NULL in IDL?? [message #30842 is a reply to message #30839] Mon, 20 May 2002 15:42 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
Sean Raffuse wrote:

> Am I just blind? What can I use for a null value when my data type is
> integer? Please don't tell me zero.

I can think of 4 options, each of which might be best in particular
situations:

(1) Use a known "non-physical" value (e.g. -32767) to flag nulls. (But
be careful when applying numeric operations on the data .)

(2) Convert to floating point and use NAN values to represent nulls.

(3) Carry around an extra byte mask array indicating which pixels are
null.

(4) Carry around a "null pixel list" vector , i.e. a vector of 1-d
indicies indicating which pixels in the data are null.

--Wayne Landsman landsman@mpb.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Object Programming in IDL
Next Topic: Re: Inconsistent Mean Calculation

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

Current Time: Wed Oct 08 11:11:35 PDT 2025

Total time taken to generate the page: 0.00402 seconds