Some Python Online Sources:
www.python.org Python Official Website - everything you ever wanted to know and then some
http://code.activestate.com/recipes/langs/python/ ActiveState - implementation and IDE
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
- 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.
- 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.
- Text Processing in Python – I haven’t read it but I thoguht I’d add it for the sake of completeness.
- 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.
- 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.
- 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.
- Python 101 – Part of a university course this goes through the fundamentals as well as providing exercises.
- Thinking in Python Design Patterns and Problem-Solving Techniques – A mammoth title written by the great Bruce Eckel.
- 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.
- Python Programming Tutorial – It looks okay, though nothing ground breaking.
- Django Book – A book on Pythons greatest web framework.
- Pylons Book – A book on Pythons 3rd best web framework.
- 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.
- Python Network Programming – Heavy on theory and light on practice. Still a worthy read when you need to sleep.
- 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
- www.python.org
- The Python Tutorial
- Python 2.5 reference card
- Python Quick Reference ( 2.5 , 2.4)
- Building Skills in Python
- How to Think Like a (Python) Programmer
- Dive Into Python
- A Byte of Python
- Python-by-example
- Useful simple examples from the Python Standard Library
- String documentation
- Google's Python Class
- MIT Introduction to Computer Science and Programming
General Scientific Programming
- (Very) Simple (Numerical) Recipes in Python
- scipy (docs).
- numpy ( Numpy reference, Simple Examples)
- Summary of NumPy Commands
- Arrays in SciPy/Numpy/Python (attributes, methods, functions)
- SciPy Course
- Minuit numerical function minimization in Python
- PyMC Markov chain Monte Carlo package
- Python Scripting for Computational Science
- Numerical Methods in Engineering with Python (2nd Edition) by Jaan Kiusalaas ( Examples )
- Physical constants in python
- Python Imaging Library (PIL)
- RPy - R from Python
Calling c functions and fortran subroutines
Plotting
Pgplot and ppgplot
- pgplot
- Subroutine Descriptions
- pgplot colours, symbols, line types
- ppgplot ( local copy of ppgplot-1.3.tar.gz ).
- pgplot, ppgplot and gfortran
- Using ppgplot on Durham ITS, first star.init, then try the demo programmes
jor_comp.py, (data file)
ex_graph.py
ex_arro.py
ex_panel.py
ex_cont.py
ex_sierp.py
Astronomy
- pyfits
- Topical Software
- Astronomy Tutorial (pdf)
- pyraf
- PyEphem
- VOTable.py
- Python version of Ned Wright's Cosmology Calculator by James Schombert.
- Scott Ransom's pySLALIB python+numpy wrappers for the SLALIB
- Russell Owen's RO Python Package
- Russell Owen's AstroPy Links
- Matt Hilton's astLib (Python tools for 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 (source, PhotoFlags.dat)
- Make up 2d gaussian fits image (source).
- Example of using scipy.signal.convolve2d (source). Input fits files (gal.fits, psf.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