View source: R/get_oisst_data.R
get_oisst_data | R Documentation |
Pulls data from NOAAs Optimum Interpolation Sea Surface Temperature (OISST) website and downloads to local machine
get_oisst_data(years = 2000, outputStructure = NULL, outputDir)
years |
Numeric vector. Years of data to download. Default = 2000. options: NULL (All data is downloaded) |
outputStructure |
Character string. Determines how downloaded data will be structured. Default = NULL (All files downloaded to a single directory), options: "Year" (Data downloaded into Yearly folders),"Month" (Downloaded into Monthly Folders) |
outputDir |
Character string. Full path to local machine where output files will be downloaded |
Nothing. Files downloaded
## Not run: Download years 2000, ..., 2010 into yearly folder within the "output" folder in current wd get_oisst_data(years=2000:2010,outputStructure="year",outputDir=here::here("output")) Download years 2000, ..., 2005 into a single folder within the "output" folder in current wd get_oisst_data(years=2000:2005,outputStructure=NULL,outputDir=here::here("output")) Download all data into monthly folder within the "output" folder in current wd get_oisst_data(years=NULL,outputStructure="month",outputDir=here::here("output")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.