%% tmin.m is the chi squared function that will minimize to 
%% fit tehfn.m to the observed satellite data.
%%

function chi=tmin(c,altmat,temps,lsh,h0)

chi=sum((temps-tehfn(c(1),c(2),altmat,lsh,h0)).^2);
