%         timebase
%        for getting date from Paul's Start-time variable
mon=rom2int(start_time(5:7))
year=str2int(start_time(1:2))
day=str2int(start_time(9:10))
hour=str2int(start_time(13:14))
min=str2int(start_time(16:17))
sec=str2int(start_time(19:20))
jd=julian(mon,day,year,hour+min/60+sec/3600);
jd=jd+(0:length(east)-1)/24;

monend=rom2int(stop_time(5:7));
yearend=str2int(stop_time(1:2));
dayend=str2int(stop_time(9:10));
hourend=str2int(stop_time(13:14));
minend=str2int(stop_time(16:17));
secend=str2int(stop_time(19:20));
jdend=julian(monend,dayend,yearend,hourend+minend/60+secend/3600);
timebasecheck=jd(length(jd))-jdend
