[ncl-talk] first index in the sequence,

Xi Chang xi.chang01 at gmail.com
Sat May 6 15:51:00 MDT 2017


Dear Karin,

I meant multiple first index in the sequence. Your example is only work for
the
first index in the first sequence. The values -999 separated each sequence.
Can you suggest me something?

Xi

On Sat, May 6, 2017 at 8:25 AM, Karin Meier-Fleischer <
meier-fleischer at dkrz.de> wrote:

> 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/0909d2dc/attachment.html 


More information about the ncl-talk mailing list