Reference Last Element of Array

From: Lunde, Bruce N CIV NAVOCEANO, NP1 <bruce.lunde_at_nyahnyahspammersnyahnyah>
Date: Wed, 1 Jul 2009 10:14:08 -0400


Just wanted to confirm that to reference
the last element of an array, there is
no simple trick like using "-1" for the
indices (e.g. last_element = myarray(-1)).

You must always use dimsizes(myarray) and
pick out the appropriate element of that
to find the last element.

Thanks, Bruce

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Wed Jul 01 2009 - 08:14:08 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 02 2009 - 11:39:37 MDT