<div dir="ltr">Thanks NCL and Michael,<div><br></div><div>Do you know the source of this following <b>error: fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function</b></div>
<div><br></div><div><div>do j=0,173</div><div> indices=ind(data1(j,:).lt.0.)</div><div> first=indices(0) </div><div> if(first.gt.121) then</div><div> date(j)=(first-121)+365</div><div> else</div><div> date(j)=first+244</div>
<div> end if</div><div> delete(indices)</div><div> delete(first)</div><div>end do</div></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 5:40 AM, Michael Notaro <span dir="ltr"><<a href="mailto:mnotaro@wisc.edu" target="_blank">mnotaro@wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think this should work.<br>
<br>
<br>
Say, the daily time series is x(0:364).<br>
<br>
indices=ind(x.lt.0.)<br>
first=indices(0)<br>
<div class=""><br>
<br>
<br>
<br>
On 08/21/14, Xi Chang wrote:<br>
> Hallo NCL people,<br>
><br>
</div>> I have a question, i have a daily data 1D (point),, i&#39;d like to get the index which has the first negative value and save the index per year. if i have 20 years, then i&#39;ll have 20 indices which are associated with first negative value each year.<br>
><br>
><br>
> Thank you.<br>
</blockquote></div><br></div></div>