Complete courseware module documentation
The complete documentation of the courseware modules ClimateUtilities.py,
phys.py
and planets.py
is given in the form of an iPython notebook here. Download it and run it in an iPython notebook server window. (So far, only the ClimateUtilities
part is complete, but the rest will follow soon). For information on reading and using iPython notbooks, consult the Instant Notebooks page.
ClimateUtilities.py Examples (Obsolete)
- Basic use of the Curve object for input/output and arithmetic on columns.
- Plotting a Curve object
- Numerical quadrature (definite integrals)
- Root finding
- Interpolation
- Integrating an ordinary differential equation in 1D. This example shows how to solve the differential equation dY/dt = f(Y,t). For background on the algorithms, see Chapter 16 (esp. 16.1 and 16.2) of Numerical Recipes, available online here
- Basic Version, passing parameters as globals. Also shows how to save results and plot.
- More general version, showing how to pass adjustable parameters (defining coefficients of the systsm) as arguments.
- Integrating an ordinary differential equation in 2D
phys.py Examples
Obsolete. (See iPython notebook document above)