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

Re: [Numpy-discussion] how to fit a given pdf

2010-08-11 Thread josef . pktd
On Wed, Aug 11, 2010 at 8:00 PM, Geordie McBain wrote: > 2010/8/12 Renato Fabbri : >> Dear All, >> >> help appreciated, thanks in advance. >> >> how do you fit a pdf you have with a given pdf (say gamma). >> >> with the file attached, you can go like: >> >> a=open("AC-010_ED-1m37F100P0.txt","rb")

Re: [Numpy-discussion] how to fit a given pdf

2010-08-11 Thread Geordie McBain
2010/8/12 Renato Fabbri : > Dear All, > > help appreciated, thanks in advance. > > how do you fit a pdf you have with a given pdf (say gamma). > > with the file attached, you can go like: > > a=open("AC-010_ED-1m37F100P0.txt","rb") > aa=a.read() > aaa=aa[1:-1].split(",") > data=[int(i) for i in aaa

[Numpy-discussion] Numpy datetime support

2010-08-11 Thread John Salvatier
Hello, I am an eager for numpy datetime support, but I have not heard about it recently. Last I heard it was taken out of 1.4 because of some compatibility issues. When will datetime be a full numpy feature? Best Regards, John ___ NumPy-Discussion maili

[Numpy-discussion] how to fit a given pdf

2010-08-11 Thread Renato Fabbri
Dear All, help appreciated, thanks in advance. how do you fit a pdf you have with a given pdf (say gamma). with the file attached, you can go like: a=open("AC-010_ED-1m37F100P0.txt","rb") aa=a.read() aaa=aa[1:-1].split(",") data=[int(i) for i in aaa] if you do pylab.plot(data); pylab.show() T