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

Home » Public Forums » archive » divide by zero problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
divide by zero problems [message #15362] Tue, 11 May 1999 00:00 Go to previous message
Mark Rehbein is currently offline  Mark Rehbein
Messages: 8
Registered: January 1999
Junior Member
Hi,

I'm having problems with floating point divide by zero's. The
application I'm using IDL for is image composition and masking.
Basically, my images have cloud pixels that I have changed to a zero
value. I also have a mask of the image that has values 1 for good pixel
and 0 for bad pixels (cloud). I then add all my images together to get
a "sum image" and add all my masks together to get a "sum mask".

Now to composite or average the images I do the following:

composite=sum image/ sum mask.

sometimes my images are very cloudy and as such my "sum mask" has zero's
in it and likewise for my "sum image". So I get divide by zero's and
NaN's in my resultant composite image. In fact I get whole image of
NaN's in my composite even though my sum image and sum mask have decent
values in them.

I'm using IDL 5.2 on UNIX box running solaris 2.6. Can anyone help?

please email me

mrehbein@aims.gov.au

Thanks in advance

Mark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Variable stride in array indices
Next Topic: graphic formats

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

Current Time: Wed Oct 08 15:32:50 PDT 2025

Total time taken to generate the page: 0.00575 seconds