get_weather_data: Get Weather Data From the GHCN-D

Description Usage Arguments Details Value Examples

View source: R/get_weather_data.R

Description

This is a wrapper function for the 3 main get_x_data functions in snowload2

Usage

1
2
3
4
5
6
get_weather_data(
  locations,
  path = "ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/all/",
  elem = c("SNWD", "WESD", "PRCP", "TMIN", "TMAX", "SNOW"),
  ...
)

Arguments

locations

character

path

character

elem

vector of which elements to be retrieved

...

other arguments

Details

You can enter in a list containing states, station IDS, and eco regions all at once, and get the weather data from all of them in one data frame.

NOTE: ECO REGIONS NOT SUPPORTED YET

Value

data.frame

Examples

1
# data <- get_weather_data(C("UT", "BF1BI000001"), "D:/Data/ghcnd_all/")

scoutiii/HTSoutliers documentation built on April 4, 2021, 4:47 p.m.