[Numpy-discussion] find location of maximum values
Tue Jan 3 22:10:43 CST 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 <firstname.lastname@example.org> wrote:
> On Tuesday, December 20, 2011, questions anon <email@example.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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion