Is there a collection of useful functions/modules?

I'm very new to Python, as in only a week of programming, and was wondering if there is a page with a collection of highly useful functions/modules that are not necessarily maintained on a release-to-release basis for things like performing FFT's on data in a file. I wrote a function to do this using Numpy, and put in options to normalize the FFT for me, and take the absolute value. There are many other options I should add, but before I add complexity, I wouldn't mind having my code scrutinized, and made available for others to use and optimize. That way students and researchers don't have to reinvent the wheel, unless they want to or are using some odd formatting scheme. Just have the amplitude data in the list column wise. exempli gratia: 0.0 0.1 0.0 -0.1 ... et cetera. This code makes no particular frequency sampling assumptions (other than the sampling was done correctly), and only deals with simple FFT processing. I've attached the code and welcome scrutiny. There are few things that I know I should to add/restructure to my code: better error handling, printing out the phase, multi-dimensional analysis, and |Magnitude| in 20dB. Thanks for your help Joshua

Hi Joshua, There is a scipy cookbook at http://www.scipy.org/Cookbook It's a great place to put those kinds of functions, but also to write your thoughts on scipy. Having a newcomers perspective is always useful for other folks starting with python. Welcome aboard, David On Wed, Jul 30, 2008 at 10:42 AM, Joshua <shad0wfade@yahoo.com> wrote:
I'm very new to Python, as in only a week of programming, and was wondering if there is a page with a collection of highly useful functions/modules that are not necessarily maintained on a release-to-release basis for things like performing FFT's on data in a file.
I wrote a function to do this using Numpy, and put in options to normalize the FFT for me, and take the absolute value. There are many other options I should add, but before I add complexity, I wouldn't mind having my code scrutinized, and made available for others to use and optimize. That way students and researchers don't have to reinvent the wheel, unless they want to or are using some odd formatting scheme. Just have the amplitude data in the list column wise.
exempli gratia: 0.0 0.1 0.0 -0.1 ... et cetera.
This code makes no particular frequency sampling assumptions (other than the sampling was done correctly), and only deals with simple FFT processing.
I've attached the code and welcome scrutiny.
There are few things that I know I should to add/restructure to my code: better error handling, printing out the phase, multi-dimensional analysis, and |Magnitude| in 20dB.
Thanks for your help Joshua
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
participants (2)
-
David Huard
-
Joshua