etf.S revision 290000
1362181Sdimoptions(digits=4) 2362181Sdimfile2 <- "etf_summary" 3362181Sdimetf <- scan(file1, list(day=0, sec=0, offset=0, stab=0)) 4362181Sdimr <- lsfit(etf$sec, etf$offset) 5362181Sdimcount<-length(etf$sec) 6362181Sdimmean<-r$coef[[1]] 7362181Sdimstd<-sqrt(var(r$residuals)) 8362181Sdimslope<-r$coef[[2]] * 1000 9251877Spetercat("\n", file=file2 , append=TRUE, fill=FALSE, sep="") 10362181Sdimcat(file1, "\n", file=file2, append=TRUE, fill=FALSE, sep="") 11251877Spetercat("etf1 ", count, ", T ", mean, " ns, R ", slope, " ps/s, std ", std, " us\n", file=file2, append=TRUE, fill=FALSE, sep="") 12362181Sdimstr <- paste("eps/", file1, ".eps", sep="") 13362181Sdimpostscript(str, , , , 5, pointsize=18) 14362181Sdimpar(mgp=c(1, 0, 0), tck=0.03, mar=c(2, 2, 1, 1)) 15362181Sdimplot(etf$sec, etf$offset, type="l", xlab=paste("MJD", etf$day, "Time (s)"), ylab="External Offset (ns)", ylim=c(-400, 400)) 16362181Sdim