In [1]:
from iuvs import io

In [16]:
fnames = io.l1a_filenames("orbit02???")

In [17]:
iuvsfnames = [io.ScienceFilename(i) for i in fnames]

In [18]:
times = [i.time for i in iuvsfnames if i.phase =='periapse']

In [19]:
len(times)


Out[19]:
1481

In [14]:
hk = pd.read_hdf('/home/klay6683/to_keep/HK_DB.h5')

In [11]:
ts = pd.Series(1, times)

In [12]:
ts = ts.sort_index()

In [15]:
muvresampled = hk.MUV_DET_TEMP_C.resample('1s', fill_method='pad')
fuvresampled = hk.FUV_DET_TEMP_C.resample('1s', fill_method='pad')
muv_periapsis_temp = hkresampled.reindex(ts.index).drop_duplicates().dropna()
fuv_periapsis_temp = hkresampled.reindex(ts.index).drop_duplicates().dropna()


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-15-3ecd640158fa> in <module>()
      1 muvresampled = hk.MUV_DET_TEMP_C.resample('1s', fill_method='pad')
      2 fuvresampled = hk.FUV_DET_TEMP_C.resample('1s', fill_method='pad')
----> 3 muv_periapsis_temp = hkresampled.reindex(ts.index).drop_duplicates().dropna()
      4 fuv_periapsis_temp = hkresampled.reindex(ts.index).drop_duplicates().dropna()

NameError: name 'hkresampled' is not defined

In [40]:
%matplotlib nbagg

In [41]:
import seaborn as sns
sns.set_context('talk')


/usr/local/python3/miniconda/lib/python3.4/site-packages/matplotlib-1.5.dev1-py3.4-linux-x86_64.egg/matplotlib/__init__.py:866: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))

In [52]:
plt.figure()
muv_periapsis_temp.plot(style='*', title='MUV and FUV Periapsis temperatures')


Out[52]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f42ab3dfe80>

In [49]:
plt.figure()
fuv_periapsis_temp.plot(style='*', title='FUV Periapsis temperatures')


Out[49]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f42ab550828>

In [68]:
jan = hk.FUV_DET_TEMP_C.loc['2015-01']

In [69]:
plt.figure()
jan.plot()


Out[69]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f42ab511ac8>

In [70]:
jan.index


Out[70]:
DatetimeIndex(['2015-01-01 00:00:21.165966331',
               '2015-01-01 00:00:51.165990591',
               '2015-01-01 00:01:21.166014909',
               '2015-01-01 00:01:51.166039168',
               '2015-01-01 00:02:21.161073803',
               '2015-01-01 00:02:51.161098062',
               '2015-01-01 00:03:21.161122322',
               '2015-01-01 00:03:51.161146581',
               '2015-01-01 00:04:21.161170899',
               '2015-01-01 00:04:51.161195158', 
               ...
               '2015-01-31 23:55:08.001146435',
               '2015-01-31 23:55:38.001170754',
               '2015-01-31 23:56:08.001195013',
               '2015-01-31 23:56:38.001219272',
               '2015-01-31 23:57:08.001243531',
               '2015-01-31 23:57:38.001267790',
               '2015-01-31 23:58:08.001292049',
               '2015-01-31 23:58:38.001316368',
               '2015-01-31 23:59:08.001340627',
               '2015-01-31 23:59:38.001364886'],
              dtype='datetime64[ns]', length=89196, freq=None, tz=None)

In [62]:
pd.date_range(start=)

In [ ]: