get_oisst_data: Get oisst data

View source: R/get_oisst_data.R

get_oisst_dataR Documentation

Get oisst data

Description

Pulls data from NOAAs Optimum Interpolation Sea Surface Temperature (OISST) website and downloads to local machine

Usage

get_oisst_data(years = 2000, outputStructure = NULL, outputDir)

Arguments

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

Value

Nothing. Files downloaded

Examples

## 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)


andybeet/oisst documentation built on Dec. 7, 2022, 6:19 p.m.