[Numpy-discussion] find location of maximum values
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
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>
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion