# IPython log file

import okeanidanalysis as oa
tethys = oa.logs.OkeanidLog('/Volumes/LRAUV/tethys/realtime/cell-logs/20150522T014340/cell-Normal.mat')
ax_depth = subplot(2,1,1)
ax_buoyancy = subplot(2,1,2, sharex=ax_depth)
pc_chl, ax_depth = tethys.scatter_time_section('WetLabsBB2FL/bin_mean_mass_concentration_of_chlorophyll_in_sea_water', s=64, axes=ax_depth)
tethys.plot_timeseries('platform_buoyancy_position', axes=ax_buoyancy)
cb_c = colorbar(pc_c, ax=ax_c)
ax_cb = plt.axes([0.2, 0.95, 0.6, 0.01])
colorbar(pc_chl, cax=ax_cb, orientation='horizontal')
ax_depth.ylabel('depth [m]')
ax_depth.set_ylabel('depth [m]')
ax_buoyancy.set_ylabel('buoyancy volume [ml]')
ax_cb.set_title('chlorophyll [ug/l]')
ax_buoyancy.axvline(datetime.datetime(2015,5,22,2,45,8), color='black', linewidth=2)
ax_depth.axvline(datetime.datetime(2015,5,22,2,45,8), color='black', linewidth=2)
ax_depth.axhline(15.395938, color='black', linewidth=1)
ax_depth.axhline(15.369097, color='black', linewidth=1)
ax_depth.axhline(15.339273, color='black', linewidth=1)
draw()
show()
