% griddedfile = '\\atlas.shore.mbari.org\ProjectLibrary\901805_Coastal_Biogeochemical_Sensing\WireWalker\THOON\Deployment_data\2024_06\THWW01-d04_20240602-20240712_t_profiles.nc';
% ncinfo(griddedfile)

file = '\\atlas.shore.mbari.org\ProjectLibrary\901805_Coastal_Biogeochemical_Sensing\WireWalker\THOON\Deployment_data\2024_06\THWW01-d04_20240602-20240712_t_profiles.nc';
info = ncinfo(file);

info.Variables(1).Name
vrs = ncread(file,'pH_VRS');
depth = ncread(file,'Depth');
doxy = ncread(file,'Dissolved_Oxygen');
temp = ncread(file,'Temperature');
pres = ncread(file,'Pressure');


depth = -depth;
depthidx = depth > 60;

%%
depth = depth(depthidx);
vrs = vrs(depthidx);
doxy = doxy(depthidx);

%%
CanyonB_pH = CANYONB(gtime,lat,lon,pres,temp,psal,doxy,'pH'); % insitu total scale
%%
figure
clf
scatter(doxy(1000:10000),vrs(1000:10000))


%%
[ww] = readncTHOON(file,-9.66638e-04,-4.11e-06,0);
readncTHOON(            )