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

Home » Public Forums » archive » Re: Oh what is wrong with WHERE() ?
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: Oh what is wrong with WHERE() ? [message #48562] Mon, 01 May 2006 10:02 Go to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"Sheldon" <shejo284@gmail.com> wrote in message
news:1146327351.938523.112920@e56g2000cwe.googlegroups.com.. .
> Hi Bob,

> IF count_m GE count_p THEN nodata_tot = nodata_m ELSE nodata_tot =
> nodata_p
> The results showed that these two amounts were identical:
> 1443953
> 1443953

Just a thought:

Even though the total is equal, it may be that notdata_m is not
exactly equal to nodata_p.
A short example of what I mean.
p = [0,1,0]
m = [1,0,0]

nodata_p = (where p eq 1, count_p)
nodata_m = (where m eq 1, count_m)
IF count_m GE count_p THEN nodata_tot = nodata_m ELSE nodata_tot =
nodata_p

p[nodata_tot] = 1
m[nodata_tot] = 1

so your results are now:
p = [1,1,0]
m = [1,0,0]

(Hence the missing pixel in p is due to the fact that your 'p' had
a '1' in a place outside of 'nodata_tot'.)

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem with for-slope
Next Topic: Grid file manipulation (.grd)

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

Current Time: Wed Oct 08 19:12:21 PDT 2025

Total time taken to generate the page: 0.00384 seconds