View source: R/verticalProfiles.R
verticalProfiles | R Documentation |
Extract ocean data available at different depth levels (Copernicus data) and plot CTD-like vertical profiles.
verticalProfiles(X, point = NULL, xlim = NULL, ylim = NULL)
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. |
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.
Héctor Villalobos
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.