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

Home » Public Forums » archive » Difficulty with N_ELEMENTS command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Difficulty with N_ELEMENTS command [message #79239] Thu, 09 February 2012 20:03
Andrew King is currently offline  Andrew King
Messages: 2
Registered: February 2012
Junior Member
Hi.

I'm trying to create an array of the number of elements that satisfy a
certain criterion as below.

FOR m=0,nyears-1 DO BEGIN
exceed_freq(m)=N_ELEMENTS(WHERE(precip_day(m,*) gt smoothed(*)))
ENDFOR

The problem I have is that for some years in my program there are no
elements that satisfy this criterion, however the value returned in
the array 'exceed_freq' is 1 instead of 0.

I would appreciate any comments.

Thanks,
Andrew
[Message index]
 
Read Message
Previous Topic: Re: Counting Clicks in List Widgets
Next Topic: SPLINE function

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

Current Time: Wed Oct 08 18:22:23 PDT 2025

Total time taken to generate the page: 0.00242 seconds