> import numpy as np
>> Vhel_fdiff3 = np.array([abs(Vmatch3_1 - Vmatch3_2), abs(Vmatch3_1 -
>> Vmatch3_3), abs(Vmatch3_3 - Vmatch3_2)])
>> your_answer = Vhel_fdiff3.max(axis=0)
>
> or
>
> import numpy as np
> a = np.array([Vmatch3_1-Vmatch3_2, Vmatch3_1-Vmatch3_3, Vmatch3_3-
> Vmatch3_2])
> print
Andre' Walker-Loud wrote:
> import numpy as np
> Vhel_fdiff3 = np.array([abs(Vmatch3_1 - Vmatch3_2), abs(Vmatch3_1 -
> Vmatch3_3), abs(Vmatch3_3 - Vmatch3_2)])
> your_answer = Vhel_fdiff3.max(axis=0)
or
import numpy as np
a = np.array([Vmatch3_1-Vmatch3_2, Vmatch3_1-Vmatch3_3, Vmatch3_3-
Vmatch3
Hi Elaina,
> Vhel_fdiff3=[]
> for i in xrange(len(Vmatch3_1)):
> Vhel_fdiff3.append(max([abs(Vmatch3_1[i] - Vmatch3_2[i]),abs(Vmatch3_1[i]
> - Vmatch3_3[i]),abs(Vmatch3_3[i] - Vmatch3_2[i])]))
>
> #print Vhel_fdiff3
> #appending writes a list, but numpy which makes the with_ work needs a
On Fri, Feb 17, 2012 at 2:27 PM, Mark Lawrence wrote:
> On 17/02/2012 02:53, Elaina Ann Hyde wrote:
>
>> On Fri, Feb 17, 2012 at 1:41 PM, Rohan Sachdeva wrote:
>>
>> The way I would do this is to put all of the differences in a list then
>>> take the maximum of the list. So..
>>>
>>> a = Vmatch3
On 17/02/2012 02:53, Elaina Ann Hyde wrote:
On Fri, Feb 17, 2012 at 1:41 PM, Rohan Sachdeva wrote:
The way I would do this is to put all of the differences in a list then
take the maximum of the list. So..
a = Vmatch3_1 - Vmatch3_2
b = Vmatch3_1 - Vmatch3_3
c = Vmatch3_3 - Vmatch3_2
Vhel_fdi
On Fri, Feb 17, 2012 at 1:41 PM, Rohan Sachdeva wrote:
> The way I would do this is to put all of the differences in a list then
> take the maximum of the list. So..
>
> a = Vmatch3_1 - Vmatch3_2
> b = Vmatch3_1 - Vmatch3_3
> c = Vmatch3_3 - Vmatch3_2
>
> Vhel_fdiff3=max([a,b,c])
>
> That should
On 17/02/2012 01:04, Elaina Ann Hyde wrote:
Hello all,
I am still scripting away and have reached my next quandry, this one is
much simpler than the last, basically I read in a file with several
columns.
Vmatch3_1=dat[col1]
Vmatch3_2=dat[col2]
Vmatch3_3=dat[col3]
Vdav=5.0
Vhel_fdiff3=max(abs(
Hello all,
I am still scripting away and have reached my next quandry, this one is
much simpler than the last, basically I read in a file with several
columns.
Vmatch3_1=dat[col1]
Vmatch3_2=dat[col2]
Vmatch3_3=dat[col3]
Vdav=5.0
Vhel_fdiff3=max(abs(Vmatch3_1 - Vmatch3_2),abs(Vmatch3_1 -
Vmatch3_