load("Glidex_v1.mat")
%%
idx = Glidex.("Max Depth") >= 140 & Glidex.("Max Depth") <= 200; % update metric for diel cycles. shallow offshore of M1 should be mostly accura

Gdex = Glidex(idx,:);

%%
gs = groupsummary(Glidex,"DateTime UTC","year");
%%
bar(gs.("year_DateTime UTC"),gs.GroupCount)
%%
geobasemap('satellite')
geoscatter(Gdex.latitude,Gdex.longitude)
%%
dieldays = groupsummary(Glidex,"DateTime UTC","day");
dielmonths = groupsummary(Glidex,"DateTime UTC","month");
%%

figure
clf
bar(dielmonths.("month_DateTime UTC"),dielmonths.GroupCount)
title('Diel Cycle profiles monthly')