MATLAB scripts to illustrate various geopotential fields that were used for the worksheet on streamfunctions in class on Friday Dec 3. The worksheet is here

You need all 5:

trajectory_1.m
trajectory_2.m
trajectory_3.m
zprim1.m this one is called by trajectory_1
zprim2.m this one is called by trajectory_2

Chapter_6_plot1.m (you can change L=3000; to L=30000;
 to make the length scale increase from synoptic to planetary)