View source: R/get_NADP_precip.R
get_NADP_precip | R Documentation |
This function uses start date, end date and stationID to download NADP hourly precipitation data, and converts preciptation from inches to cm. Note that some stations may have different download links, and may not always work. The link used to download the NADP data was generated for station: ME98.
get_NADP_precip(
start_date = paste0("04/01/", as.numeric(format(Sys.Date(), "%Y"))),
end_date = paste0("10/31/", as.numeric(format(Sys.Date(), "%Y"))),
stationID = "ME98",
quietly = FALSE
)
start_date |
Quoted date for first day of period (eg "04/01/2018") |
end_date |
Quoted date for last day of period (eg "10/31/2018") |
stationID |
Quoted name of station to pull data from (eg "ME98" is ACAD's weather station) |
quietly |
|
Returns a data frame with Date, hour (0-23), timestamp (Y-M-D H:M:S), and precip_cm
## Not run:
precip_2018 <- get_NADP_precip(start_date='04/01/2018', end_date='10/31/2018', stationID='ME98')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.