[ncl-talk] Feature request: Negative indexes

David Brown dbrown at ucar.edu
Tue May 10 18:17:16 MDT 2016


I agree that negative indexes would be great and we don't know what
the downsides are either, although we would probably find out if we
tried to implement them.
 -dave

On Tue, May 10, 2016 at 2:41 PM, Alan Brammer <abrammer at albany.edu> wrote:
> Not sure if this has been brought up before but I’d really like the ability to fetch the last index of an array using x(-1), or similarly the last n of the array x(-n:)
>
> Being in a mostly javascript/python world outside of NCL negative indexes have been quite useful.
>
> Any plans or possibility of this becoming a thing, or are there downsides I’m not thinking of?
>
> Thanks,
>
> Alan
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk


More information about the ncl-talk mailing list