In [13]:
%pylab inline
In [27]:
import pandas
import numpy
In [3]:
file = '/Users/schriste/Desktop/bamsringsdata.csv'
In [6]:
data = pandas.read_csv(file, index_col=2, parse_dates=True)
In [7]:
data
Out[7]:
In [8]:
data.describe()
Out[8]:
In [28]:
ndata = data.resample('600s', how=np.mean)
In [29]:
ndata
Out[29]:
In [41]:
ndata['fwd ring F y movement arcmin'].plot()
ndata['aft y movement arcmin'].plot()
Out[41]:
In [43]:
ndata['fwd ring F x movement arcmin'].plot()
ndata['aft x movement arcmin'].plot()
Out[43]:
In [44]:
ydiff = ndata['fwd ring F y movement arcmin']+ndata['aft y movement arcmin']
In [45]:
xdiff = ndata['fwd ring F x movement arcmin']+ndata['aft x movement arcmin']
In [46]:
ydiff.plot()
Out[46]:
In [47]:
xdiff.plot()
Out[47]:
In [35]:
import Pysolar
sunel = [Pysolar.GetAltitude(34.4731, -104.2422, t) for t in ndata['aft x movement arcmin'].index]
In [37]:
sunel = pandas.Series(sunel, index=ndata['aft x movement arcmin'].index)
In [40]:
ax = sunel.plot()
ax.set_ylabel('Sun Elevation [degrees]')
Out[40]:
In [ ]: