SPS Intensity


A study of the SPS intensity.

In [1]:
%matplotlib notebook
import matplotlib.pyplot as pl 
import pytimber
In [2]:
db=pytimber.LoggingDB()
In [3]:
db.search('%SPS%BCT%TOTAL_INTEN%')
Out[3]:
[u'SPS.BCTDC.51895:TOTAL_INTENSITY', u'SPS.BCTDC.51897:TOTAL_INTENSITY']
In [4]:
data=db.get('SPS.BCTDC.51895:TOTAL_INTENSITY','2016-08-02 12:00:00','2016-08-02 12:01:00')
In [5]:
pl.clf()
timestamps,intensities=data['SPS.BCTDC.51895:TOTAL_INTENSITY']
for ts,d in zip(timestamps,intensities):
  pl.plot(d,label=pytimber.dumpdate(ts,fmt='%H:%M:%S'))

pl.title(pytimber.dumpdate(ts,fmt='%Y-%m-%d'))
pl.legend()
Out[5]:
<matplotlib.legend.Legend at 0x7fa86533f790>