Skip to content
Snippets Groups Projects
Commit b7134e3b authored by Alex Diebold's avatar Alex Diebold
Browse files

Added more documentation

parent 38012dda
No related branches found
No related tags found
No related merge requests found
......@@ -14,17 +14,21 @@ def main(path):
dmv = radiance.get_radiance_from_rnc(path)
hk = housekeeping.get_all_housekeeping(path)
#only use dmv data from scene H
data = pd.DataFrame(index=hk.index, columns=('dmv', 'hk'))
data['dmv'] = dmv.xs(str.encode('H'), level='scene').mean(axis=1)
data['hk'] = hk['SCEtemp']
#get rid of hk rows where scene isn't H
data.dropna(inplace=True)
try:
#subtract the rolling average
for x in data.columns:
tmp = scipy.signal.savgol_filter(data[x].values[:], 201, 3)
data[x] = data[x] - tmp
#correlate the data
correlation = np.correlate(data['dmv'].values[:], data['hk'].values[:], mode='same')
print('max = ', np.amax(correlation), ' : min = ', np.amin(correlation))
......@@ -44,6 +48,7 @@ def main(path):
plt.savefig(name)
plt.clf()
#probably the scipy.signal.savgol_filter failing
except:
print('FAIL')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment