Get rainfall data at NOAA NCDC sites
Value
a data frame with the following columns:
station
: numeric, the station iddate
: Date, the date of the observationYear
: numeric, the year of the observationMonth
: numeric, the month of the observationDay
: numeric, the day of the observationrainfall
: numeric, the amount of rainfall in inches
Details
This function is used to retrieve a long-term record of rainfall for estimating AD loads. It is used to create an input data file for load calculations and it is not used directly by any other functions due to download time. A NOAA API key is required to use the function.
By default, rainfall data is retrieved for the following stations:
228
: ARCADIA478
: BARTOW520
: BAY LAKE940
: BRADENTON EXPERIMENT945
: BRADENTON 5 ESE1046
: BROOKSVILLE CHIN HIL1163
: BUSHNELL 2 E1632
: CLEARWATER1641
: CLERMONT 7 S2806
: ST PETERSBURG WHITTD3153
: FORT GREEN 12 WSW3986
: HILLSBOROUGH RVR SP4707
: LAKE ALFRED EXP STN5973
: MOUNTAIN LAKE6065
: MYAKKA RIVER STATE P6880
: PARRISH7205
: PLANT CITY7851
: ST LEO7886
: ST PETERSBURG WHITTD8788
: TAMPA INTL ARPT8824
: TARPON SPNGS SWG PLT9176
: VENICE9401
: WAUCHULA 2 N
Examples
if (FALSE) { # \dontrun{
noaa_key <- Sys.getenv('NOAA_KEY')
util_ad_getrain(2021, 228, noaa_key)
} # }