Welcome~~~


Another blog:
http://fun-st.blogspot.com/

It is easier to write an incorrect program than understand a correct one.

Wednesday, February 23, 2011

Python Online Source


Some Python Online Sources:

www.python.org  Python Official Website - everything you ever wanted to know and then some






http://atwork.wordpress.com   (From Java to Python)








http://gnosis.cx/TPiP/     (text processing in Python)

-- note that there is also the "NLTK" -- Natural Language Processing (python) which is very good


comp.lang.python   (google group)

Differences between Python 2 and 3 - This articles explains the subtle and not so subtle differences (print ('...'), input(...) and eval(input(..)) instead of raw_input and input in 3, etc)

Python Style Guide - Readability Counts! And hey this document shows a desire for standardization of coding to aid everyone in the community

PyDev - IDE

Generators  Generators in Python:

Tricks, Tips, and Hacks:
Python Tips, Tricks, and Hacks

MIT OpenCourseWare
MIT 6.00 Intro to Computer Science & Program
Under MIT OpenCourseWare, all the lectures are available on MIT youtube channel with handouts and associative study materials. Here is the play list for this course -

some presentation (and code samples) on Generators in Python? Generator Tricks for Systems Programmers 



Python E-Books - e-Literature to get you started and free to boot
  1. Dive Into Python – The original but not the best anymore.  It taught me Python so I’ve got fond memories and a special place in my heart for it.
  2. How to Think Like a Computer Scientist: Learning With Python – A newly revised edition of this book is due out in Feburary 2009 but its still worth taking a look at the original.
  3. Text Processing in Python – I haven’t read it but I thoguht I’d add it for the sake of completeness.
  4. Start Programming With Python – Its a relatively new project started by an enthusiast.  A hell of a lot has already been produced and its due to be finished by Xmas.
  5. PLEAC Python – Its like a rapid-fire Python Cookbook with short, concise examples of how to solve a variety of low-level problems.  Form string manipulation to database access.
  6. Non-Programmers Tutorial for Python – Its for non-programmers but its sometimes useful to read form a different point of view.  I find the perspective refreshing.
  7. Python 101 – Part of a university course this goes through the fundamentals as well as providing exercises.
  8. Thinking in Python Design Patterns and Problem-Solving Techniques – A mammoth title written by the great Bruce Eckel.
  9. Python Standard Library – This is seriously showing its age as it was originally written for Python 2.0.  Although there’s updates they’re incomplete.  Its still worth a look though to get a good idea of the Python core.
  10. Python Programming Tutorial – It looks okay, though nothing ground breaking.
  11. Django Book – A book on Pythons greatest web framework.
  12. Pylons Book – A book on Pythons 3rd best web framework.
  13. Sockets Programming in Python – I found this over at Scribd which is fast turning out to be a great little site.  I recommend you look at some of the other books on offer once you’ve looked at this.
  14. Python Network Programming – Heavy on theory and light on practice.  Still a worthy read when you need to sleep.
  15. Advanced Python Programming – This is actually a 126 slide lecture given by a Chicago University lecturer.  Some good stuff in here.

“A Byte of Python”.
http://www.swaroopch.com/notes/Python

Python programming wiki book
http://en.wikipedia.org/wiki/Wikibooks:Python_Programming

Open-Source Book: Python 3 Patterns, Recipes and Idioms
http://www.mindviewinc.com/Books/Python3Patterns/Index.php




Python Links


Core

General Scientific Programming

Calling c functions and fortran subroutines

Plotting

Pgplot and ppgplot

Astronomy

Example Python Programs and Functions

  • Find the median of an array (source)
  • Angular separation of two points on the Celestial Sphere (source)
  • Bearing (position angle) of one point on a sphere relative to another (source)
  • To the azimuth and elevation of celestial object (source)
  • Convert from J2000 equatorial coordinates to galactic coordinates (source)
  • To find aperture magitudes for a set of x, y position on an image (source)
  • Incomplete Gamma functions, etc (gammln, gser, gcf, gammp, gammq translated from Numerical Recipes) (source)
  • plot_prof.py  Plots galaxy surface brightness curves, outputs: prof.ps
  • plot_petro.py  Plots petrosian functions for a range of sersic profiles, outputs: petro.ps
  • make_galfit_gal.py Create bulge and disk images from GALFIT output fit.log file
  • Average a set of JPEGS with PIL and numpy (source)
  • Convert the SDSS photo flag hex number into the flag names (sourcePhotoFlags.dat)
  • Make up 2d gaussian fits image (source).
  • Example of using scipy.signal.convolve2d (source). Input fits files (gal.fitspsf.fits).
  • How to use the signal timeout (source).
  • Using astLibs to make up a postage stamp image (source)
  • Examples of file locking in GCC and python





--

♥ ¸¸.•*¨*•♫♪♪♫•*¨*•.¸¸♥

No comments:

Post a Comment