[Numpy-discussion] find location of maximum values

questions anon questions.anon at gmail.com
Tue Jan 3 23:10:43 EST 2012

Thanks for your responses but I am still having difficuties with this
problem. Using argmax gives me one very large value and I am not sure what
it is.
There shouldn't be any issues with the shape. The latitude and longitude
are the same shape always (covering a state) and the temperature (TSFC)
data are hourly for a whole month.

Are there any other ideas for finding the location and time of the maximum
value in an array?

On Wed, Dec 21, 2011 at 3:38 PM, Benjamin Root <ben.root at ou.edu> wrote:

> On Tuesday, December 20, 2011, questions anon <questions.anon at gmail.com>
> wrote:
> > ok thanks, a quick try at using it resulted in:
> > IndexError: index out of bounds
> > but I may need to do abit more investigating to understand how it works.
> > thanks
> The assumption is that these arrays are all the same shape.  If not, then
> extra work is needed to figure out how to map indices of the temperature
> array to the indices of the lat and Lon arrays.
> Ben Root
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120104/67a4e60b/attachment.html>

More information about the NumPy-Discussion mailing list