[ncl-talk] first index in the sequence,
Karin Meier-Fleischer
meier-fleischer at dkrz.de
Sat May 6 07:25:48 MDT 2017
Hi Xi,
I think you want to do something like
> x=(/2.1, 3.2, 4.3, -999, -999, 7.6, 8.7, 9.8/)
> x at _FillValue=-999
first_index = x(0)
print(x(0))
Bye,
Karin
> Am 05.05.2017 um 17:48 schrieb Xi Chang <xi.chang01 at gmail.com>:
>
> Dear NCL,
>
> Could you suggest me how to get the first index in the sequence?
> for instance:
>
> x=(/2.1, 3.2, 4.3, -999, -999, 7.6, 8.7, 9.8/)
> x at _FillValue=-999
>
> the first index in the sequence will be
> (0) 2.1 and
> (5) 7.6
>
> I do appreaciate for your help.
>
> Best,
> Xi
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170506/28a0c247/attachment.html
More information about the ncl-talk
mailing list