View source: R/Get_Interp_WOA.R
Get_IsoValueDepth_WOA | R Documentation |
Download and surface climatology data from Nationa Oceanographic Data Center (NODC) World Ocean Atlas 2013 or Regional Climatology, calculate iso-value depth surface and then convert to a raster object
Get_IsoValueDepth_WOA(
url,
IsoValue = 10,
x = NULL,
outdir = NULL,
plot = FALSE
)
url |
A character string naming the URL of a CSV file to be downloaded |
IsoValue |
A numeric values specifying where interpolation is to take place. |
x |
Raster* object defining the spatial extent, resolution and projection of climatology data to be retrived. If not provide, returning full data set. |
outdir |
output directory to write raster file |
plot |
Logical, whether or not to plot the output raster |
This function dowloads the surface climatology from http://www.nodc.noaa.gov/OC5/woa13/woa13data.html or http://www.nodc.noaa.gov/OC5/regional_climate/. The global or regional climatology data at standard depths will be download but only the iso-value depth surface are retained based on a template raster object.
a raster object
Chih-Lin Wei <chihlinwei@gmail.com>
# Raster template of Canadian Arctic
data(tmp)
# Download January temperature data and calculate the 10-degree depth surface
Get_IsoValueDepth_WOA("http://data.nodc.noaa.gov/woa/WOA13/DATAv2/temperature/csv/decav/0.25/woa13_decav_t01an04v2.csv.gz",
IsoValue=10, tmp, plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.