% ----- Load up variables...this takes a while from a network drive...
folder = '\\atlas\ProjectLibrary\900739.LRAUV.Data\Testing\2012\2012_09_06_Tethys_CANON_67\Logs'
load([folder '\20120912T142126\science_201209121421_201209150305.mat']);

% ----- Do hysterisis analysis...

% Do yoyo classifier
[d, t, n, w] = yoyo_classifier(depth.value, depth.time);

% Find depth of parameter
target = 10; % for what parameter value do we want the depth
time_delay = 0; % seconds
[di wi ti ni] = depth_of_parameter(sea_water_temperature, target, d, t , n, w, time_delay/(24*3600));