thanks for the responses.
Unfortunately they are not matching shapes
print TSFC.shape, TIME.shape, LAT.shape, LON.shape
(721, 106, 193) (721,) (106,) (193,)
So I still receive index out of bounds error:
tmax=TSFC.max(axis=0)
numpy array of max values for the month
maxindex=tmax.argmax()
2928
On Monday, January 9, 2012, questions anon questions.a...@gmail.com wrote:
thanks for the responses.
Unfortunately they are not matching shapes
print TSFC.shape, TIME.shape, LAT.shape, LON.shape
(721, 106, 193) (721,) (106,) (193,)
So I still receive index out of bounds error:
thank you, I seem to have made some progress (with lots of help)!!
I still seem to be having trouble with the time. Because it is hourly data
for a whole month I assume that is where my problem lies.
When I run the following code I alwayes receive the first timestamp of the
file. Not sure how to
Do you mean that listval[0] is systematically equal to 0, or is it
something else?
-=- Olivier
2012/1/9 questions anon questions.a...@gmail.com
thank you, I seem to have made some progress (with lots of help)!!
I still seem to be having trouble with the time. Because it is hourly data
for a
On Mon, Jan 9, 2012 at 7:59 PM, questions anon questions.a...@gmail.comwrote:
thank you, I seem to have made some progress (with lots of help)!!
I still seem to be having trouble with the time. Because it is hourly data
for a whole month I assume that is where my problem lies.
When I run the
Thank you, thank you, thank you!
I needed to find the max value (and corresponding TIME and LAT, LON) for
the entire month but I shouldn't have been using the tmax, instead I needed
to use the entire array. Below code works for those needing to do something
similar.
Thanks for all your help
On Wed, 04 Jan 2012 12:29:36 +0100, Derek Homeier wrote:
On 04.01.2012, at 5:10AM, questions anon wrote:
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.
it is the index in the flattened
On 04.01.2012, at 5:10AM, questions anon wrote:
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
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)
I have a netcdf file that contains hourly temperature data for a whole
month. I would like to find the maximum temperature within that file and
also the corresponding Latitude and Longitude and Time and then plot this.
Below is the code I have so far. I think everything is working except for
I'm sorry I don't have time to look closely at your code and this may not
be helpful, but just in case... I find it suspicious that you *seem* (by
quickly glancing at the code) to be taking TIME[max(temperature)] instead
of TIME[argmax(temperature)].
-=- Olivier
2011/12/20 questions anon
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
On Wed, Dec 21, 2011 at 2:20 PM, Olivier Delalleau sh...@keba.be wrote:
I'm sorry I don't have time to look closely at your code and
On Tuesday, December 20, 2011, questions anon questions.a...@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
13 matches
Mail list logo