dn = datenums;
p = pressures

length(dn)
figure;
plot(dn,p);

diffs = dn(1:end-1) - dn(2:end);
remove = find(diffs>0);
remove = remove + 1;
dn(remove) = [];
p(remove) = [];

figure
length(dn);
plot(dn,p);

