<div dir="ltr">Hi NCL community,<div><br></div><div>Is there anyone who can help me on how to return the first index of each sequence in 1D data?</div><div>For example,</div><div><br></div><div>x = (/-999,-999,-999,-999,1,1,1,1,1,-999,-999,-999,1,1,1,-999,1,1,1/)</div><div>x@_FillValue=-999<br></div><div><br></div><div>There are 3 sequences of data in that 1D time series, how could I get the first index of each sequence, so that the answer would be:</div><div><br></div><div>(0)     4 </div><div>(1) 12 </div><div>(2)    16 </div><div><br></div><div>Thanks </div><div>Chang</div><div><br></div></div>