get_noaaisd_data: Download and temperature data NOAA ISD and format for...

Description Usage Arguments Value Examples

View source: R/incoming_data.R

Description

A helper script for the rnoaa::isd function. Download the specified weather station for the specified years, remove errors and low quality data, convert to julian day, and concatenate into a single data frame. Temperature values > 900 are error marks and are removed. Only values which pass all quality control tests, (quality code "1"), are retained.

Usage

1
2
get_noaaisd_data(usaf = stop("6-digit char USAF id required."),
  wban = stop("5-digit char WBAN id required."), years = NULL)

Arguments

usaf

A string of the USAF weather station identifier.

wban

A string of the WBAN weather station identifier.

years

A vector of years to download. Default returns all, missing data results in a warning.

Value

A data frame with jday and temperature.

Examples

1
2
3
get_noaaisd_data(usaf = "702700",
                 wban = "00489",
                 years = c(2009,2013:2015))

georgebiogeekwang/tempcycles documentation built on May 17, 2019, 1:15 a.m.