general_map(object)
general_map(object,bathymetry_dir)
general_map(object,bathymetry_dir,ptype)general_map(object) plots coordinate locations (object.lon and object.lat); where object is a struct created by any of the _build functions in ocean_data_tools (e.g. argo, cruise, hycom, mercator, woa, wod).
general_map(object,bathymetry_dir) adds bathymetry contours from Smith & Sandwell Global Topography with path bathymetry_dir.
general_map(object,bathymetry_dir,ptype) allows the user to modify plot type from the default contours e.g. ptype = '2Dscatter' or '2Dcontour'
bathymetry_dir is the character array path to the Smith & Sandwell Global Topography file "topo_20.1.nc"
% Get variable information:
argo_dir = '/Users/lnferris/Documents/GitHub/ocean_data_tools/data/argo/*profiles*.nc';
listing = dir(argo_dir);
ncdisp([listing(1).folder '/' listing(1).name]) % Peek at netCDF header info to inform choice of variable_list.
% Load Argo data from west of New Zealand:
region = [-60.0 -50.0 150.0 160.0]; % Search region [-90 90 -180 180]
start_date = '01-Nov-2015 00:00:00';
end_date = '01-Jan-2017 00:00:00';
variable_list = {'TEMP_ADJUSTED','PSAL_ADJUSTED'};
[argo,matching_files] = argo_build(argo_dir,region,start_date,end_date,variable_list);
% Make a map:
bathymetry_dir = '/Users/lnferris/Documents/data/bathymetry/topo_20.1.nc';
ptype = '2Dcontour'; % '2Dscatter' '2Dcontour'
general_map(argo,bathymetry_dir,ptype) % bathymetry_dir, ptype optional
