function temp(flag)

startplot = datenum(2001,8,15,1,14,21);
%startplot = datenum(2001,8,15,0,34,09);
%startplot = datenum(2001,8,15,0,34,25);
startnps = datenum(2001,8,15,1,30,00);
startcps = datenum(2001,8,15,7,54,00);
startsps = datenum(2001,8,15,10,13,0);
startsl = datenum(2001,8,15,13,30,0);
endplot = datenum(2001,8,15,16,27,29);
%endplot = datenum(2001,8,15,17,07,29);
%endplot = datenum(2001,8,15,23,24,53);

startfrac = 0.12898;
endfrac = 0.90415;

fractionnps = (startnps-startplot)/(endplot-startplot);
fractioncps = (startcps-startplot)/(endplot-startplot);
fractionsps = (startsps-startplot)/(endplot-startplot);
fractionsl = (startsl-startplot)/(endplot-startplot);

nps = startfrac + fractionnps*(endfrac-startfrac)
cps = startfrac + fractioncps*(endfrac-startfrac)
sps = startfrac + fractionsps*(endfrac-startfrac)
sl = startfrac + fractionsl*(endfrac-startfrac)

%keyboard
%fractionnps = (startnps-startplot)/(endplot-startplot)
%fractioncps = (startcps-startplot)/(endplot-startplot)
%fractionsps = (startsps-startplot)/(endplot-startplot)
