Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center Windows Python Tutorial Kurt Schwehr Jan 2007
Day 1 Introduction and Basic Mechanics Installing python and a source code editor Editing and running script files Using the IPython shell Basic python concepts
Class website:
Python Homepage
Online documentation
Books
Videos
Installing python
Download and install the big package
What you get
You can use dos
Exit with Ctrl-D or Ctrl-Z
Cygwin is also good Challenge is getting all the packages installed
Start ipython!
What is ipython?
IPython: an Enhanced Python Shell
Get started with IPython
We need to be able to save & run scripts
Start SciTE
Initial ScitTE view
Ex01 - hellow world
Saving a file in SciTE
Running ex01.py
Basic string operations
Getting help with the ‘tab’ key
More string operations
Lists are created with [ ]
The math module
Getting help on functions
More help
from math import *
If tests and indentation matters
for loops
Matplot lib
1st plot
2nd plot