return ampstats['DATA']['rms'], ampstats['DATA']['max'], ampstats['DATA']['min'], phastats['DATA']['rms'], phastats['DATA']['max'], phastats['DATA']['min'], returnFlag
from plotms import plotms
def __init__(self, msName, write=True,
resultDir='WEBPAGES/visTest/',
self.resultDir=resultDir+strftime('/%Y_%m_%d/')
if os.access(self.resultDir,os.F_OK) is False:
print self.resultDir+' directory DNE, so am making one!'
print self.resultDir+' directory exists; will add to it!'
if os.access(imDir,os.F_OK) is False:
print imDir+' directory DNE, so am making one!'
print imDir+' directory exists; will add to it!'
self.fname='Regression-%s-%s-%s-%s-%s-%s.html'%(t[0],t[1],t[2],t[3],t[4],t[5])
self.html=self.resultDir+self.fname
self.htmlPub=htmlPub(self.html,'Measurement Set tests')
print 'stats-only mode; will not write to html file!'
def simple_stats(self,sigma=10):
ampstats=self.msTool.statistics("DATA","amp")
phastats=self.msTool.statistics("DATA","phase")
listnam=string.split(self.msTool.name(), '/')
imnam=listnam[len(listnam)-2]+'_'+listnam[len(listnam)-1]
saveDir=self.imDir+imnam+'-ampuv.png'
header='amp vs. uvdist of %s' % self.msName
body1=['The figure generated with msplot:']
body2=['maximum: %f'%(ampstats['DATA']['rms']),'minimum: %f'%(ampstats['DATA']['min']),'rms: %f'%(ampstats['DATA']['rms'])]