Computer Programming Basics

Fall 2009

Meets Thursday 5:00 - 6:00 in Room 1411

Brett Hoover (bthoover at wisc)

Aronne Merrelli (merrelli at wisc)

John Rausch (rausch2 at wisc)


October 15 (Brett)

Introduction

October 22 (Brett)

Fortran 1

October 29 (Brett)

Fortran 2

November 5 (Aronne)

MATLAB 1

November 12 (Aronne)

MATLAB 2

November 19 (Aronne)

MATLAB 3

November 26

Happy Thanksgiving!

December 3 (John)

IDL 1

December 10 (John)

IDL 2


Introduction

slides


Fortran 1

slides

Example code: CONVERTF.f


Fortran 2

slides

Example code: CONVERTF2.f


MATLAB 1 (revised)

slides

Example scripts:


MATLAB 2

slides


MATLAB 3

slides

Some extra items:

The command log from all three sessions. I did not add any annotations, it is just a raw copy of everything I typed in the command log at the presentation computer.

The example longer MATLAB function that I showed, load_ARM_sonde.m for reference. Note this is designed to read a CDF file with a specific layout, so it is not generally useful.

Finally, here is a better example to illustrate the debugger, and it also corrects something I said incorrectly during the seminar: you cannot resume execution after halting for a run time error. You can however use try/catch to do allow the execution to be resumed, which is shown in this example:


IDL 1

slides

Example code: temp_example.pro

Equivalent MATLAB commands: matlabvsidl.pdf



IDL 2

slides

Example code: sounding.pro

Example data: KGRB.txt

legend.pro