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

Home » Public Forums » archive » Re: NULL value 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: NULL value in IDL ? [message #42323 is a reply to message #42321] Tue, 01 February 2005 11:30 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jerome Colin writes:

> Is there in IDL a way to give a variable the value NULL, meaning 'no data' ?
> My problem is that I use REBIN() to reduce an image, but some parts of
> this image do not contain information, even is the value is zero. These
> zero-value pixels are hence taken into account in the REBIN()
> calculation, and that's what I would like to avoid.

REBIN seems to work OK with NANs:

a = findgen(5, 5)
a[1,1] = !Values.F_NAN
b = Rebin(a, 10, 10)
print, b

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: VoIP User Group
Next Topic: How to keep image ratio in Shade_surf

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

Current Time: Mon Apr 27 21:13:30 PDT 2026

Total time taken to generate the page: 1.67777 seconds