Python for Science
David J. Raymond
Physics Department and Geophysical Research Center
New Mexico Tech
Socorro, NM 87801
USA
raymond@kestrel.nmt.edu
Introduction
Standard Python
Using Python as a Desk Calculator
Scripts
Python Functions
Branching
Looping
Fun with sequences and dictionaries
Object oriented programming in Python
More input and output
Further information
Numerical calculations with NumPy
Creating arrays
Array indexing and looping
Array expressions and assignments
Array methods
Array functions
Matrices
Masked arrays
Endianness
Further information
Graphics with Matplotlib
Line plots
Log plots and histograms
Two-dimensional plots
Finer control of plotting, color, and text
Combination plots
Making plot output files
Further information
Accessing standard file formats
NetCDF
Candis – Py3io
Candis – Pycandis (deprecated)
Further information
This document was translated from L
A
T
E
X by
H
E
V
E
A
.