Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.32 KB

mocha_domain_plot.md

File metadata and controls

45 lines (26 loc) · 1.32 KB

mocha_domain_plot

Syntax

mocha_domain_plot(month,variable,region)

Description

mocha_domain_plot(month,variable,region) plots all depth-levels of variable over the specified region. The calendar month is specified by month.

month is an integer between 1 (January) and 12 (December).

variable is a string or character array and is the name of the parameter to be plotted.

region is a vector containing the bounds [S N W E] of the region to be plotted, -180/180 or 0/360 longtitude format is fine. Limits may cross the dateline e.g. [35 45 170 -130] but this is a Mid-Atlantic product so there is no reason to try that.

Example 1

% Setup nctoolbox:

setup_nctoolbox

% Plot a 3-D temperature domain:

month = 10; % Month (1 through 12).
variable = 'temperature'; %  'temperature' 'salinity'
region = [34 42  -80 -70]; % [30 48 -80 -58]
mocha_domain_plot(month,variable,region)

% Add bathymetry:
bathymetry_dir = '/Users/lnferris/Documents/data/bathymetry/topo_20.1.nc';
bathymetry_plot(bathymetry_dir,region,'3Dsurf')
caxis([27 38])

Back