%
%   take some end points and make a profile with a 1 km spacing.
%
%lt0= 35.4499132704849;
%ln0= -120.9376378598708;
%ltf= 36.30891031356832;
%lnf= -119.9466357296654;
%
%lt0= 33.39616489414827;
%ln0= -117.5994639855109;
%ltf= 34.94227753523778;
%lnf= -116.3230586194214;
%
%lt0= 32.35990785802967;
%ln0= -115.8641649727365;
%ltf= 33.09793732532356;
%lnf= -114.9993561657504;
%
lt0= 34.754580830;
ln0= -120.855945859;
ltf= 36.369726004;
lnf= -118.735660748;
%
Dy=111.00*(ltf-lt0);
Dx=111.00*cos(lt0*pi/180.)*(lnf-ln0);
L=sqrt(Dx*Dx+Dy*Dy);
N=L/.5;
dl=L/N;
dlt=(ltf-lt0)/N;
dln=(lnf-ln0)/N;
%
lat=lt0:dlt:ltf;
lon=ln0:dln:lnf;
%A -dist=(0:dl:L)-65.5;
%B -dist=(0:dl:L)-92.0;
%C -dist=(0:dl:L)-60.0;
dist=(0:dl:L)-109.0;
A=[lon;lat;dist]';
save D.xy A -ASCII


