verticalProfiles: CTD-like vertical profiles for Copernicus variables

View source: R/verticalProfiles.R

verticalProfilesR Documentation

CTD-like vertical profiles for Copernicus variables

Description

Extract ocean data available at different depth levels (Copernicus data) and plot CTD-like vertical profiles.

Usage

verticalProfiles(X, point = NULL, xlim = NULL, ylim = NULL)

Arguments

X

a satin object with Copernicus data registered at different depths (i.e. potential temperature (thetao), salinity (so), etc.).

point

a data frame with point longitude and latitude coordinates where to extract data values.

xlim

limits for data variable.

ylim

vertical depth limits.

Details

Selected Copernicus data should be available at several depths, otherwise is meaningless. Also, if more than one point is selected, only the first will be processed.

Author(s)

Héctor Villalobos

Examples

# load sample Copernicus data
data(dcmems)
# available variables
names(dcmems)

# plot potential temperature
plot(dcmems$thetao)

# define point for extracting and plotting vertical profile
pt <- data.frame(lon = -108.5, lat = 23.33)
vp <- verticalProfiles(dcmems$thetao, point = pt)
# inspect extracted data
vp

satin documentation built on Sept. 23, 2022, 1:06 a.m.