A compilation of links with math and math tools materials.
Tools:
Showing posts with label numpy. Show all posts
Showing posts with label numpy. Show all posts
9.12.08
17.10.08
Numpy in Russian
Few nice lines of Russian numpy documentation:
http://num.wikidot.com/
PS. "Bonus" ;)
Just a quick example how to pull information you want from an ascii file where you have a lot of "junk" data:
Shortly: >> file = numpy.loadtxt('k_490_track.dat',delimiter=None,skiprows=3,usecols=(5,6,8),unpack=True)
"delimiter none" - all the whitespaces serve as a delimiter;
"skiprows" and "usecols" - selfexplanatory expressions
"unpack" - convert an array to a vector
http://num.wikidot.com/
PS. "Bonus" ;)
Just a quick example how to pull information you want from an ascii file where you have a lot of "junk" data:
Shortly: >> file = numpy.loadtxt('k_490_track.dat',delimiter=None,skiprows=3,usecols=(5,6,8),unpack=True)
"delimiter none" - all the whitespaces serve as a delimiter;
"skiprows" and "usecols" - selfexplanatory expressions
"unpack" - convert an array to a vector
Subscribe to:
Posts (Atom)