Re: [Numpy-discussion] Replacing values based on index

2010-08-11 Thread Pinner, Luke
Simple as that... Thanks! -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Geordie McBain Convert days to np.array, then you can index it with your indexmin: days = [10, 20, 31, 41, 51, 59, 69, 79, 90, 100] mydays

Re: [Numpy-discussion] Replacing values based on index

2010-08-11 Thread Geordie McBain
2010/8/12 Pinner, Luke : > Apologies if this has been asked many times before, but I'm having > trouble even coming up with the right terms to search on. > > I have an x,y,date stack of satellite images from which I need to know > on what date the max and min values occur. I can calculate the index

[Numpy-discussion] Replacing values based on index

2010-08-11 Thread Pinner, Luke
Apologies if this has been asked many times before, but I'm having trouble even coming up with the right terms to search on. I have an x,y,date stack of satellite images from which I need to know on what date the max and min values occur. I can calculate the index at which the min/max values occur