% 
% Example script that loads some pertinent data from the gridded
% Dorado matlab file and generates some plots.  The gridded data is
% a post-processed data product in which the different sensor
% outputs have been consolidated onto a single time grid (onboard,
% each sensor has it's own clock).  I'm not that used to the
% gridded data (I mostly look at the raw stuff in all its
% discordant beauty), so this is just a quick idea.
%
% Since data are collected from a four dimensional space (lat, lon,
% depth, time), visualization takes a number of different forms.  The
% most common, initial view is what I'm providing here: a color map of
% sample value on a distance traveled (in km) vs depth (in m).  Keep
% in mind when looking at this view that the vehicle is not travelling
% in a straight line.  For this reason, I've also included a quick
% plot of the vehicle track in lat vs lon coordinates.
%
filename = 'Dorado_gridded.mat';

load(filename,'gT','gN','gF','iZ','idist','ilat','ilon');

fhtrack = plot_track(ilon,ilat);
fhsamps = plot_samples(idist,iZ,'Temperature',gT,'Nitrate',gN,'Fluorescence',gF);
