argo_platform_map(argo)
argo_platform_map(argo,annotate)
argo_platform_map(argo)
plots locations of Argo profiles in argo
, coloring markers by the specific Argo platform which made the measurements; where argo
is a struct created by argo_build
.
argo_platform_map(argo,annotate)
adds number annotations to the markers which correspond to a longer Argo platform ID in the legend. By default annotate=0
. Set annotate=1
to turn on annotation.
% 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);
% Plot locations of Argo profiles, coloring by unique platform:
annotate = 1;
argo_platform_map(argo,annotate) % annotate optional, 1=on 0=off
bathymetry_plot(bathymetry_extract(bathymetry_dir,bounding_region(argo)),'2Dcontour')