Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.96 KB

argo_profiles_map.md

File metadata and controls

53 lines (35 loc) · 1.96 KB

argo_profiles_map

Syntax

argo_profiles_map(argo)
argo_profiles_map(argo,annotate)

Description

argo_profiles_map(argo) plots locations of Argo profiles in struct argo, coloring markers by profile; where argo is a struct created by argo_build. The colors of profiles corresponds to those of argo_profiles called on the same struct.

argo_profiles_map(argo,annotate) adds number annotations to the markers. By default annotate=0. Set annotate=1 to turn on annotation. The annotations of profiles correspond to those of argo_profiles called on the same struct.

Example 1

% 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 = '28-Dec-2016 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 profiles with annotations:

variable = 'TEMP_ADJUSTED'; % See object for options.
annotate = 1; 
argo_profiles(argo,variable,annotate) % annotate optional,  1=on 0=off

% Map profiles with annotations:

annotate = 1; 
argo_profiles_map(argo,annotate) % annotate optional,  1=on 0=off
bathymetry_plot(bathymetry_extract(bathymetry_dir,bounding_region(argo)),'2Dcontour') % add bathymetry contours

Back