
% -- 
% Jeff Sevadjian
% Research Technician
% Monterey Bay Aquarium Research Institute
% 7700 Sandholdt Rd
% Moss Landing, CA 95039, USA
% ph: +1 831-775-1888

% Loads OA Mooring .nc file from //atlas/OA_Moorings/deployment_data/
%  and makes some very basic plots.

%define buoy, deployment, data directory
 buoy = 'OA1';
 dep = '201607';
 mydir = ['//atlas.shore.mbari.org/OA_Moorings/deployment_data/' ...
    buoy '/' dep '/realTime/'];
%  mydir = ['//atlas.shore.mbari.org/OA_Moorings/deployment_data/' ...
%     buoy '/' dep '/'];

setup_nctoolbox;

ds = ncgeodataset([mydir buoy '_' dep '.nc']);

ds.variables
ds.netcdf

figure; hold on;
plot(ds.data('TIME'),ds.data('water_temp'),'.-');

figure; hold on;
plot(ds.data('TIME'),ds.data('O2_conc'),'.-');

figure; hold on;
plot(ds.data('LONGITUDE'),ds.data('LATITUDE'),'.-');

