[ncl-talk] max index on a single dimension for a multidimensional array without loop

Matthew Fearon Matthew.Fearon at dri.edu
Wed Sep 9 20:08:40 MDT 2015


Dear NCL Users,

Trying to get the index of the maximum value on a single dimension as part of a multidimensional array. The array is data(time, lat, lon) where nlat x nlon is 400x500 and ntime=24. Would like the maximum over the time dimension for each grid cell or lat/long. Has anymore performed this without a loop over nlat/nlon ?

Making the array 1D (and using ind_resolve) allows me to get the max inds per dimension over the whole array, which isn't what I need.

Any suggestions would be greatly appreciated.
thanks,
Matt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150910/db4c82e7/attachment.html 


More information about the ncl-talk mailing list