Re: [Numpy-discussion] skip lines at the end of file with loadtxt

2011-10-25 Thread Massimo Di Stefano
Many thanks Oliver! i missed it in the description, works great :-) --Massimo. Il giorno 25/ott/2011, alle ore 15.33, Olivier Delalleau ha scritto: > Maybe try genfromtxt instead of loadtxt, it has a skip_footer option. > > -=- Olivier > > 2011/10/25 Massimo Di Stefano

[Numpy-discussion] skip lines at the end of file with loadtxt

2011-10-25 Thread Massimo Di Stefano
i'm tring to generate an array reading a txt file from internet. my target is to use python instead of matlab, to replace this steps in matlab : url=['http://www.cdc.noaa.gov/Correlation/amon.us.long.data']; urlwrite(url,'file.txt'); i'm using this code : urllib.urlretrieve('http://www.cdc.noaa

Re: [Numpy-discussion] Viewer for 2D Numpy arrays (GUI)

2010-09-17 Thread Massimo Di Stefano
Hi, have yo already tryied Spyderlib : http://code.google.com/p/spyderlib/ a matlab-like environment based on pyqt you can store object like array in a QtTable and modify/save it. Ciao, Massimo. Il giorno 17/set/2010, alle ore 08.53, Mayank P Jain ha scritto: > I thought about these options

Re: [Numpy-discussion] scan array to extract min-max values (with if condition)

2010-09-11 Thread Massimo Di Stefano
rett's code, to reflect the new (right) if statment ? i'm asking this to try to learn how to use masked array. thanks a lot for your support!!! Massimo. Il giorno 11/set/2010, alle ore 23.00, Pierre GM ha scritto: > > On Sep 11, 2010, at 9:53 PM, Massimo Di Stefano wrote: >

Re: [Numpy-discussion] scan array to extract min-max values (with if condition)

2010-09-11 Thread Massimo Di Stefano
ta[:,0] < E > mask |= mydata[:,0] > W > mask |= mydata[:,1] < N > mask |= mydata[:,1] > S is not working as aspected have you hints on how to get working the "MASK" code ? as it is now it pick all the points in the "mydata" array. thanks! Mas

Re: [Numpy-discussion] scan array to extract min-max values (with if condition)

2010-09-11 Thread Massimo Di Stefano
That's awesome! masked array are defintley what i need! thanks to point my attention on it! best regards, Massimo. Il giorno 11/set/2010, alle ore 16.19, Brett Olsen ha scritto: > On Sat, Sep 11, 2010 at 7:45 AM, Massimo Di Stefano > wrote: >> Hello All, >> >>

[Numpy-discussion] scan array to extract min-max values (with if condition)

2010-09-11 Thread Massimo Di Stefano
Hello All, i need to extract data from an array, that are inside a rectangle area defined as : N, S, E, W = 234560.94503118, 234482.56929822, 921336.53116178, 921185.3779625 the data are in a csv (comma delimited text file, with 3 columns X,Y,Z) #X,Y,Z 3020081.5500,76.3100,0.0300 3020086.