Learn R Programming

HMMoce (version 1.0.0)

removePacific: Remove Pacific Ocean data from N. Atlantic analyses

Description

removePacific removes Pacific Ocean from WOA and other forms of array-based data. This is a specialized function to address the issue when the Pacific side of Panama enters into the model bounding box of a North Atlantic analysis.

Usage

removePacific(dat, lat, lon)

Arguments

dat

is output from extract.woa

lat

is output from extract.woa

lon

is output from extract.woa

Value

dat is WOA data grid with Pacific removed only tested when area of interest is N Atlantic

Examples

Run this code
# NOT RUN {
woa.dir <- getwd()
woa <- extract.woa(woa.dir, bbox = c(-90, -30, -10, 30), 'quarter')
woa <- removePacific(woa, lat, lon)
image.plot(woa[,,1,1])
# }

Run the code above in your browser using DataLab