Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.28 KB

argo_platform_subset.md

File metadata and controls

42 lines (26 loc) · 1.28 KB

argo_platform_subset

Syntax

[subargo] = argo_platform_subset(argo,platform_id) 

Description

[subargo] = argo_platform_subset(argo,platform_id) subsets argo by Argo platform ID into struct subargo; where argo is a struct created by argo_build and platform_id is the integer ID

platform_id must be an integer corresponding to the ID of an Argo float.

subargo is a struct which is structurally identical to argo but contains data only from the chosen Argo float

Example 1

% Plot locations of Argo profiles:
argo_platform_map(argo,1)
bathymetry_plot(bathymetry_extract(bathymetry_dir,bounding_region(argo)),'2Dcontour')

% Subset by platform:

platform_id = 5904421;
[subargo] = argo_platform_subset(argo,platform_id);

% Make a new plot:

argo_platform_map(subargo,1)
bathymetry_plot(bathymetry_extract(bathymetry_dir,bounding_region(argo)),'2Dcontour')

Back